]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix thinko in my previous commit
authorStefan Kangas <stefan@marxist.se>
Wed, 9 Dec 2020 21:40:31 +0000 (22:40 +0100)
committerStefan Kangas <stefan@marxist.se>
Wed, 9 Dec 2020 21:48:59 +0000 (22:48 +0100)
* lisp/pcomplete.el (pcomplete-comint-setup): Fix thinko in my
previous commit.  This was not a quoted symbol but a variable, and
therefore cannot use setq-local.

lisp/pcomplete.el

index 4b31d157f67e39a9f017aa82955a9f57c51c29a8..1f3327435e2233f7bc8813cbb5fec9c6c1d4ea20 100644 (file)
@@ -742,8 +742,8 @@ this is `comint-dynamic-complete-functions'."
               #'pcomplete-parse-comint-arguments)
   (add-hook 'completion-at-point-functions
             #'pcomplete-completions-at-point nil 'local)
-  (setq-local completef-sym
-              (copy-sequence (symbol-value completef-sym)))
+  (set (make-local-variable completef-sym)
+       (copy-sequence (symbol-value completef-sym)))
   (let* ((funs (symbol-value completef-sym))
         (elem (or (memq 'comint-filename-completion funs)
                    (memq 'shell-filename-completion funs)