Skip to content
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

Don't spuriously modify tags-table-list's global value #978

Merged
merged 1 commit into from
Nov 2, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions haskell-commands.el
Original file line number Diff line number Diff line change
Expand Up @@ -709,12 +709,10 @@ function `xref-find-definitions' after new table was generated."
"xargs -0 hasktags -e -x"))))
:complete (lambda (state _response)
(when (cdr state)
(let ((session-tags
(haskell-session-tags-filename
(haskell-process-session (car state)))))
(add-to-list 'tags-table-list session-tags)
(setq tags-file-name nil))
(xref-find-definitions (cdr state)))
(let ((tags-file-name
(haskell-session-tags-filename
(haskell-process-session (car state)))))
(xref-find-definitions (cdr state))))
(haskell-mode-message-line "Tags generated."))))))

(defun haskell-process-add-cabal-autogen ()
Expand Down