; * lisp/subr.el (setq-local): Doc fix (bug#78644).

This commit is contained in:
Eli Zaretskii 2025-05-31 11:12:58 +03:00
parent 1bb88a86cb
commit 9dc6c21b41

View file

@ -161,11 +161,12 @@ of previous VARs.
`(progn . ,(nreverse exps)))) `(progn . ,(nreverse exps))))
(defmacro setq-local (&rest pairs) (defmacro setq-local (&rest pairs)
"Make each VARIABLE buffer-local and assign to it the corresponding VALUE. "Make each VARIABLE local to current buffer and set it to corresponding VALUE.
The arguments are variable/value pairs. For each VARIABLE in a pair, The arguments are variable/value pairs. For each VARIABLE in a pair,
make VARIABLE buffer-local and assign to it the corresponding VALUE make VARIABLE buffer-local in the current buffer and assign to it the
of the pair. The VARIABLEs are literal symbols and should not be quoted. corresponding VALUE of the pair. The VARIABLEs are literal symbols
and should not be quoted.
The VALUE of the Nth pair is not computed until after the VARIABLE The VALUE of the Nth pair is not computed until after the VARIABLE
of the (N-1)th pair is set; thus, each VALUE can use the new VALUEs of the (N-1)th pair is set; thus, each VALUE can use the new VALUEs