aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-07-18 06:56:05 +0000
committerGlenn Morris2008-07-18 06:56:05 +0000
commitec04db35d0caebe22720a9ed851d6d7e9dceb2a1 (patch)
treeec198f36f5726cddad745e9ae112c6335292da32
parentadd4eecc5c4f4408a192a1847e0ad55abd976486 (diff)
downloademacs-ec04db35d0caebe22720a9ed851d6d7e9dceb2a1.tar.gz
emacs-ec04db35d0caebe22720a9ed851d6d7e9dceb2a1.zip
(eshell-quote-backslash): Restrict previous change to XEmacs, since it
does nothing for Emacs.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/eshell/esh-arg.el10
2 files changed, 11 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7782a13b41c..20a14d0fd14 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-07-18 Glenn Morris <rgm@gnu.org>
2
3 * eshell/esh-arg.el (eshell-quote-backslash): Restrict previous change
4 to XEmacs, since it does nothing for Emacs.
5
12008-07-18 Katsumi Yamaoka <yamaoka@jpl.org> 62008-07-18 Katsumi Yamaoka <yamaoka@jpl.org>
2 7
3 * net/tls.el (open-tls-stream): Make it work with the 2nd argument 8 * net/tls.el (open-tls-stream): Make it work with the 2nd argument
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))))