diff lisp/dired.el @ 57228:445f56b6dc24

(dired-move-to-filename): Don't output a message if raise-error is non-nil. Fix return position and value.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 25 Sep 2004 18:35:53 +0000
parents fb8b1f758f89
children fc40eb786614
line wrap: on
line diff
--- a/lisp/dired.el	Sat Sep 25 15:29:35 2004 +0000
+++ b/lisp/dired.el	Sat Sep 25 18:35:53 2004 +0000
@@ -1774,8 +1774,10 @@
       (goto-char (match-end 0)))
      ((re-search-forward dired-permission-flags-regexp eol t)
       ;; Ha!  There *is* a file.  Our regexp-from-hell just failed to find it.
-      (funcall (if raise-error 'error 'message)
-	       "Unrecognized line!  Check dired-move-to-filename-regexp"))
+      (if raise-error
+	  (error "Unrecognized line!  Check dired-move-to-filename-regexp"))
+      (beginning-of-line)
+      nil)
      (raise-error
       (error "No file on this line")))))