aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-06-26 17:10:56 +0000
committerRichard M. Stallman2001-06-26 17:10:56 +0000
commit7994d91a523be9058c62178d0f40d42ce860e2e4 (patch)
tree173ecef39308eaba9eb39e74ece38d03cdaf8096
parent4d68abe002445f497f64bf3343db90105ed888b9 (diff)
downloademacs-7994d91a523be9058c62178d0f40d42ce860e2e4.tar.gz
emacs-7994d91a523be9058c62178d0f40d42ce860e2e4.zip
(dired-get-filename): A file name starting with ~
is not absolute in this context.
-rw-r--r--lisp/dired.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/dired.el b/lisp/dired.el
index 546de206aee..987d8ddd899 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1438,6 +1438,9 @@ Optional arg NO-ERROR-IF-NOT-FILEP means return nil if no filename on
1438 file) 1438 file)
1439 "\""))))) 1439 "\"")))))
1440 (and file (file-name-absolute-p file) 1440 (and file (file-name-absolute-p file)
1441 ;; A relative file name can start with ~.
1442 ;; Don't treat it as absolute in this context.
1443 (not (eq (aref file 0) ?~))
1441 (setq already-absolute t)) 1444 (setq already-absolute t))
1442 (and file buffer-file-coding-system 1445 (and file buffer-file-coding-system
1443 (not file-name-coding-system) 1446 (not file-name-coding-system)