emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/eshell/esh-arg.el,v


From: John Wiegley
Subject: [Emacs-diffs] Changes to emacs/lisp/eshell/esh-arg.el,v
Date: Thu, 17 Jul 2008 08:44:24 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     John Wiegley <johnw>    08/07/17 08:44:23

Index: eshell/esh-arg.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/eshell/esh-arg.el,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- eshell/esh-arg.el   3 Jul 2008 15:18:31 -0000       1.19
+++ eshell/esh-arg.el   17 Jul 2008 08:44:20 -0000      1.20
@@ -282,7 +282,11 @@
   "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)))))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]