Commit 22eb1d41 authored by John Wiegley's avatar John Wiegley
Browse files

(pcomplete-comint-setup): Use `add-to-list', to prevent adding the

symbol `pcomplete' to shell-dynamic-complete-functions too many times.
parent c71cb98b
......@@ -582,8 +582,7 @@ dynamic-complete-functions are kept. For comint mode itself, this is
(symbol-value completef-sym))))
(if elem
(setcar elem 'pcomplete)
(nconc (symbol-value completef-sym)
(list 'pcomplete)))))
(add-to-list completef-sym 'pcomplete))))
(defun pcomplete-shell-setup ()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment