mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* lisp/shell.el (shell-completion-vars): Set pcomplete-arg-quote-list.
* lisp/pcomplete.el (pcomplete-quote-argument): Fix thinko. Fixes: debbugs:9161
This commit is contained in:
parent
b3fd59bd98
commit
1802e44433
3 changed files with 6 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue