aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2019-10-18 23:26:46 +0200
committerStefan Kangas2019-10-19 00:17:29 +0200
commit2afab0d9ce38dbd597ca839e3dd3fb8e3869781e (patch)
treef927e0db09122b95689c7162d03a952b1a434ff5
parentf3aa05b1aad055452093350785ea05d4a64142dd (diff)
downloademacs-2afab0d9ce38dbd597ca839e3dd3fb8e3869781e.tar.gz
emacs-2afab0d9ce38dbd597ca839e3dd3fb8e3869781e.zip
Remove XEmacs compat code from esh-arg.el
* lisp/eshell/esh-arg.el (eshell-quote-backslash): Remove XEmacs compat code.
-rw-r--r--lisp/eshell/esh-arg.el8
1 files changed, 1 insertions, 7 deletions
diff --git a/lisp/eshell/esh-arg.el b/lisp/eshell/esh-arg.el
index 46850958267..021b6222397 100644
--- a/lisp/eshell/esh-arg.el
+++ b/lisp/eshell/esh-arg.el
@@ -302,13 +302,7 @@ Point is left at the end of the arguments."
302 "Intelligently backslash the character occurring in STRING at INDEX. 302 "Intelligently backslash the character occurring in STRING at INDEX.
303If the character is itself a backslash, it needs no escaping." 303If the character is itself a backslash, it needs no escaping."
304 (let ((char (aref string index))) 304 (let ((char (aref string index)))
305 (if (and (eq char ?\\) 305 (if (eq char ?\\)
306 ;; In Emacs directory-sep-char is always ?/, so this does nothing.
307 (not (and (featurep 'xemacs)
308 (featurep 'mswindows)
309 (eq directory-sep-char ?\\)
310 (eq (1- (string-width string))
311 index))))
312 (char-to-string char) 306 (char-to-string char)
313 (if (memq char eshell-special-chars-outside-quoting) 307 (if (memq char eshell-special-chars-outside-quoting)
314 (string ?\\ char))))) 308 (string ?\\ char)))))