diff options
| author | Sean Whitton | 2025-11-25 21:05:50 +0000 |
|---|---|---|
| committer | Sean Whitton | 2025-11-25 21:05:50 +0000 |
| commit | f5953186efbfcbf8e5c40b5d64b3e32f03e7403b (patch) | |
| tree | 10384e1d1d350bcba657c77068e8fbaf297528ec | |
| parent | 39e9f96ba01649506675c22da7090fb80dce6cc6 (diff) | |
| download | emacs-f5953186efbfcbf8e5c40b5d64b3e32f03e7403b.tar.gz emacs-f5953186efbfcbf8e5c40b5d64b3e32f03e7403b.zip | |
; * lisp/emacs-lisp/pcase.el (pcase-setq): Fix parameter names.
| -rw-r--r-- | lisp/emacs-lisp/pcase.el | 9 |
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'. |
| 359 | PATTERNS are normal `pcase' patterns, and VALUES are expression. | 359 | Each PATTERN is a normal `pcase' pattern, and each VALUE an expression. |
| 360 | 360 | ||
| 361 | Evaluation happens sequentially as in `setq' (not in parallel). | 361 | Evaluation happens sequentially as in `setq' (not in parallel). |
| 362 | 362 | ||
| 363 | An example: (pcase-setq \\=`((,a) [(,b)]) \\='((1) [(2)])) | 363 | An example: (pcase-setq \\=`((,a) [(,b)]) \\='((1) [(2)])) |
| 364 | 364 | ||
| 365 | VAL is presumed to match PAT. Failure to match may signal an error or go | 365 | Each VALUE is presumed to match its PATTERN. Failure to match may |
| 366 | undetected, binding variables to arbitrary values, such as nil. | 366 | signal an error or go undetected, binding variables to arbitrary values, |
| 367 | such 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 |