aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2011-08-23 01:25:17 -0400
committerStefan Monnier2011-08-23 01:25:17 -0400
commit1802e44433f0a36f3a3f877654cb2c2a666893e7 (patch)
tree4f5d77ec33e68407ceb7eb4e900c5ae04eac4efc
parentb3fd59bd988b168ab996bb6368af8bda2bec29b5 (diff)
downloademacs-1802e44433f0a36f3a3f877654cb2c2a666893e7.tar.gz
emacs-1802e44433f0a36f3a3f877654cb2c2a666893e7.zip
* lisp/shell.el (shell-completion-vars): Set pcomplete-arg-quote-list.
* lisp/pcomplete.el (pcomplete-quote-argument): Fix thinko. Fixes: debbugs:9161
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/pcomplete.el2
-rw-r--r--lisp/shell.el2
3 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e0322ae4595..61ef1a21065 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12011-08-23 Stefan Monnier <monnier@iro.umontreal.ca> 12011-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * shell.el (shell-completion-vars): Set pcomplete-arg-quote-list.
4 * pcomplete.el (pcomplete-quote-argument): Fix thinko (bug#9161).
5
3 * pcomplete.el (pcomplete-parse-comint-arguments): Fix inf-loop. 6 * pcomplete.el (pcomplete-parse-comint-arguments): Fix inf-loop.
4 Mark obsolete. 7 Mark obsolete.
5 * shell.el (shell-parse-pcomplete-arguments): New function. 8 * shell.el (shell-parse-pcomplete-arguments): New function.
diff --git a/lisp/pcomplete.el b/lisp/pcomplete.el
index 02f3c4ad1da..bdf2dadd16c 100644
--- a/lisp/pcomplete.el
+++ b/lisp/pcomplete.el
@@ -883,7 +883,7 @@ Magic characters are those in `pcomplete-arg-quote-list'."
883 (or (run-hook-with-args-until-success 883 (or (run-hook-with-args-until-success
884 'pcomplete-quote-arg-hook filename index) 884 'pcomplete-quote-arg-hook filename index)
885 (when (memq c pcomplete-arg-quote-list) 885 (when (memq c pcomplete-arg-quote-list)
886 (string "\\" c)) 886 (string ?\\ c))
887 (char-to-string c)) 887 (char-to-string c))
888 (setq index (1+ index)))) 888 (setq index (1+ index))))
889 filename 889 filename
diff --git a/lisp/shell.el b/lisp/shell.el
index 53472d9ef0a..01d1a688f0e 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -412,6 +412,8 @@ to `dirtrack-mode'."
412 shell-dynamic-complete-functions) 412 shell-dynamic-complete-functions)
413 (set (make-local-variable 'pcomplete-parse-arguments-function) 413 (set (make-local-variable 'pcomplete-parse-arguments-function)
414 #'shell-parse-pcomplete-arguments) 414 #'shell-parse-pcomplete-arguments)
415 (set (make-local-variable 'pcomplete-arg-quote-list)
416 (append "\\ \t\n\r\"'`$|&;(){}[]<>#" nil))
415 (set (make-local-variable 'pcomplete-termination-string) 417 (set (make-local-variable 'pcomplete-termination-string)
416 (cond ((not comint-completion-addsuffix) "") 418 (cond ((not comint-completion-addsuffix) "")
417 ((stringp comint-completion-addsuffix) 419 ((stringp comint-completion-addsuffix)