-
Notifications
You must be signed in to change notification settings - Fork 339
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
Emacs 24 jump to compilation errors #67
Comments
I don't know why but removing some elements in one of regexps of ;; Format of error messages used by GHCi.
("^\\(.+?\\):\\([0-9]+\\):\\(\\([0-9]+\\):\\)?\\( \\|\n *\\)\\(Warning\\)?"
1 2 4 ,@(if (fboundp 'compilation-fake-loc)
'((6) nil (5 '(face nil font-lock-multiline t))))) to this ("^\\(.+?\\):\\([0-9]+\\):\\(\\([0-9]+\\):\\)?\\( \\|\n *\\)\\(Warning\\)?"
1 2 4 ,@(if (fboundp 'compilation-fake-loc)
'((6) nil))) Actually I've added hook, so that I don't have to change (add-hook 'inferior-haskell-mode-hook
(lambda ()
(setq compilation-first-column 1)
(setq compilation-error-regexp-alist
(cons `("^\\(.+?\\):\\([0-9]+\\):\\(\\([0-9]+\\):\\)?\\( \\|\n *\\)\\(Warning\\)?"
1 2 4 ,@(if (fboundp 'compilation-fake-loc)
'((6) nil)))
(cdr (cdr inferior-haskell-error-regexp-alist)))))) This removes first element which is regexp for Hugs errors. |
Thanks dop, that seem to have worked! |
Unlike Emacs 23, in which fontification of compilation error is handled by However, even with proper fontification, visiting error messages and source code locations with I suspect that the problem is again in the new |
I am not sure if manzyuk fixed this problem but when jumping to an error it does not always jump to the appropriate line. |
I've filed a bug report to bug-gnu-emacs: http://lists.gnu.org/archive/html/bug-gnu-emacs/2012-08/msg00111.html. |
It turns out that the inconsistent error navigation I'm talking about above is not particular to Emacs 24, it is also present in Emacs 23. In fact, jumping to errors seems to work only when the file is loaded into the inferior Haskell process with |
Hello,
I have been using haskell-mode with emacs 23.* for quite some time. Great work!
Recently, I have upgraded emacs to version 24.1.1 and compilation error jumps seem to have stopped working.
For example, you're working on a haskell file, you do C-c C-l to load that file, and compilation errors (if any) will appear in the compilation buffer.
In emacs 23.*, you could hit RET on those compilation errors to jump to the appropriate file location.
This does not seem to work anymore.
If you need any more information, please let me know!
Cheers,
José
The text was updated successfully, but these errors were encountered: