--- etags.el.orig 2007-11-30 13:46:35.000000000 -0500 +++ etags.el 2007-11-30 15:12:28.000000000 -0500 @@ -102,6 +102,11 @@ :group 'etags :type 'boolean) +(defcustom tags-novisit t + "*Non-nil means use a temporary buffer to save time and avoid uninteresting warnings." + :type 'boolean + :group 'etags) + (defvar tags-table-computed-list nil "List of tags tables to search, computed from `tags-table-list'. This includes tables implicitly included by other tables. The list is not @@ -1698,7 +1703,8 @@ (with-current-buffer buffer (revert-buffer t))) (if (not (and new novisit)) - (set-buffer (find-file-noselect next novisit)) + (progn (set-buffer (find-file-noselect next t)) + (setq new nil)) ;; Like find-file, but avoids random warning messages. (set-buffer (get-buffer-create " *next-file*")) (kill-all-local-variables) @@ -1761,7 +1767,7 @@ (goto-char original-point)) (setq file-finished nil) - (setq new (next-file first-time t)) + (setq new (next-file first-time tags-novisit)) ;; If NEW is non-nil, we got a temp buffer, ;; and NEW is the file name. @@ -1803,7 +1809,7 @@ To continue searching for next match, use command \\[tags-loop-continue]. See documentation of variable `tags-file-name'." - (interactive "sTags search (regexp): ") + (interactive (find-tag-interactive "Tags search (regexp): ")) (if (and (equal regexp "") (eq (car tags-loop-scan) 're-search-forward) (null tags-loop-operate))