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'.
This commit is contained in:
parent
1b5c411e6a
commit
ae277259b1
6 changed files with 112 additions and 15 deletions
|
@ -629,7 +629,6 @@ the process stops as soon as KEYS or VALUES run out.
|
|||
If ALIST is non-nil, the new pairs are prepended to it."
|
||||
(nconc (cl-mapcar 'cons keys values) alist))
|
||||
|
||||
|
||||
;;; Generalized variables.
|
||||
|
||||
;; These used to be in cl-macs.el since all macros that use them (like setf)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue