shell-dynamic-complete-filename too.
+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
(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))))