changeset 38214:a4de79556592

(dired-get-filename): A file name starting with ~ is not absolute in this context.
author Richard M. Stallman <rms@gnu.org>
date Tue, 26 Jun 2001 17:10:56 +0000
parents 467bdc2d38a0
children b9fdde642b13
files lisp/dired.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired.el	Tue Jun 26 17:10:40 2001 +0000
+++ b/lisp/dired.el	Tue Jun 26 17:10:56 2001 +0000
@@ -1438,6 +1438,9 @@
 			     file)
 			 "\"")))))
     (and file (file-name-absolute-p file)
+	 ;; A relative file name can start with ~.
+	 ;; Don't treat it as absolute in this context.
+	 (not (eq (aref file 0) ?~))
 	 (setq already-absolute t))
     (and file buffer-file-coding-system
 	 (not file-name-coding-system)