Mercurial > emacs
comparison lisp/progmodes/etags.el @ 1724:2dccfada2107
(visit-tags-table-buffer): When picking a table and using tags-table-list,
skip over nonexistent files in the list.
author | Roland McGrath <roland@gnu.org> |
---|---|
date | Thu, 24 Dec 1992 22:42:05 +0000 |
parents | 4023bea27d64 |
children | da47cfb7624e |
comparison
equal
deleted
inserted
replaced
1723:4023bea27d64 | 1724:2dccfada2107 |
---|---|
367 ;; already in tags-table-list. | 367 ;; already in tags-table-list. |
368 (and tags-file-name | 368 (and tags-file-name |
369 (not (tags-table-list-member tags-file-name)) | 369 (not (tags-table-list-member tags-file-name)) |
370 tags-file-name) | 370 tags-file-name) |
371 ;; Fifth, use the user variable giving the table list. | 371 ;; Fifth, use the user variable giving the table list. |
372 (car tags-table-list) | 372 ;; Find the first element of the list that actually exists. |
373 (let ((list tags-table-list) | |
374 file) | |
375 (while (and list | |
376 (setq file (tags-expand-table-name (car list))) | |
377 (not (get-file-buffer file)) | |
378 (not (file-exists-p file))) | |
379 (setq list (cdr list))) | |
380 (car list)) | |
373 ;; Finally, prompt the user for a file name. | 381 ;; Finally, prompt the user for a file name. |
374 (expand-file-name | 382 (expand-file-name |
375 (read-file-name "Visit tags table: (default TAGS) " | 383 (read-file-name "Visit tags table: (default TAGS) " |
376 default-directory | 384 default-directory |
377 "TAGS" | 385 "TAGS" |