-
Notifications
You must be signed in to change notification settings - Fork 347
Implement haskell-goto-first-error #1100
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
Conversation
|
||
(defun insert-errors () | ||
(insert "import Control.Applicativ\nimport Data.Mayb\nimport Data.String") | ||
(let ((a (make-overlay 18 36)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use re-search-forward
and then (match-begin 0)
and (match-end 0)
to put the overlays. Should somebody come and need to change these tests they will be intimidated by character counting and won't do it.
Very nice! Please get rid of those hardcoded numbers and then we are good to merge. |
a4ee9aa
to
6af7880
Compare
@gracjan I force pushed the changes you requested. |
(require 'haskell-load) | ||
|
||
(defun insert-errors () | ||
(insert "import Control.Applicativ\nimport Data.Mayb\nimport Data.String") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more nitpick: Can I have one space here between import
and module names?
Counting spaces might be intimidating for future developers, too.
- haskell-goto-next-error - haskell-goto-prev-error - haskell-goto-first-error
6af7880
to
788a70c
Compare
Makes sense. I started from real Haskell code, and the extra spaces are what |
Implement haskell-goto-first-error
Perfect, thanks. |
Supercedes #818