diff options
| -rw-r--r-- | lisp/progmodes/etags.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index 2b954c53d98..804faef730c 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el | |||
| @@ -1454,14 +1454,18 @@ evaluate to operate on an interesting file. If the latter evaluates to | |||
| 1454 | nil, we exit; otherwise we scan the next file." | 1454 | nil, we exit; otherwise we scan the next file." |
| 1455 | (interactive) | 1455 | (interactive) |
| 1456 | (let (new | 1456 | (let (new |
| 1457 | ;; Non-nil means we have finished one file | ||
| 1458 | ;; and should not scan it again. | ||
| 1459 | file-finished | ||
| 1457 | (messaged nil)) | 1460 | (messaged nil)) |
| 1458 | (while | 1461 | (while |
| 1459 | (progn | 1462 | (progn |
| 1460 | ;; Scan files quickly for the first or next interesting one. | 1463 | ;; Scan files quickly for the first or next interesting one. |
| 1461 | (while (or first-time | 1464 | (while (or first-time file-finished |
| 1462 | (save-restriction | 1465 | (save-restriction |
| 1463 | (widen) | 1466 | (widen) |
| 1464 | (not (eval tags-loop-scan)))) | 1467 | (not (eval tags-loop-scan)))) |
| 1468 | (setq file-finished nil) | ||
| 1465 | (setq new (next-file first-time t)) | 1469 | (setq new (next-file first-time t)) |
| 1466 | ;; If NEW is non-nil, we got a temp buffer, | 1470 | ;; If NEW is non-nil, we got a temp buffer, |
| 1467 | ;; and NEW is the file name. | 1471 | ;; and NEW is the file name. |
| @@ -1486,7 +1490,8 @@ nil, we exit; otherwise we scan the next file." | |||
| 1486 | 1490 | ||
| 1487 | ;; Now operate on the file. | 1491 | ;; Now operate on the file. |
| 1488 | ;; If value is non-nil, continue to scan the next file. | 1492 | ;; If value is non-nil, continue to scan the next file. |
| 1489 | (eval tags-loop-operate))) | 1493 | (eval tags-loop-operate)) |
| 1494 | (setq file-finished t)) | ||
| 1490 | (and messaged | 1495 | (and messaged |
| 1491 | (null tags-loop-operate) | 1496 | (null tags-loop-operate) |
| 1492 | (message "Scanning file %s...found" buffer-file-name)))) | 1497 | (message "Scanning file %s...found" buffer-file-name)))) |