]> 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)
commitde320e200312d057baef229430c7ca3b4436f3af
tree253b02e67e0643497918ea5894cde7e4cfecd941
parent3aa60102b9872ebd72b5d02c99255b11b092af07
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 `oclosure-object` instead of `advice`
as representative of the OClosure 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