• Stefan Monnier's avatar
    Add new `cl-struct' and `eieio' pcase patterns. · ae277259
    Stefan Monnier authored
    * 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'.
    ae277259
eieio.el 39.2 KB