aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/eshell
diff options
context:
space:
mode:
authorGlenn Morris2008-07-18 06:56:05 +0000
committerGlenn Morris2008-07-18 06:56:05 +0000
commitec04db35d0caebe22720a9ed851d6d7e9dceb2a1 (patch)
treeec198f36f5726cddad745e9ae112c6335292da32 /lisp/eshell
parentadd4eecc5c4f4408a192a1847e0ad55abd976486 (diff)
downloademacs-ec04db35d0caebe22720a9ed851d6d7e9dceb2a1.tar.gz
emacs-ec04db35d0caebe22720a9ed851d6d7e9dceb2a1.zip
(eshell-quote-backslash): Restrict previous change to XEmacs, since it
does nothing for Emacs.
Diffstat (limited to 'lisp/eshell')
-rw-r--r--lisp/eshell/esh-arg.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/eshell/esh-arg.el b/lisp/eshell/esh-arg.el
index d6dd5b23d0f..c2574e5e55d 100644
--- a/lisp/eshell/esh-arg.el
+++ b/lisp/eshell/esh-arg.el
@@ -1,7 +1,7 @@
1;;; esh-arg.el --- argument processing 1;;; esh-arg.el --- argument processing
2 2
3;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
4;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 4;; 2008 Free Software Foundation, Inc.
5 5
6;; Author: John Wiegley <johnw@gnu.org> 6;; Author: John Wiegley <johnw@gnu.org>
7 7
@@ -282,8 +282,10 @@ Point is left at the end of the arguments."
282 "Intelligently backslash the character occurring in STRING at INDEX. 282 "Intelligently backslash the character occurring in STRING at INDEX.
283If the character is itself a backslash, it needs no escaping." 283If the character is itself a backslash, it needs no escaping."
284 (let ((char (aref string index))) 284 (let ((char (aref string index)))
285 (if (and (eq char ?\\) 285 (if (and (eq char ?\\)
286 (not (and (featurep 'mswindows) 286 ;; In Emacs directory-sep-char is always ?/, so this does nothing.
287 (not (and (featurep 'xemacs)
288 (featurep 'mswindows)
287 (eq directory-sep-char ?\\) 289 (eq directory-sep-char ?\\)
288 (eq (1- (string-width string)) 290 (eq (1- (string-width string))
289 index)))) 291 index))))