Mercurial > emacs
changeset 11316:72f527d22fe1
(next-file): Handle empty list returned by (tags-table-files).
author | Roland McGrath <roland@gnu.org> |
---|---|
date | Sun, 09 Apr 1995 03:18:11 +0000 |
parents | c5f81d9d417c |
children | c0a24f87eab8 |
files | lisp/progmodes/etags.el |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/etags.el Sun Apr 09 03:08:18 1995 +0000 +++ b/lisp/progmodes/etags.el Sun Apr 09 03:18:11 1995 +0000 @@ -1268,7 +1268,9 @@ (setq tail (cdr tail))) ;; Use a copy so the next loop iteration will not modify the ;; list later returned by (tags-table-files). - (setcdr tail (copy-sequence (tags-table-files))))))) + (if tail + (setcdr tail (copy-sequence (tags-table-files))) + (setq next-file-list (copy-sequence (tags-table-files))))))) (t ;; Initialize the list by evalling the argument. (setq next-file-list (eval initialize))))