aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Whitton2025-11-25 21:05:50 +0000
committerSean Whitton2025-11-25 21:05:50 +0000
commitf5953186efbfcbf8e5c40b5d64b3e32f03e7403b (patch)
tree10384e1d1d350bcba657c77068e8fbaf297528ec
parent39e9f96ba01649506675c22da7090fb80dce6cc6 (diff)
downloademacs-f5953186efbfcbf8e5c40b5d64b3e32f03e7403b.tar.gz
emacs-f5953186efbfcbf8e5c40b5d64b3e32f03e7403b.zip
; * lisp/emacs-lisp/pcase.el (pcase-setq): Fix parameter names.
-rw-r--r--lisp/emacs-lisp/pcase.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/pcase.el b/lisp/emacs-lisp/pcase.el
index cd6b5e42771..07802849489 100644
--- a/lisp/emacs-lisp/pcase.el
+++ b/lisp/emacs-lisp/pcase.el
@@ -356,16 +356,17 @@ of the elements of LIST is performed as if by `pcase-let'.
356;;;###autoload 356;;;###autoload
357(defmacro pcase-setq (pat val &rest args) 357(defmacro pcase-setq (pat val &rest args)
358 "Assign values to variables by destructuring with `pcase'. 358 "Assign values to variables by destructuring with `pcase'.
359PATTERNS are normal `pcase' patterns, and VALUES are expression. 359Each PATTERN is a normal `pcase' pattern, and each VALUE an expression.
360 360
361Evaluation happens sequentially as in `setq' (not in parallel). 361Evaluation happens sequentially as in `setq' (not in parallel).
362 362
363An example: (pcase-setq \\=`((,a) [(,b)]) \\='((1) [(2)])) 363An example: (pcase-setq \\=`((,a) [(,b)]) \\='((1) [(2)]))
364 364
365VAL is presumed to match PAT. Failure to match may signal an error or go 365Each VALUE is presumed to match its PATTERN. Failure to match may
366undetected, binding variables to arbitrary values, such as nil. 366signal an error or go undetected, binding variables to arbitrary values,
367such as nil.
367 368
368\(fn PATTERNS VALUE PATTERN VALUES ...)" 369\(fn PATTERN VALUE PATTERN VALUE ...)"
369 (declare (debug (&rest [pcase-PAT form]))) 370 (declare (debug (&rest [pcase-PAT form])))
370 (cond 371 (cond
371 (args 372 (args