summaryrefslogtreecommitdiff
path: root/lisp/pcomplete.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2009-10-28 13:59:30 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2009-10-28 13:59:30 +0000
commit70f44c655cee05550fa1cfcd0aae5cf720c31447 (patch)
treee100470a1592e9513fe8935954dbde067f0da6e1 /lisp/pcomplete.el
parentb861e45ef6b53b5d3e609c47920e1c880571e96e (diff)
downloademacs-70f44c655cee05550fa1cfcd0aae5cf720c31447.tar.gz
(pcomplete-comint-setup): If there's a choice, replace
shell-dynamic-complete-filename in preference to comint-dynamic-complete-filename.
Diffstat (limited to 'lisp/pcomplete.el')
-rw-r--r--lisp/pcomplete.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/pcomplete.el b/lisp/pcomplete.el
index f0296532ca9..65b48f49fa9 100644
--- a/lisp/pcomplete.el
+++ b/lisp/pcomplete.el
@@ -775,8 +775,8 @@ this is `comint-dynamic-complete-functions'."
(set (make-local-variable completef-sym)
(copy-sequence (symbol-value completef-sym)))
(let* ((funs (symbol-value completef-sym))
- (elem (or (memq 'comint-dynamic-complete-filename funs)
- (memq 'shell-dynamic-complete-filename funs))))
+ (elem (or (memq 'shell-dynamic-complete-filename funs)
+ (memq 'comint-dynamic-complete-filename funs))))
(if elem
(setcar elem 'pcomplete)
(add-to-list completef-sym 'pcomplete))))