[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 2afab0d 1/2: Remove XEmacs compat code from esh-arg
From: |
Stefan Kangas |
Subject: |
[Emacs-diffs] master 2afab0d 1/2: Remove XEmacs compat code from esh-arg.el |
Date: |
Fri, 18 Oct 2019 18:22:44 -0400 (EDT) |
branch: master
commit 2afab0d9ce38dbd597ca839e3dd3fb8e3869781e
Author: Stefan Kangas <address@hidden>
Commit: Stefan Kangas <address@hidden>
Remove XEmacs compat code from esh-arg.el
* lisp/eshell/esh-arg.el (eshell-quote-backslash): Remove XEmacs
compat code.
---
lisp/eshell/esh-arg.el | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/lisp/eshell/esh-arg.el b/lisp/eshell/esh-arg.el
index 4685095..021b622 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."
"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 (and (eq char ?\\)
- ;; In Emacs directory-sep-char is always ?/, so this does nothing.
- (not (and (featurep 'xemacs)
- (featurep 'mswindows)
- (eq directory-sep-char ?\\)
- (eq (1- (string-width string))
- index))))
+ (if (eq char ?\\)
(char-to-string char)
(if (memq char eshell-special-chars-outside-quoting)
(string ?\\ char)))))