From 5709c1a0bfc7b7e1248d410035a476ec64ae3d00 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 30 May 2004 18:24:08 +0000 Subject: [PATCH] (dired-get-filename): Don't use dired-re-dot. --- lisp/ChangeLog | 4 ++++ lisp/dired.el | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) 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)) -- 2.11.4.GIT