diff options
| author | Jim Blandy | 1992-09-14 18:41:47 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-09-14 18:41:47 +0000 |
| commit | 9508896e1dd0ec0eeec1fa426ec826ac978460c6 (patch) | |
| tree | 1cc09b0e34da38dade4d8e0ccae3b9f7d65b319a | |
| parent | 854c16c5e2f9de97b8ecceefa0a05d84085e0994 (diff) | |
| download | emacs-9508896e1dd0ec0eeec1fa426ec826ac978460c6.tar.gz emacs-9508896e1dd0ec0eeec1fa426ec826ac978460c6.zip | |
*** empty log message ***
| -rw-r--r-- | lisp/progmodes/etags.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index 0fb0ff549a4..694700b211f 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el | |||
| @@ -251,8 +251,6 @@ Returns t if it visits a tags table, or nil if there are no more in the list." | |||
| 251 | default-directory | 251 | default-directory |
| 252 | (expand-file-name "TAGS" default-directory) | 252 | (expand-file-name "TAGS" default-directory) |
| 253 | t)))) | 253 | t)))) |
| 254 | (if (file-directory-p tags-file-name) | ||
| 255 | (setq tags-file-name (expand-file-name "TAGS" tags-file-name))) | ||
| 256 | (visit-tags-file put-in-list) | 254 | (visit-tags-file put-in-list) |
| 257 | t)))) | 255 | t)))) |
| 258 | 256 | ||
| @@ -264,6 +262,8 @@ Returns t if it visits a tags table, or nil if there are no more in the list." | |||
| 264 | ;; directly because we don't want to get its buffer-local value | 262 | ;; directly because we don't want to get its buffer-local value |
| 265 | ;; in the buffer we switch to. | 263 | ;; in the buffer we switch to. |
| 266 | (let ((file tags-file-name)) | 264 | (let ((file tags-file-name)) |
| 265 | (if (file-directory-p file) | ||
| 266 | (setq file (expand-file-name "TAGS" file))) | ||
| 267 | (if (if (get-file-buffer file) | 267 | (if (if (get-file-buffer file) |
| 268 | (let (win) | 268 | (let (win) |
| 269 | (set-buffer (get-file-buffer file)) | 269 | (set-buffer (get-file-buffer file)) |
| @@ -643,9 +643,9 @@ See documentation of variable `tags-file-name'." | |||
| 643 | 643 | ||
| 644 | (defun etags-recognize-tags-table () | 644 | (defun etags-recognize-tags-table () |
| 645 | (and (eq (char-after 1) ?\f) | 645 | (and (eq (char-after 1) ?\f) |
| 646 | ;; It is annoying to flash messages on the screen briefly, | 646 | ;; It is annoying to flash messages on the screen briefly, |
| 647 | ;; and this message is not useful. -- rms | 647 | ;; and this message is not useful. -- rms |
| 648 | ;; (message "%s is an `etags' TAGS file" buffer-file-name) | 648 | ;; (message "%s is an `etags' TAGS file" buffer-file-name) |
| 649 | (mapcar (function (lambda (elt) | 649 | (mapcar (function (lambda (elt) |
| 650 | (make-local-variable (car elt)) | 650 | (make-local-variable (car elt)) |
| 651 | (set (car elt) (cdr elt)))) | 651 | (set (car elt) (cdr elt)))) |