aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/etags.el17
1 files changed, 10 insertions, 7 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index 378965b2e08..969927fbe86 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -42,9 +42,11 @@ To switch to a new list of tags tables, setting this variable is sufficient.
42If you set this variable, do not also set `tags-file-name'. 42If you set this variable, do not also set `tags-file-name'.
43Use the `etags' program to make a tags table file.") 43Use the `etags' program to make a tags table file.")
44 44
45(defvar tags-add-tables nil 45;;;###autoload
46 "*Non-nil means always add a new tags table to the current list. 46(defvar tags-add-tables 'ask-user
47This eliminates the need to ask the user whether to add a new tags table 47 "*T means always add a new tags table to the current list.
48Nil means never add to the current list; always start a new list.
49Non-nil but not t says to ask the user whether to add a new tags table
48to the current list (as opposed to starting a new list).") 50to the current list (as opposed to starting a new list).")
49 51
50(defvar tags-table-list-pointer nil 52(defvar tags-table-list-pointer nil
@@ -480,10 +482,11 @@ Returns t if it visits a tags table, or nil if there are no more in the list."
480 482
481 ;; Not found in any existing set. 483 ;; Not found in any existing set.
482 (if (and tags-table-list 484 (if (and tags-table-list
483 (or tags-add-tables 485 (or (eq t tags-add-tables)
484 (y-or-n-p 486 (and tags-add-tables
485 (concat "Keep current list of " 487 (y-or-n-p
486 "tags tables also? ")))) 488 (concat "Keep current list of "
489 "tags tables also? ")))))
487 ;; Add it to the current list. 490 ;; Add it to the current list.
488 (setq tags-table-list (cons tags-file-name 491 (setq tags-table-list (cons tags-file-name
489 tags-table-list)) 492 tags-table-list))