diff options
| author | Richard M. Stallman | 1993-11-23 00:11:43 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-11-23 00:11:43 +0000 |
| commit | 55e86af6f55b95f484d01a95145ab8f2b2377da0 (patch) | |
| tree | 08a4b4fb76c8f5426aa8684db442c35c2eaa930e | |
| parent | 916a31191738b5e1bd147d58c6a8aee8953dca10 (diff) | |
| download | emacs-55e86af6f55b95f484d01a95145ab8f2b2377da0.tar.gz emacs-55e86af6f55b95f484d01a95145ab8f2b2377da0.zip | |
(dired-goto-file): Don't try matching one line twice.
| -rw-r--r-- | lisp/dired.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/dired.el b/lisp/dired.el index 6eb3b284cc4..44d0ec3747c 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -1418,7 +1418,10 @@ Returns the new value of the alist." | |||
| 1418 | ;; correct) match could have been elsewhere on the | 1418 | ;; correct) match could have been elsewhere on the |
| 1419 | ;; ;; line (e.g. "-" would match somewhere in the | 1419 | ;; ;; line (e.g. "-" would match somewhere in the |
| 1420 | ;; permission bits). | 1420 | ;; permission bits). |
| 1421 | (setq found (dired-move-to-filename))))))) | 1421 | (setq found (dired-move-to-filename)) |
| 1422 | ;; If this isn't the right line, move forward to avoid | ||
| 1423 | ;; trying this line again. | ||
| 1424 | (forward-line 1)))))) | ||
| 1422 | (and found | 1425 | (and found |
| 1423 | ;; return value of point (i.e., FOUND): | 1426 | ;; return value of point (i.e., FOUND): |
| 1424 | (goto-char found)))) | 1427 | (goto-char found)))) |