Commit e1cf67b6 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(find-tag-noselect): Save the value of

tags-file-name before switching buffers, for the case it has a
buffer-local value.
parent ae24cb3b
2001-01-15 Gerd Moellmann <gerd@gnu.org>
* progmodes/etags.el (find-tag-noselect): Save the value of
tags-file-name before switching buffers, for the case it has a
buffer-local value.
2001-01-15 Alex Schroeder <alex@gnu.org> 2001-01-15 Alex Schroeder <alex@gnu.org>
   
* ansi-color.el (ansi-colors) <defgroup>: Fix :version by Dave * ansi-color.el (ansi-colors) <defgroup>: Fix :version by Dave
......
...@@ -820,9 +820,11 @@ See documentation of variable `tags-file-name'." ...@@ -820,9 +820,11 @@ See documentation of variable `tags-file-name'."
(interactive (find-tag-interactive "Find tag: ")) (interactive (find-tag-interactive "Find tag: "))
(setq find-tag-history (cons tagname find-tag-history)) (setq find-tag-history (cons tagname find-tag-history))
;; Save the current buffer's value of `find-tag-hook' before selecting the ;; Save the current buffer's value of `find-tag-hook' before
;; tags table buffer. ;; selecting the tags table buffer. For the same reason, save value
(let ((local-find-tag-hook find-tag-hook)) ;; of `tags-file-name' in case it has a buffer-local value.
(let ((local-find-tag-hook find-tag-hook)
(tags-file-name tags-file-name))
(if (eq '- next-p) (if (eq '- next-p)
;; Pop back to a previous location. ;; Pop back to a previous location.
(if (ring-empty-p tags-location-ring) (if (ring-empty-p tags-location-ring)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment