]> git.eshelyaron.com Git - emacs.git/commit
Add new `cl-struct' and `eieio' pcase patterns.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 23 Mar 2015 22:24:30 +0000 (18:24 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 23 Mar 2015 22:24:30 +0000 (18:24 -0400)
commitae277259b1cf8d913893417e4ca284040f5a543f
tree42d607424f8666780abe25fd49d9664abd13d81f
parent1b5c411e6a4dffd6a8dec9846da0d1650a85b879
Add new `cl-struct' and `eieio' pcase patterns.

* lisp/emacs-lisp/cl-macs.el (cl-struct): New pcase pattern.
* lisp/emacs-lisp/eieio.el (eieio-pcase-slot-index-table)
(eieio-pcase-slot-index-from-index-table): New functions.
(eieio): New pcase pattern.
* lisp/emacs-lisp/pcase.el (pcase--make-docstring): New function.
(pcase): Use it to build the docstring.
(pcase-defmacro): Make sure the macro is lazy-loaded.
(\`): Move its docstring from `pcase'.
etc/NEWS
lisp/ChangeLog
lisp/emacs-lisp/cl-lib.el
lisp/emacs-lisp/cl-macs.el
lisp/emacs-lisp/eieio.el
lisp/emacs-lisp/pcase.el