From 22eb1d41ef2a3b4975f3d1cc56864cf778ff2435 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 31 Jul 2002 23:32:14 +0000 Subject: [PATCH] (pcomplete-comint-setup): Use `add-to-list', to prevent adding the symbol `pcomplete' to shell-dynamic-complete-functions too many times. --- lisp/pcomplete.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 () -- 2.39.5