1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00

* pcomplete.el (pcomplete-comint-setup): Check for

shell-dynamic-complete-filename too.
This commit is contained in:
Chong Yidong 2009-07-12 16:20:50 +00:00
parent 332eb5f1a9
commit 208384c5cf
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2009-07-12 Guanpeng Xu <herberteuler@hotmail.com>
* pcomplete.el (pcomplete-comint-setup): Check for
shell-dynamic-complete-filename too.
2009-07-11 Chong Yidong <cyd@stupidchicken.com>
* simple.el (temporary-goal-column): Change the value for

View File

@ -590,8 +590,9 @@ this is `comint-dynamic-complete-functions'."
(set (make-local-variable 'pcomplete-parse-arguments-function)
'pcomplete-parse-comint-arguments)
(make-local-variable completef-sym)
(let ((elem (memq 'comint-dynamic-complete-filename
(symbol-value completef-sym))))
(let* ((funs (symbol-value completef-sym))
(elem (or (memq 'comint-dynamic-complete-filename funs)
(memq 'shell-dynamic-complete-filename funs))))
(if elem
(setcar elem 'pcomplete)
(add-to-list completef-sym 'pcomplete))))