[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/subr.el,v
From: |
Jason Rumney |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/subr.el,v |
Date: |
Mon, 25 Sep 2006 23:03:39 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Jason Rumney <jasonr> 06/09/25 23:03:39
Index: subr.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/subr.el,v
retrieving revision 1.526
retrieving revision 1.527
diff -u -b -r1.526 -r1.527
--- subr.el 20 Sep 2006 20:44:56 -0000 1.526
+++ subr.el 25 Sep 2006 23:03:39 -0000 1.527
@@ -2053,7 +2053,8 @@
(defun shell-quote-argument (argument)
"Quote an argument for passing as argument to an inferior shell."
- (if (eq system-type 'ms-dos)
+ (if (or (eq system-type 'ms-dos)
+ (and (eq system-type 'windows-nt) (w32-shell-dos-semantics)))
;; Quote using double quotes, but escape any existing quotes in
;; the argument with backslashes.
(let ((result "")
@@ -2067,8 +2068,6 @@
"\\" (substring argument end (1+ end)))
start (1+ end))))
(concat "\"" result (substring argument start) "\""))
- (if (eq system-type 'windows-nt)
- (concat "\"" argument "\"")
(if (equal argument "")
"''"
;; Quote everything except POSIX filename characters.
@@ -2079,7 +2078,7 @@
result (concat result (substring argument start end)
"\\" (substring argument end (1+ end)))
start (1+ end)))
- (concat result (substring argument start)))))))
+ (concat result (substring argument start))))))
(defun string-or-null-p (object)
"Return t if OBJECT is a string or nil.
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Richard M. Stallman, 2006/09/10
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Kim F. Storm, 2006/09/11
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Vinicius Jose Latorre, 2006/09/20
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v,
Jason Rumney <=
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Richard M. Stallman, 2006/09/28