From 23868658a20b66d40ed7aa9e9af3c1da141d511e Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 4 Nov 2022 09:49:48 +0200 Subject: [PATCH] ; * lisp/subr.el (setq-local): Fix last doc change. --- lisp/subr.el | 18 ++++++++++-------- 1 file 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)) -- 2.39.2