summaryrefslogtreecommitdiff
path: root/lisp/dired.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2012-01-17 19:08:05 -0500
committerGlenn Morris <rgm@gnu.org>2012-01-17 19:08:05 -0500
commit01153e4496db5be3e9041245ca8a5483bf0b328c (patch)
tree19ebacdc2fe301e6365c1004fe7a19a48be14e5e /lisp/dired.el
parent0e6038be96b1641a32620b0f29a5a898a1c4cb31 (diff)
downloademacs-01153e4496db5be3e9041245ca8a5483bf0b328c.tar.gz
* lisp/dired.el (dired-build-subdir-alist): Restrict previous change.
(to only file names containing "\"s)
Diffstat (limited to 'lisp/dired.el')
-rw-r--r--lisp/dired.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/dired.el b/lisp/dired.el
index 34fb651db10..733e522a9aa 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -2558,7 +2558,8 @@ instead of `dired-actual-switches'."
(setq count (1+ count))
;; Undo any escaping of newlines and \ by dired-insert-directory.
;; Convert "n" preceded by odd number of \ to newline, and \\ to \.
- (when (dired-switches-escape-p switches)
+ (when (and (dired-switches-escape-p switches)
+ (string-match "\\\\" new-dir-name))
(let (temp res)
(mapc (lambda (char)
(cond ((equal char ?\\)