mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-03 10:31:37 -08:00
* lisp/subr.el (define-symbol-prop): New function
(symbol-file): Make it find symbol property definitions. * lisp/emacs-lisp/pcase.el (pcase-defmacro): * lisp/emacs-lisp/ert.el (ert-set-test): Use it instead of `put'. (ert-describe-test): Adjust call to symbol-file accordingly.
This commit is contained in:
parent
b2225a374f
commit
bfb8d33fd1
6 changed files with 51 additions and 30 deletions
|
|
@ -418,8 +418,8 @@ to this macro."
|
|||
(when decl (setq body (remove decl body)))
|
||||
`(progn
|
||||
(defun ,fsym ,args ,@body)
|
||||
(put ',fsym 'edebug-form-spec ',(cadr (assq 'debug decl)))
|
||||
(put ',name 'pcase-macroexpander #',fsym))))
|
||||
(define-symbol-prop ',fsym 'edebug-form-spec ',(cadr (assq 'debug decl)))
|
||||
(define-symbol-prop ',name 'pcase-macroexpander #',fsym))))
|
||||
|
||||
(defun pcase--match (val upat)
|
||||
"Build a MATCH structure, hoisting all `or's and `and's outside."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue