TAB does not work in Haskell mode in Ubuntu 14.04

Bug #1331277 reported by Peter Selinger
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
haskell-mode (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I just upgraded a number of systems to Ubuntu 14.04, and it seems that the Emacs Haskell mode is no longer working correctly.
For example:

f :: Int -> Int
f x = y where
[TAB]

When pressing TAB, instead of going through the indentation cycle, I get a second window displaying information about haskell-mode-hook:

--------------------------
haskell-mode-hook is a variable defined in `haskell-mode.el'.
Its value is nil

  This variable may be risky if used as a file-local variable.

Documentation:
Hook run after entering `haskell-mode'.

Some of the supported modules that can be activated via this hook:

   `haskell-decl-scan', Graeme E Moss
     Scans top-level declarations, and places them in a menu.

[AND SO ON]
---------------------------

To reproduce: just type TAB anywhere in a Haskell source file.

Version: haskell-mode 13.10-2

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in haskell-mode (Ubuntu):
status: New → Confirmed
Revision history for this message
Konrad Voelkel (konradvoelkel) wrote :

After using emacs customize to add '(haskell-mode-hook (quote (turn-on-haskell-indentation))) to the .emacs file and closing all haskell buffers, rebooting emacs and opening a haskell file again, I no longer have this problem.

It would probably be a sensible default to have some haskell-mode-hook configured right after installing haskell-mode.

Hope this helps others, too!

Revision history for this message
Peter Selinger (selinger) wrote :

Thanks. What you wrote didn't work for me as written, but it enabled me to figure out what to do. I put this in my .emacs file:

(setq haskell-mode-hook (quote (turn-on-haskell-indentation)))

and now it works fine for me. I still think it is a bug that such manual configuation is required; this should just happen automatically, as it did prior to 14.04.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.