aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath1993-01-19 21:05:15 +0000
committerRoland McGrath1993-01-19 21:05:15 +0000
commitbf349f368718cce5d3122e8b187d6172492997f3 (patch)
treefe7433057015013fcb58dbb8ff67e0c40c6dd12e
parent46d3268aa2fd112d7f1768e01d70569dd3cd7f71 (diff)
downloademacs-bf349f368718cce5d3122e8b187d6172492997f3.tar.gz
emacs-bf349f368718cce5d3122e8b187d6172492997f3.zip
(visit-tags-table-buffer): Error if called with 'same and no current table.
-rw-r--r--lisp/progmodes/etags.el12
1 files changed, 9 insertions, 3 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index cf21fa2e2b4..f94c51b467a 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -1,6 +1,7 @@
1;; etags.el --- etags facility for Emacs 1;; etags.el --- etags facility for Emacs
2 2
3;; Copyright (C) 1985, 1986, 1988, 1989, 1992 Free Software Foundation, Inc. 3;; Copyright (C) 1985, 1986, 1988, 1989, 1992, 1993
4;; Free Software Foundation, Inc.
4 5
5;; Author: Roland McGrath <roland@gnu.ai.mit.edu> 6;; Author: Roland McGrath <roland@gnu.ai.mit.edu>
6;; Keywords: tools 7;; Keywords: tools
@@ -335,8 +336,13 @@ Returns t if it visits a tags table, or nil if there are no more in the list."
335 336
336 ;; Set tags-file-name to the tags table file we want to visit. 337 ;; Set tags-file-name to the tags table file we want to visit.
337 (cond ((eq cont 'same) 338 (cond ((eq cont 'same)
338 ;; Use the ambient value of tags-file-name. Set CONT to nil so the 339 ;; Use the ambient value of tags-file-name.
339 ;; code below will make sure tags-file-name is in tags-table-list. 340 (or tags-file-name
341 (error (substitute-command-keys
342 (concat "No tags table in use! "
343 "Use \\[visit-tags-table] to select one."))))
344 ;; Set CONT to nil so the code below will make sure tags-file-name
345 ;; is in tags-table-list.
340 (setq cont nil)) 346 (setq cont nil))
341 347
342 (cont 348 (cont