]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/shell.el (shell-completion-vars): Set pcomplete-arg-quote-list.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 23 Aug 2011 05:25:17 +0000 (01:25 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 23 Aug 2011 05:25:17 +0000 (01:25 -0400)
* lisp/pcomplete.el (pcomplete-quote-argument): Fix thinko.

Fixes: debbugs:9161
lisp/ChangeLog
lisp/pcomplete.el
lisp/shell.el

index e0322ae45958592f4b7893a0d3ebb1c6f3ab5cf7..61ef1a21065ba6729c812d21b16783856a8b9be2 100644 (file)
@@ -1,5 +1,8 @@
 2011-08-23  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * shell.el (shell-completion-vars): Set pcomplete-arg-quote-list.
+       * pcomplete.el (pcomplete-quote-argument): Fix thinko (bug#9161).
+
        * pcomplete.el (pcomplete-parse-comint-arguments): Fix inf-loop.
        Mark obsolete.
        * shell.el (shell-parse-pcomplete-arguments): New function.
index 02f3c4ad1da7cc17082f4d557531d57d6037bc12..bdf2dadd16c5be779dbbd15878a2f8f7c67ec3ee 100644 (file)
@@ -883,7 +883,7 @@ Magic characters are those in `pcomplete-arg-quote-list'."
                        (or (run-hook-with-args-until-success
                             'pcomplete-quote-arg-hook filename index)
                            (when (memq c pcomplete-arg-quote-list)
-                             (string "\\" c))
+                             (string ?\\ c))
                            (char-to-string c))
                      (setq index (1+ index))))
                  filename
index 53472d9ef0a21e581481d7ee3c80e1053b4c9fcf..01d1a688f0e86c5308b0ddb4fe57d66db8e3dafa 100644 (file)
@@ -412,6 +412,8 @@ to `dirtrack-mode'."
        shell-dynamic-complete-functions)
   (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))
   (set (make-local-variable 'pcomplete-termination-string)
        (cond ((not comint-completion-addsuffix) "")
              ((stringp comint-completion-addsuffix)