fix(lib): setq!: use set-default-toplevel-value

This is more correct, as we never want to use this to set buffer-local
variables.
This commit is contained in:
Henrik Lissner 2022-09-24 10:52:02 +02:00
parent eda2e30721
commit f0431b6fac
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -583,7 +583,7 @@ instead of `setopt'. Unlike `setq', this triggers custom setters on variables.
Unlike `setopt', this won't needlessly pull in dependencies."
(macroexp-progn
(cl-loop for (var val) on settings by 'cddr
collect `(funcall (or (get ',var 'custom-set) #'set)
collect `(funcall (or (get ',var 'custom-set) #'set-default-toplevel-value)
',var ,val))))
(defmacro delq! (elt list &optional fetcher)