diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2021-03-01 23:57:34 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2021-03-01 23:57:56 -0500 |
commit | 165353674e5fe7109ba9cbf526de0333902b7851 (patch) | |
tree | 8a119ab22fb363ef06f37fd13ab85d29a7399929 /lisp/dired-aux.el | |
parent | bac0089fb8b15b71bd4bde00f6fd8e1c4b9fbd1d (diff) | |
download | emacs-165353674e5fe7109ba9cbf526de0333902b7851.tar.gz emacs-165353674e5fe7109ba9cbf526de0333902b7851.tar.bz2 emacs-165353674e5fe7109ba9cbf526de0333902b7851.zip |
* lisp/emacs-lisp/pcase.el: Bind all the vars in `or` patterns
Improve the handling of `or` patterns where not all sub-patterns bind the
same set of variables. This used to be "unsupported" and behaved in
somewhat unpredictable ways.
(pcase--expand): Rewrite.
(pcase-codegen): Delete.
* doc/lispref/control.texi (pcase Macro): Adjust accordingly.
Also remove the warning about "at least two" sub patterns.
These work fine, AFAICT, and if not we should fix it.
* test/lisp/emacs-lisp/pcase-tests.el (pcase-tests-or-vars): New test.
Diffstat (limited to 'lisp/dired-aux.el')
0 files changed, 0 insertions, 0 deletions