# HG changeset patch # User Gerd Moellmann # Date 979576647 0 # Node ID 2f2f03dac098e71e3bbb1d9916d514fe668d3b56 # Parent 8476c091d163ff93ac7255cde18853f530137449 (find-tag-noselect): Save the value of tags-file-name before switching buffers, for the case it has a buffer-local value. diff -r 8476c091d163 -r 2f2f03dac098 lisp/progmodes/etags.el --- a/lisp/progmodes/etags.el Mon Jan 15 15:29:54 2001 +0000 +++ b/lisp/progmodes/etags.el Mon Jan 15 16:37:27 2001 +0000 @@ -820,9 +820,11 @@ (interactive (find-tag-interactive "Find tag: ")) (setq find-tag-history (cons tagname find-tag-history)) - ;; Save the current buffer's value of `find-tag-hook' before selecting the - ;; tags table buffer. - (let ((local-find-tag-hook find-tag-hook)) + ;; Save the current buffer's value of `find-tag-hook' before + ;; selecting the tags table buffer. For the same reason, save value + ;; 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) ;; Pop back to a previous location. (if (ring-empty-p tags-location-ring)