summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorEarl Hyatt <okamsn@protonmail.com>2021-08-11 23:54:31 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-08-11 23:54:31 +0200
commit2f90fa19b8fdc70303232d389553afa524c72509 (patch)
tree1d544d5e950d09542eb78e41083c920af35a310e /etc
parent3b5f8ab0d06f6c39aaa716b6279c2ceb4bfc5b14 (diff)
downloademacs-2f90fa19b8fdc70303232d389553afa524c72509.tar.gz
Add a `pcase-setq' macro
* doc/lispref/control.texi (Destructuring with pcase Patterns): Document this macro. * lisp/emacs-lisp/pcase.el (pcase-setq): New macro. This macro is the 'setq' equivalent of 'pcase-let'. * test/lisp/emacs-lisp/pcase-tests.el (pcase-setq): Test this new macro. (bug#49809).
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 18fa54b97e6..ffe8f5b32cb 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -559,6 +559,10 @@ The new 'cl-type' pattern compares types using 'cl-typep', which allows
comparing simple types like '(cl-type integer)', as well as forms like
'(cl-type (integer 0 10))'.
+*** New macro 'pcase-setq'
+This macro is the 'setq' equivalent of 'pcase-let', which allows for
+destructuring patterns in a 'setq' form.
+
+++
** profiler.el
The results displayed by 'profiler-report' now have the usage figures