diff options
| author | Stefan Monnier | 2012-05-05 00:18:49 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-05-05 00:18:49 -0400 |
| commit | 3d53ee1b2d06098527f983756fcfdfc2a5ecce16 (patch) | |
| tree | 2239cf472f81f351b3c00c592dfc079b7dab4cbb /lisp/shell.el | |
| parent | e68b393e6078ffad1e026a8c9de41a472eebc488 (diff) | |
| download | emacs-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
Diffstat (limited to 'lisp/shell.el')
| -rw-r--r-- | lisp/shell.el | 9 |
1 files changed, 6 insertions, 3 deletions
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) |