1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

Fix thinko in my previous commit

* 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.
This commit is contained in:
Stefan Kangas 2020-12-09 22:40:31 +01:00
parent 1047f80f1c
commit ddf55400dc

View 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)