diff options
| author | Roland McGrath | 1995-04-09 03:18:11 +0000 |
|---|---|---|
| committer | Roland McGrath | 1995-04-09 03:18:11 +0000 |
| commit | 2f14fde6d0fd935b267341fc2c43ed2bcc2a37f5 (patch) | |
| tree | 355294ff3359961785fa5b6519c6204dc0d00281 | |
| parent | c4f57b91f11a371b7b23ef2e7c46f6cdc515a0af (diff) | |
| download | emacs-2f14fde6d0fd935b267341fc2c43ed2bcc2a37f5.tar.gz emacs-2f14fde6d0fd935b267341fc2c43ed2bcc2a37f5.zip | |
(next-file): Handle empty list returned by (tags-table-files).
| -rw-r--r-- | lisp/progmodes/etags.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index e572d3361f7..9c76c6b28cd 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el | |||
| @@ -1268,7 +1268,9 @@ if the file was newly read in, the value is the filename." | |||
| 1268 | (setq tail (cdr tail))) | 1268 | (setq tail (cdr tail))) |
| 1269 | ;; Use a copy so the next loop iteration will not modify the | 1269 | ;; Use a copy so the next loop iteration will not modify the |
| 1270 | ;; list later returned by (tags-table-files). | 1270 | ;; list later returned by (tags-table-files). |
| 1271 | (setcdr tail (copy-sequence (tags-table-files))))))) | 1271 | (if tail |
| 1272 | (setcdr tail (copy-sequence (tags-table-files))) | ||
| 1273 | (setq next-file-list (copy-sequence (tags-table-files))))))) | ||
| 1272 | (t | 1274 | (t |
| 1273 | ;; Initialize the list by evalling the argument. | 1275 | ;; Initialize the list by evalling the argument. |
| 1274 | (setq next-file-list (eval initialize)))) | 1276 | (setq next-file-list (eval initialize)))) |