]> git.eshelyaron.com Git - emacs.git/commitdiff
* subr.el (shell-quote-argument): Use alternate escaping strategy
authorDaniel Colascione <dan.colascione@gmail.com>
Wed, 27 Apr 2011 07:56:55 +0000 (00:56 -0700)
committerDaniel Colascione <dan.colascione@gmail.com>
Wed, 27 Apr 2011 07:56:55 +0000 (00:56 -0700)
when we spot a variable reference in a string.

lisp/ChangeLog
lisp/subr.el

index 3aae7e5b67878760c78ad112b845d709345c3321..e6517f77b32127122992b683278b73b815cbb678 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-27  Daniel Colascione  <dan.colascione@gmail.com>
+
+       * subr.el (shell-quote-argument): Use alternate escaping strategy
+       when we spot a variable reference in a string.
+
 2011-04-26  Daniel Colascione  <dan.colascione@gmail.com>
 
        * cus-start.el (all): Define customization for debug-on-event.
index 2b6a54040602ea4ce0f91f8e4b65587dc5406297..e374b56d2a8bc144f32fe3cf735988d395db908a 100644 (file)
@@ -2543,7 +2543,7 @@ Note: :data and :device are currently not supported on Windows."
             "\\1\\1\\\\\""
             argument)))
 
-    (if (string-match "\"" argument)
+    (if (string-match "[%!\"]" argument)
         (concat
          "^\""
          (replace-regexp-in-string