summaryrefslogtreecommitdiff
path: root/lisp/subr.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-11-04 09:49:48 +0200
committerEli Zaretskii <eliz@gnu.org>2022-11-04 09:49:48 +0200
commit23868658a20b66d40ed7aa9e9af3c1da141d511e (patch)
treea0473acaef62dcb05141735821531ce154632272 /lisp/subr.el
parentca3763af5cc2758ec71700029558e6ecc4379ea9 (diff)
downloademacs-23868658a20b66d40ed7aa9e9af3c1da141d511e.tar.gz
emacs-23868658a20b66d40ed7aa9e9af3c1da141d511e.tar.bz2
emacs-23868658a20b66d40ed7aa9e9af3c1da141d511e.zip
; * lisp/subr.el (setq-local): Fix last doc change.
Diffstat (limited to 'lisp/subr.el')
-rw-r--r--lisp/subr.el18
1 files changed, 10 insertions, 8 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index b60bc110797..6b83196d05b 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -161,16 +161,18 @@ of previous VARs.
`(progn . ,(nreverse exps))))
(defmacro setq-local (&rest pairs)
- "Make VARIABLEs buffer-local and assign them the corresponding VALUEs.
+ "Make each VARIABLE buffer-local and assign to it the corresponding VALUE.
-The args are a list of variable/value pairs. For each VARIABLE,
-make it buffer-local and assign it the corresponding VALUE. The
-variables are literal symbols and should not be quoted.
+The arguments are variable/value pairs For each VARIABLE in a pair,
+make VARIABLE buffer-local and assign to it the corresponding VALUE
+of the pair. The VARIABLEs are literal symbols and should not be quoted.
-The second VALUE is not computed until after the first VARIABLE
-is set, and so on; each VALUE can use the new value of variables
-set earlier in the `setq-local'. The return value of the
-`setq-local' form is the value of the last VALUE.
+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 VARIABLEs set by earlier pairs.
+
+The return value of the `setq-local' form is the VALUE of the last
+pair.
\(fn [VARIABLE VALUE]...)"
(declare (debug setq))