aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/etags.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index 9b1cda9ac93..b4308f1a47b 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -459,7 +459,7 @@ See documentation of variable `tags-file-name'."
459 (find-tag-tag "Find tag: "))) 459 (find-tag-tag "Find tag: ")))
460 (let ((local-find-tag-hook find-tag-hook)) 460 (let ((local-find-tag-hook find-tag-hook))
461 (if next-p 461 (if next-p
462 nil 462 (visit-tags-table-buffer 'same)
463 (setq last-tag tagname) 463 (setq last-tag tagname)
464 (visit-tags-table-buffer 'reset)) 464 (visit-tags-table-buffer 'reset))
465 (prog1 465 (prog1
@@ -1102,8 +1102,12 @@ see the doc of that variable if you want to add names to the list."
1102 "Perform tags completion on the text around point. 1102 "Perform tags completion on the text around point.
1103Completes to the set of names listed in the current tags table. 1103Completes to the set of names listed in the current tags table.
1104The string to complete is chosen in the same way as the default 1104The string to complete is chosen in the same way as the default
1105for \\[find-tag] (which see). See also `visit-tags-table-buffer'." 1105for \\[find-tag] (which see)."
1106 (interactive) 1106 (interactive)
1107 (or tags-table-list
1108 tags-file-name
1109 (error (substitute-command-keys
1110 "No tags table loaded. Try \\[visit-tags-table].")))
1107 (let ((pattern (funcall (or find-tag-default-function 1111 (let ((pattern (funcall (or find-tag-default-function
1108 (get major-mode 'find-tag-default-function) 1112 (get major-mode 'find-tag-default-function)
1109 'find-tag-default))) 1113 'find-tag-default)))