Bug 192481

Summary: Haskell-mode autoindent is broken
Product: [Fedora] Fedora Reporter: Perry Wagle <wagle>
Component: xemacs-sumoAssignee: Ville Skyttä <scop>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: extras-qa
Target Milestone: ---Keywords: MoveUpstream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 20060510-2.fc5.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-05-26 20:53:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Possibly corrected haskell-indent.el
none
Possibly corrected haskell-simple-indent.el none

Description Perry Wagle 2006-05-19 23:12:34 UTC
Description of problem:
Auto-indent is broken in Haskell-mode.

Version-Release number of selected component (if applicable):
xemacs-sumo-20060510-2.fc5

How reproducible:
Haven't found any cases where it does work.

Steps to Reproduce:
1.  Install xemacs, xemacs-sumo, and the rest of the xemacs-* packages.
2.  move ~/.xemacs and ~/.emacs out of the way
3.  start up "xemacs foo.hs"
4.  type "data Tree = Node Tree Tree", then newline
5.  hit the tab (or control i)
  
Actual results:
Error message is "Symbol's function definition is void: line-end-position"

Expected results:
should alternate between reasonable tab stop with the pressing of tab.

Additional info:
was working fine until the most recent xemacs-sumo package

Comment 1 Ville Skyttä 2006-05-20 06:41:15 UTC
Ah, yes, XEmacs 21.4.x does not have line-end-position or line-beginning-position.  

Comment 2 Ville Skyttä 2006-05-20 06:44:19 UTC
Created attachment 129692 [details]
Possibly corrected haskell-indent.el

Here's a possibly corrected haskell-indent.el.

Until a fixed xemacs-sumo (or xemacs 21.4.x) package is installed, you could
try creating the ~/.xemacs/xemacs-packages/lisp/haskell-mode directory and
installing this file and the haskell-simple-indent.el I'll attach in a jiffy to
it.

Comment 3 Ville Skyttä 2006-05-20 06:45:04 UTC
Created attachment 129694 [details]
Possibly corrected haskell-simple-indent.el

Comment 4 Ville Skyttä 2006-05-26 20:53:18 UTC
Fixed in 20060510-2.fc5.1