-
Notifications
You must be signed in to change notification settings - Fork 347
Improve tags behavior #1326
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
Improve tags behavior #1326
Conversation
The function name & docs suggest this is the intended behavior. `haskell-mode-find-def` errors if there is no session, so we need to only call it if there is a session. closes haskell#1180
In my tests, calling hasktags is faster, and has better rules of which files & directories to search. More importantly, it produces a more accurate tags table. For example, the old version links some types to functions with the same name (in lowercase).
`interactive-haskell-mode` has `M-.` bound to `haskell-mode-jump-to-def-or-tag`. The emacs default `find-tag` does not work in `haskell-mode`. This patch allows users of `haskell-mode` without `interactive-haskell-mode` to use tags. The binding is overridden by the `interactive-haskell-mode` map, if that minor mode is active.
We had a PR recently that introduced exactly this |
Thanks for pointing out those related commits. I think #1204 is necessary but not sufficient to using tags without a haskell session.
I don't think the It seems the main point of #1204 was to call If you want some but not all three of these commits I can split them up. |
The pruning of irrelevant directories seems to be important: #1204 (comment), we need the Redefining M-. does not look like a good idea to me. There are other keys that are also in the same group: C-x 4 ., C-x 5 . and M-C-.. We do not want to redefine too much. Note that I do not understand why we at all need functions like |
Would you like me to make a new PR with just 1919b7d? Or shall I just close this entirely? I don't have time to figure out the find situation, and I don't feel strongly about the binding. |
Yes, lets go with 1919b7d first. I have slightly negative feelings above the two others, I hope we can find better ways. |
I expect we can find better ways. Closed in favor of #1330. |
This PR fixes problems with tags that I run into when using
haskell-mode
without aninteractive-haskell-mode
session.