Skip to content

Commit bb95ef5

Browse files
committed
Merge pull request #978 from purcell/fix-global-tags-override
Don't spuriously modify tags-table-list's global value
2 parents 536f5e8 + d50ae23 commit bb95ef5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

haskell-commands.el

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -709,12 +709,10 @@ function `xref-find-definitions' after new table was generated."
709709
"xargs -0 hasktags -e -x"))))
710710
:complete (lambda (state _response)
711711
(when (cdr state)
712-
(let ((session-tags
713-
(haskell-session-tags-filename
714-
(haskell-process-session (car state)))))
715-
(add-to-list 'tags-table-list session-tags)
716-
(setq tags-file-name nil))
717-
(xref-find-definitions (cdr state)))
712+
(let ((tags-file-name
713+
(haskell-session-tags-filename
714+
(haskell-process-session (car state)))))
715+
(xref-find-definitions (cdr state))))
718716
(haskell-mode-message-line "Tags generated."))))))
719717

720718
(defun haskell-process-add-cabal-autogen ()

0 commit comments

Comments
 (0)