-
Notifications
You must be signed in to change notification settings - Fork 347
Broken indentation in Emacs 24.5 #1013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Oh, and this behaviour happens consistently on two different machines. Both have Emacs 24.5.1 compiled from sources, haskell-mode from melpa and this configuration file. |
Remove this line:
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
restart. It should help.
|
Indeed, that changes indentation behaviour, but it does not restore previous, correct behaviour. For example, indentation of case alternatives does not work in a reasonable way. Also, if I have: foo :: Bool
X where So I would say that what you've given me is a workaround that restores reasonable indentation behaviour at the price of loosing functionality. Thank you for that, but it is not the final solution I am looking for. |
It seems we should reopen #208. |
Closed means fixed? |
You seem to have found a way to make indentation work so I guess this part is fixed. There is the unimplemented feature of You are the second person requesting that and I'm not sure if this is an expected feature or not. Anyway we will need a volunteer to implement it. |
Anyway submitted as separate issue #1027. |
No, I have not been able to restore previous functionality in a reasonable way, ie. after disabling indentation the problem went away but so did useful functionality. So in no way is my problem solved :( Perhaps this is a duplicate of #208 (as you've pointed out), but in such case please re-open #208.
I believe I am not requesting any new feature. Completing function name has been present in haskell-mode since I started using it ~3 years ago. |
Opened as #1027. |
Ok, clearly there is something I don't understand here. From reading #1027 I understand that so far I have been using |
Your understanding is about correct. |
Now it makes sense. Thanks. I'll switch to |
Wouldn't be clearer to remove I personally would vote for a single indentation scheme that works well (instead of 3 broken option). The way I understand it is that the initial creator/contributor of |
I recently updated my Emacs installation to version 24.5.1 and discovered that in haskell mode upon entering a new line indentation behaves in an unexpected and unintuitive way. In these examples below
X
shows where the point is set upon pressing Enter at the end of previous line andY
shows where it used to be set before upgrading Emacs:Using haskell-mode just became extremely annoying :| I am using haskell-mode from melpa, version 20151202.34 (ie. today's build).
The text was updated successfully, but these errors were encountered: