Mercurial > emacs
comparison lisp/progmodes/etags.el @ 7904:c2259f58ef7e
(find-tag-history): New variable.
(find-tag-noselect): Set that variable.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 15 Jun 1994 04:37:26 +0000 |
parents | 38d89820ab47 |
children | b5e9b6a00f5d |
comparison
equal
deleted
inserted
replaced
7903:40bb379c9550 | 7904:c2259f58ef7e |
---|---|
708 t)) | 708 t)) |
709 (list (if no-default | 709 (list (if no-default |
710 (read-string prompt) | 710 (read-string prompt) |
711 (find-tag-tag prompt))))) | 711 (find-tag-tag prompt))))) |
712 | 712 |
713 (defvar find-tag-history nil) | |
714 | |
713 ;;;###autoload | 715 ;;;###autoload |
714 (defun find-tag-noselect (tagname &optional next-p regexp-p) | 716 (defun find-tag-noselect (tagname &optional next-p regexp-p) |
715 "Find tag (in current tags table) whose name contains TAGNAME. | 717 "Find tag (in current tags table) whose name contains TAGNAME. |
716 Returns the buffer containing the tag's definition and moves its point there, | 718 Returns the buffer containing the tag's definition and moves its point there, |
717 but does not select the buffer. | 719 but does not select the buffer. |
726 If third arg REGEXP-P is non-nil, treat TAGNAME as a regexp. | 728 If third arg REGEXP-P is non-nil, treat TAGNAME as a regexp. |
727 | 729 |
728 See documentation of variable `tags-file-name'." | 730 See documentation of variable `tags-file-name'." |
729 (interactive (find-tag-interactive "Find tag: ")) | 731 (interactive (find-tag-interactive "Find tag: ")) |
730 | 732 |
733 (setq find-tag-history (cons tagname find-tag-history)) | |
731 ;; Save the current buffer's value of `find-tag-hook' before selecting the | 734 ;; Save the current buffer's value of `find-tag-hook' before selecting the |
732 ;; tags table buffer. | 735 ;; tags table buffer. |
733 (let ((local-find-tag-hook find-tag-hook)) | 736 (let ((local-find-tag-hook find-tag-hook)) |
734 (if (eq '- next-p) | 737 (if (eq '- next-p) |
735 ;; Pop back to a previous location. | 738 ;; Pop back to a previous location. |