]> git.eshelyaron.com Git - emacs.git/commitdiff
* pcomplete.el (pcomplete-comint-setup): Check for
authorChong Yidong <cyd@stupidchicken.com>
Sun, 12 Jul 2009 16:20:50 +0000 (16:20 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 12 Jul 2009 16:20:50 +0000 (16:20 +0000)
shell-dynamic-complete-filename too.

lisp/ChangeLog
lisp/pcomplete.el

index 007381ba11aaade434cd58ae012076c403095ea9..67c3b353032bf6cdab11d16c567ded67f3c36e8b 100644 (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
index 7a8c6e7c2475acc8d907da52d45f95753be633ac..c24f3cedae59ab44a9e5a846e6ef2ba67c0211b1 100644 (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))))