diff options
| author | Chong Yidong | 2009-07-12 16:20:50 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-07-12 16:20:50 +0000 |
| commit | 208384c5cf196bbefcc5c972ab02f32424c0c072 (patch) | |
| tree | 6db2d55439bff6e059db2b0193d40498370d9f80 | |
| parent | 332eb5f1a91049fe449e6bdec285f5af946d5049 (diff) | |
| download | emacs-208384c5cf196bbefcc5c972ab02f32424c0c072.tar.gz emacs-208384c5cf196bbefcc5c972ab02f32424c0c072.zip | |
* pcomplete.el (pcomplete-comint-setup): Check for
shell-dynamic-complete-filename too.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/pcomplete.el | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 007381ba11a..67c3b353032 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-07-12 Guanpeng Xu <herberteuler@hotmail.com> | ||
| 2 | |||
| 3 | * pcomplete.el (pcomplete-comint-setup): Check for | ||
| 4 | shell-dynamic-complete-filename too. | ||
| 5 | |||
| 1 | 2009-07-11 Chong Yidong <cyd@stupidchicken.com> | 6 | 2009-07-11 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * simple.el (temporary-goal-column): Change the value for | 8 | * simple.el (temporary-goal-column): Change the value for |
diff --git a/lisp/pcomplete.el b/lisp/pcomplete.el index 7a8c6e7c247..c24f3cedae5 100644 --- a/lisp/pcomplete.el +++ b/lisp/pcomplete.el | |||
| @@ -590,8 +590,9 @@ this is `comint-dynamic-complete-functions'." | |||
| 590 | (set (make-local-variable 'pcomplete-parse-arguments-function) | 590 | (set (make-local-variable 'pcomplete-parse-arguments-function) |
| 591 | 'pcomplete-parse-comint-arguments) | 591 | 'pcomplete-parse-comint-arguments) |
| 592 | (make-local-variable completef-sym) | 592 | (make-local-variable completef-sym) |
| 593 | (let ((elem (memq 'comint-dynamic-complete-filename | 593 | (let* ((funs (symbol-value completef-sym)) |
| 594 | (symbol-value completef-sym)))) | 594 | (elem (or (memq 'comint-dynamic-complete-filename funs) |
| 595 | (memq 'shell-dynamic-complete-filename funs)))) | ||
| 595 | (if elem | 596 | (if elem |
| 596 | (setcar elem 'pcomplete) | 597 | (setcar elem 'pcomplete) |
| 597 | (add-to-list completef-sym 'pcomplete)))) | 598 | (add-to-list completef-sym 'pcomplete)))) |