* lisp/emacs-lisp/pcase.el (pcase--match): New smart-constructor function.
commit1a6255532e14c4341e93b7e576c47bcec68c3239
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 22 Sep 2014 16:22:50 +0000 (22 12:22 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 22 Sep 2014 16:22:50 +0000 (22 12:22 -0400)
tree1c3fa4bfc7504538d30a0836aaa6fb66aac4db39
parent536cda1f84f3be1959e5a475e51dbecaa2253bfd
* lisp/emacs-lisp/pcase.el (pcase--match): New smart-constructor function.
(pcase--expand pcase--q1, pcase--app-subst-match): Use it.
(pcase--macroexpand): Handle self-quoting patterns here, expand them to
quote patterns.
(pcase--split-match): Don't hoist or/and here any more.
(pcase--split-equal): Optimize quote patterns as well as ` patterns.
(pcase--flip): New helper macro.
(pcase--u1): Optimize the memq case directly.
Don't handle neither self-quoting nor and/or patterns any more.
lisp/ChangeLog
lisp/emacs-lisp/pcase.el
test/automated/pcase-tests.el