From: Andreas Schwab Date: Sun, 30 May 2004 18:24:08 +0000 (+0000) Subject: (dired-get-filename): Don't use dired-re-dot. X-Git-Tag: ttn-vms-21-2-B4~5980 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5709c1a0bfc7b7e1248d410035a476ec64ae3d00;p=emacs.git (dired-get-filename): Don't use dired-re-dot. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 26d6ba248d7..d23005ed0bd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2004-05-30 Andreas Schwab + + * dired.el (dired-get-filename): Don't use dired-re-dot. + 2004-05-30 Richard M. Stallman * files.el (find-file): Doc fix. diff --git a/lisp/dired.el b/lisp/dired.el index 8bdfe1befce..3d4491cc819 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -1634,9 +1634,7 @@ Otherwise, an error occurs in these cases." ((eq localp 'verbatim) file) ((and (not no-error-if-not-filep) - (save-excursion - (beginning-of-line) - (looking-at dired-re-dot))) + (member file '("." ".."))) (error "Cannot operate on `.' or `..'")) ((and (eq localp 'no-dir) already-absolute) (file-name-nondirectory file))