aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2012-05-05 00:18:49 -0400
committerStefan Monnier2012-05-05 00:18:49 -0400
commit3d53ee1b2d06098527f983756fcfdfc2a5ecce16 (patch)
tree2239cf472f81f351b3c00c592dfc079b7dab4cbb
parente68b393e6078ffad1e026a8c9de41a472eebc488 (diff)
downloademacs-3d53ee1b2d06098527f983756fcfdfc2a5ecce16.tar.gz
emacs-3d53ee1b2d06098527f983756fcfdfc2a5ecce16.zip
* lisp/shell.el (shell-completion-vars): Set pcomplete-arg-quote-list like
shell-delimiter-argument-list. (shell-parse-pcomplete-arguments): Obey pcomplete-arg-quote-list. Fixes: debbugs:11348
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/shell.el9
2 files changed, 12 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ff08f0681aa..7a83c95ec3a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12012-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * shell.el (shell-completion-vars): Set pcomplete-arg-quote-list like
4 shell-delimiter-argument-list (bug#11348).
5 (shell-parse-pcomplete-arguments): Obey pcomplete-arg-quote-list.
6
12012-05-04 Chong Yidong <cyd@gnu.org> 72012-05-04 Chong Yidong <cyd@gnu.org>
2 8
3 * select.el (xselect--encode-string): Always use utf-8 for TEXT on 9 * select.el (xselect--encode-string): Always use utf-8 for TEXT on
diff --git a/lisp/shell.el b/lisp/shell.el
index 7c5ce49a967..737f69c021d 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -393,8 +393,11 @@ Thus, this does not include the shell's current directory.")
393 (goto-char (match-end 0)) 393 (goto-char (match-end 0))
394 (cond 394 (cond
395 ((match-beginning 3) ;Backslash escape. 395 ((match-beginning 3) ;Backslash escape.
396 (push (if (= (match-beginning 3) (match-end 3)) 396 (push (cond
397 "\\" (match-string 3)) 397 ((null pcomplete-arg-quote-list)
398 (goto-char (match-beginning 3)) "\\")
399 ((= (match-beginning 3) (match-end 3)) "\\")
400 (t (match-string 3)))
398 arg)) 401 arg))
399 ((match-beginning 2) ;Double quote. 402 ((match-beginning 2) ;Double quote.
400 (push (replace-regexp-in-string 403 (push (replace-regexp-in-string
@@ -429,7 +432,7 @@ Shell buffers. It implements `shell-completion-execonly' for
429 (set (make-local-variable 'pcomplete-parse-arguments-function) 432 (set (make-local-variable 'pcomplete-parse-arguments-function)
430 #'shell-parse-pcomplete-arguments) 433 #'shell-parse-pcomplete-arguments)
431 (set (make-local-variable 'pcomplete-arg-quote-list) 434 (set (make-local-variable 'pcomplete-arg-quote-list)
432 (append "\\ \t\n\r\"'`$|&;(){}[]<>#" nil)) 435 shell-delimiter-argument-list)
433 (set (make-local-variable 'pcomplete-termination-string) 436 (set (make-local-variable 'pcomplete-termination-string)
434 (cond ((not comint-completion-addsuffix) "") 437 (cond ((not comint-completion-addsuffix) "")
435 ((stringp comint-completion-addsuffix) 438 ((stringp comint-completion-addsuffix)