Skip to content

Commit b2aa551

Browse files
committed
Merge pull request #592 from geraldus/tags-table
Use tags-table-list instead of tags-file-name
2 parents 7100354 + 2b4e49c commit b2aa551

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

haskell-commands.el

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -658,10 +658,12 @@ command from GHCi."
658658
"xargs -0 hasktags -e -x"))))
659659
:complete (lambda (state response)
660660
(when (cdr state)
661-
(let ((tags-file-name
662-
(haskell-session-tags-filename
663-
(haskell-process-session (car state)))))
664-
(find-tag (cdr state))))
661+
(let ((session-tags
662+
(haskell-session-tags-filename
663+
(haskell-process-session (car state)))))
664+
(add-to-list 'tags-table-list session-tags)
665+
(setq tags-file-name nil))
666+
(find-tag (cdr state)))
665667
(haskell-mode-message-line "Tags generated."))))))
666668

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

0 commit comments

Comments
 (0)