* esh-arg.el (eshell-quote-backslash): Fix eshell path completion
for Windows.
+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.
"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)))))