]> git.eshelyaron.com Git - emacs.git/commitdiff
2008-07-17 Fan Kai <fktpp@xemacs.org>
authorJohn Wiegley <johnw@newartisans.com>
Thu, 17 Jul 2008 08:44:20 +0000 (08:44 +0000)
committerJohn Wiegley <johnw@newartisans.com>
Thu, 17 Jul 2008 08:44:20 +0000 (08:44 +0000)
* esh-arg.el (eshell-quote-backslash): Fix eshell path completion
for Windows.

lisp/ChangeLog
lisp/eshell/esh-arg.el

index 65b7e033a960d32cb1aa9146c1911d5f96d8e723..d3d126f7dafad34979b4bc7615eb8dbdd244b6f2 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-17  Fan Kai  <fktpp@xemacs.org>
+
+       * esh-arg.el (eshell-quote-backslash): Fix eshell path completion
+       for Windows.
+
 2008-07-17  Daiki Ueno  <ueno@unixuser.org>
 
        * epa.el (epa-key-list-mode): Use run-mode-hooks.
index 7e86772e797c3750bf90c6ba7310b56b42ff5eed..d6dd5b23d0f52dccd289a6e76d5ff71b584d0104 100644 (file)
@@ -282,7 +282,11 @@ Point is left at the end of the arguments."
   "Intelligently backslash the character occurring in STRING at INDEX.
 If the character is itself a backslash, it needs no escaping."
   (let ((char (aref string index)))
-    (if (eq char ?\\)
+    (if (and (eq char ?\\) 
+            (not (and (featurep 'mswindows)
+                      (eq directory-sep-char ?\\)
+                      (eq (1- (string-width string))
+                          index))))
        (char-to-string char)
       (if (memq char eshell-special-chars-outside-quoting)
          (string ?\\ char)))))