From: John Wiegley Date: Wed, 31 Jul 2002 23:32:14 +0000 (+0000) Subject: (pcomplete-comint-setup): Use `add-to-list', to prevent adding the X-Git-Tag: ttn-vms-21-2-B4~13796 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=22eb1d41ef2a3b4975f3d1cc56864cf778ff2435;p=emacs.git (pcomplete-comint-setup): Use `add-to-list', to prevent adding the symbol `pcomplete' to shell-dynamic-complete-functions too many times. --- diff --git a/lisp/pcomplete.el b/lisp/pcomplete.el index 3ab1619f127..9a1403cc104 100644 --- a/lisp/pcomplete.el +++ b/lisp/pcomplete.el @@ -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)))) ;;;###autoload (defun pcomplete-shell-setup ()