From: Richard M. Stallman Date: Sat, 27 Jan 1996 02:18:29 +0000 (+0000) Subject: (dired-get-filename): When quoting " chars, X-Git-Tag: emacs-19.34~1473 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bc07e5cb1e416d6b7df6deb3b0866c2fd1a79fdf;p=emacs.git (dired-get-filename): When quoting " chars, handle all of them, including one at start of file name. --- diff --git a/lisp/dired.el b/lisp/dired.el index ca69ece98f4..39d4a899121 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -1199,7 +1199,7 @@ Optional arg NO-ERROR-IF-NOT-FILEP means return nil if no filename on ;; some ls -b don't escape quotes, argh! ;; This is not needed for GNU ls, though. (or (dired-string-replace-match - "\\([^\\]\\)\"" file "\\1\\\\\"") + "\\([^\\]\\|\\`\\)\"" file "\\1\\\\\"" nil t) file) "\""))))) (if (eq localp 'no-dir)