Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
57227:fab51779f86b | 57228:445f56b6dc24 |
---|---|
1772 (goto-char change)) | 1772 (goto-char change)) |
1773 ((re-search-forward dired-move-to-filename-regexp eol t) | 1773 ((re-search-forward dired-move-to-filename-regexp eol t) |
1774 (goto-char (match-end 0))) | 1774 (goto-char (match-end 0))) |
1775 ((re-search-forward dired-permission-flags-regexp eol t) | 1775 ((re-search-forward dired-permission-flags-regexp eol t) |
1776 ;; Ha! There *is* a file. Our regexp-from-hell just failed to find it. | 1776 ;; Ha! There *is* a file. Our regexp-from-hell just failed to find it. |
1777 (funcall (if raise-error 'error 'message) | 1777 (if raise-error |
1778 "Unrecognized line! Check dired-move-to-filename-regexp")) | 1778 (error "Unrecognized line! Check dired-move-to-filename-regexp")) |
1779 (beginning-of-line) | |
1780 nil) | |
1779 (raise-error | 1781 (raise-error |
1780 (error "No file on this line"))))) | 1782 (error "No file on this line"))))) |
1781 | 1783 |
1782 (defun dired-move-to-end-of-filename (&optional no-error) | 1784 (defun dired-move-to-end-of-filename (&optional no-error) |
1783 ;; Assumes point is at beginning of filename, | 1785 ;; Assumes point is at beginning of filename, |