]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/dired.el (dired-build-subdir-alist): Restrict previous change.
authorGlenn Morris <rgm@gnu.org>
Wed, 18 Jan 2012 00:08:05 +0000 (19:08 -0500)
committerGlenn Morris <rgm@gnu.org>
Wed, 18 Jan 2012 00:08:05 +0000 (19:08 -0500)
(to only file names containing "\"s)

lisp/dired.el

index 34fb651db10d3d4dacfde646a0d53038397b2fd0..733e522a9aab58820994ba9221f8e327c23caf25 100644 (file)
@@ -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 ?\\)