aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-01-15 16:37:58 +0000
committerGerd Moellmann2001-01-15 16:37:58 +0000
commite1cf67b6f8b50efe7c2143d041ffa281d11fc0c4 (patch)
tree1fb641d9fbf5a99a8247971316c30ac0a010a6c7
parentae24cb3befd9649b4ef8e8ad56db90408284f556 (diff)
downloademacs-e1cf67b6f8b50efe7c2143d041ffa281d11fc0c4.tar.gz
emacs-e1cf67b6f8b50efe7c2143d041ffa281d11fc0c4.zip
(find-tag-noselect): Save the value of
tags-file-name before switching buffers, for the case it has a buffer-local value.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/progmodes/etags.el8
2 files changed, 11 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index de0bc0e5841..ed68e1a7f6b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12001-01-15 Gerd Moellmann <gerd@gnu.org>
2
3 * progmodes/etags.el (find-tag-noselect): Save the value of
4 tags-file-name before switching buffers, for the case it has a
5 buffer-local value.
6
12001-01-15 Alex Schroeder <alex@gnu.org> 72001-01-15 Alex Schroeder <alex@gnu.org>
2 8
3 * ansi-color.el (ansi-colors) <defgroup>: Fix :version by Dave 9 * ansi-color.el (ansi-colors) <defgroup>: Fix :version by Dave
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index e01a1448af8..131610e09d7 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -820,9 +820,11 @@ See documentation of variable `tags-file-name'."
820 (interactive (find-tag-interactive "Find tag: ")) 820 (interactive (find-tag-interactive "Find tag: "))
821 821
822 (setq find-tag-history (cons tagname find-tag-history)) 822 (setq find-tag-history (cons tagname find-tag-history))
823 ;; Save the current buffer's value of `find-tag-hook' before selecting the 823 ;; Save the current buffer's value of `find-tag-hook' before
824 ;; tags table buffer. 824 ;; selecting the tags table buffer. For the same reason, save value
825 (let ((local-find-tag-hook find-tag-hook)) 825 ;; of `tags-file-name' in case it has a buffer-local value.
826 (let ((local-find-tag-hook find-tag-hook)
827 (tags-file-name tags-file-name))
826 (if (eq '- next-p) 828 (if (eq '- next-p)
827 ;; Pop back to a previous location. 829 ;; Pop back to a previous location.
828 (if (ring-empty-p tags-location-ring) 830 (if (ring-empty-p tags-location-ring)