• Stefan Monnier's avatar
    * lisp/subr.el (macrop): New function. · 671d5c16
    Stefan Monnier authored
    (text-clone--maintaining): New var.
    (text-clone--maintain): Rename from text-clone-maintain.  Use it
    instead of inhibit-modification-hooks.
    * lisp/emacs-lisp/nadvice.el (advice--normalize): For aliases to macros, use
    a proxy, so as handle autoloads and redefinitions of the target.
    (advice--defalias-fset, advice-remove): Use advice--symbol-function.
    * lisp/emacs-lisp/pcase.el (pcase-mutually-exclusive-predicates):
    Remove bogus (arrayp . stringp) pair.  Add entries for `vectorp'.
    (pcase--mutually-exclusive-p): New function.
    (pcase--split-consp): Use it.
    (pcase--split-pred): Use it.  Optimize the case where `pat' is a qpat
    mutually exclusive with the current predicate.
    * test/automated/advice-tests.el (advice-tests-nadvice): Test removal
    before definition.
    (advice-tests-macroaliases): New test.
    * lisp/emacs-lisp/edebug.el (edebug-lookup-function): Remove function.
    (edebug-macrop): Remove.  Use `macrop' instead.
    * lisp/emacs-lisp/advice.el (ad-subr-p): Remove.  Use `subrp' instead.
    * lisp/eshell/esh-cmd.el (eshell-macrop):
    * lisp/apropos.el (apropos-macrop): Remove.  Use `macrop' instead.
nadvice.el 21.5 KB