]> git.eshelyaron.com Git - emacs.git/commit
Arrange to load `nadvice` later in `loadup.el`
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 31 Dec 2021 06:53:11 +0000 (01:53 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 31 Dec 2021 06:53:11 +0000 (01:53 -0500)
commit162a69669f74f532ad7da304ae2faac0a5e48259
tree92ce8d302043ce8cb0e73720008e14e9b239f846
parenta69d03779c7736db1c7d78fd62a1c1aa01a9dc8b
Arrange to load `nadvice` later in `loadup.el`

This is done simply so as to avoid scattering nadvice's code into
`simple.el` and `cl-print.el`.

* lisp/loadup.el ("emacs-lisp/nadvice"): Move down after "simple".

* lisp/help.el (help-command-error-confusable-suggestions): Make it
call `command-error-default`.
(command-error-function): Replace the top-level call to `add-function`
with a simple `setq` since `add-function` is not available at this
stage any more.

* lisp/emacs-lisp/nadvice.el (interactive-form) <advice>:
(cl-print-object) <advice>: Rename from `advice--get-interactive-form`
and `advice--cl-print-object`.

* lisp/emacs-lisp/cl-print.el (cl-print-object) <advice>:
* lisp/simple.el (interactive-form) <advice>: Move to `nadvice.el`.
(pre-redisplay-function): Replace the top-level call to `add-function`
with a simple `setq` since `add-function` is not available at this
stage any more.

* lisp/emacs-lisp/cl-generic.el: Use `fcr-object` instead of `advice`
as representative of the FCR specializers to prefill the dispatcher table.
lisp/emacs-lisp/cl-generic.el
lisp/emacs-lisp/cl-print.el
lisp/emacs-lisp/nadvice.el
lisp/help.el
lisp/loadup.el
lisp/simple.el