# HG changeset patch # User Richard M. Stallman # Date 822709109 0 # Node ID 9c3c642de62acdcc7a0717d81b83e7ef714602c4 # Parent 4e5b28d28a5fcc5485f868c2237dcacc585d1d32 (dired-get-filename): When quoting " chars, handle all of them, including one at start of file name. diff -r 4e5b28d28a5f -r 9c3c642de62a lisp/dired.el --- a/lisp/dired.el Sat Jan 27 00:14:59 1996 +0000 +++ b/lisp/dired.el Sat Jan 27 02:18:29 1996 +0000 @@ -1199,7 +1199,7 @@ ;; 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)