From: Simon Marshall Date: Tue, 13 Jun 1995 08:27:11 +0000 (+0000) Subject: Test for "" too; let it go to expand-file-name if it is equal. X-Git-Tag: emacs-19.34~3657 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cc37a58cebc29aed3ef044d8b977f41a38d86753;p=emacs.git Test for "" too; let it go to expand-file-name if it is equal. --- diff --git a/lisp/files.el b/lisp/files.el index a9bf39ef6fb..763fac09125 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -355,7 +355,11 @@ Do not specify them in other calls." ;; to chase before getting an error. ;; PREV-DIRS can be a cons cell whose car is an alist ;; of truenames we've just recently computed. - (if (or (string= filename "~") + + ;; I don't understand the reason for these tests. To avoid string-match? + ;; Something like (string-match "\\`\\'\\|~" filename) would do the same. + ;; The last test looks dubious, maybe `+' is meant here? --simon. + (if (or (string= filename "") (string= filename "~") (and (string= (substring filename 0 1) "~") (string-match "~[^/]*" filename))) (progn