From: Richard M. Stallman Date: Tue, 23 Nov 1993 00:11:43 +0000 (+0000) Subject: (dired-goto-file): Don't try matching one line twice. X-Git-Tag: emacs-19.34~10736 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=55e86af6f55b95f484d01a95145ab8f2b2377da0;p=emacs.git (dired-goto-file): Don't try matching one line twice. --- 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." ;; correct) match could have been elsewhere on the ;; ;; line (e.g. "-" would match somewhere in the ;; permission bits). - (setq found (dired-move-to-filename))))))) + (setq found (dired-move-to-filename)) + ;; If this isn't the right line, move forward to avoid + ;; trying this line again. + (forward-line 1)))))) (and found ;; return value of point (i.e., FOUND): (goto-char found))))