[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9161: 24.0.50; incorrect completion-at-point in *shell* buffer
From: |
Stefan Monnier |
Subject: |
bug#9161: 24.0.50; incorrect completion-at-point in *shell* buffer |
Date: |
Tue, 23 Aug 2011 01:25:35 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> But,
> % cd 0<TAB>
> is completed to
> % cd 0 a
Thanks. I think the patch below fixes this problem.
Stefan
=== modified file 'lisp/ChangeLog'
--- lisp/ChangeLog 2011-08-23 05:21:09 +0000
+++ lisp/ChangeLog 2011-08-23 05:23:21 +0000
@@ -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.
=== modified file 'lisp/pcomplete.el'
--- lisp/pcomplete.el 2011-08-23 05:21:09 +0000
+++ lisp/pcomplete.el 2011-08-23 05:21:58 +0000
@@ -883,7 +883,7 @@
(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
=== modified file 'lisp/shell.el'
--- lisp/shell.el 2011-08-23 05:21:09 +0000
+++ lisp/shell.el 2011-08-23 05:21:45 +0000
@@ -412,6 +412,8 @@
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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#9161: 24.0.50; incorrect completion-at-point in *shell* buffer,
Stefan Monnier <=