Bug 192481 - Haskell-mode autoindent is broken
Summary: Haskell-mode autoindent is broken
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: xemacs-sumo
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-05-19 23:12 UTC by Perry Wagle
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version: 20060510-2.fc5.1
Clone Of:
Environment:
Last Closed: 2006-05-26 20:53:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Possibly corrected haskell-indent.el (64.06 KB, text/plain)
2006-05-20 06:44 UTC, Ville Skyttä
no flags Details
Possibly corrected haskell-simple-indent.el (5.60 KB, text/plain)
2006-05-20 06:45 UTC, Ville Skyttä
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.