]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/shell.el (shell-completion-vars): Set pcomplete-arg-quote-list like
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 5 May 2012 04:18:49 +0000 (00:18 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 5 May 2012 04:18:49 +0000 (00:18 -0400)
shell-delimiter-argument-list.
(shell-parse-pcomplete-arguments): Obey pcomplete-arg-quote-list.

Fixes: debbugs:11348
lisp/ChangeLog
lisp/shell.el

index ff08f0681aac8dc90693b5cd26c1976389d9dbcc..7a83c95ec3a60fb8b18c8a24efeaaa45660c9a68 100644 (file)
@@ -1,3 +1,9 @@
+2012-05-05  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * shell.el (shell-completion-vars): Set pcomplete-arg-quote-list like
+       shell-delimiter-argument-list (bug#11348).
+       (shell-parse-pcomplete-arguments): Obey pcomplete-arg-quote-list.
+
 2012-05-04  Chong Yidong  <cyd@gnu.org>
 
        * select.el (xselect--encode-string): Always use utf-8 for TEXT on
index 7c5ce49a96781c4d548b7a2595620980fea2d8bc..737f69c021dc91f3d5d07cb89ca5a7cdae93539f 100644 (file)
@@ -393,8 +393,11 @@ Thus, this does not include the shell's current directory.")
             (goto-char (match-end 0))
             (cond
              ((match-beginning 3)       ;Backslash escape.
-              (push (if (= (match-beginning 3) (match-end 3))
-                        "\\" (match-string 3))
+              (push (cond
+                     ((null pcomplete-arg-quote-list)
+                      (goto-char (match-beginning 3)) "\\")
+                     ((= (match-beginning 3) (match-end 3)) "\\")
+                     (t (match-string 3)))
                     arg))
              ((match-beginning 2)       ;Double quote.
               (push (replace-regexp-in-string
@@ -429,7 +432,7 @@ Shell buffers.  It implements `shell-completion-execonly' for
   (set (make-local-variable 'pcomplete-parse-arguments-function)
        #'shell-parse-pcomplete-arguments)
   (set (make-local-variable 'pcomplete-arg-quote-list)
-       (append "\\ \t\n\r\"'`$|&;(){}[]<>#" nil))
+       shell-delimiter-argument-list)
   (set (make-local-variable 'pcomplete-termination-string)
        (cond ((not comint-completion-addsuffix) "")
              ((stringp comint-completion-addsuffix)