# HG changeset patch # User Andreas Schwab # Date 1055178342 0 # Node ID 897048819781d5a535b893e38291d65985268b36 # Parent 91b62df06274a559edb31c8b4798d2906b98a06f (dired-get-filename): Complain only about "." and "..", not all directories. diff -r 91b62df06274 -r 897048819781 lisp/dired.el --- a/lisp/dired.el Sun Jun 08 01:22:30 2003 +0000 +++ b/lisp/dired.el Mon Jun 09 17:05:42 2003 +0000 @@ -1490,9 +1490,7 @@ ((eq localp 'verbatim) file) ((and (not no-error-if-not-filep) - (save-excursion - (beginning-of-line) - (looking-at dired-re-dir))) + (member (file-name-nondirectory file) '("." ".."))) (error "Cannot operate on `.' or `..'")) ((and (eq localp 'no-dir) already-absolute) (file-name-nondirectory file))