aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/etags.el10
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index e3154ae4c4a..c91d18418d8 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -793,7 +793,9 @@ Assumes the tags table is the current buffer."
793 (get major-mode 'find-tag-default-function) 793 (get major-mode 'find-tag-default-function)
794 'find-tag-default))) 794 'find-tag-default)))
795 (spec (completing-read (if default 795 (spec (completing-read (if default
796 (format "%s(default %s) " string default) 796 (format "%s (default %s): "
797 (substring string 0 (string-match "[ :]+\\'" string))
798 default)
797 string) 799 string)
798 'tags-complete-tag 800 'tags-complete-tag
799 nil nil nil nil default))) 801 nil nil nil nil default)))
@@ -914,10 +916,12 @@ Contrast this with the ring of marks gone to by the command.
914 916
915See documentation of variable `tags-file-name'." 917See documentation of variable `tags-file-name'."
916 (interactive (find-tag-interactive "Find tag: ")) 918 (interactive (find-tag-interactive "Find tag: "))
917 (let ((buf (find-tag-noselect tagname next-p regexp-p))) 919 (let* ((buf (find-tag-noselect tagname next-p regexp-p))
920 (pos (with-current-buffer buf (point))))
918 (condition-case nil 921 (condition-case nil
919 (switch-to-buffer buf) 922 (switch-to-buffer buf)
920 (error (pop-to-buffer buf))))) 923 (error (pop-to-buffer buf)))
924 (goto-char pos)))
921;;;###autoload (define-key esc-map "." 'find-tag) 925;;;###autoload (define-key esc-map "." 'find-tag)
922 926
923;;;###autoload 927;;;###autoload