mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-09 07:40:39 -08:00
(ad-execute-defadvices): Don't allocate advice-infos in pure space, in case we
want to preload this file.
This commit is contained in:
parent
d9f132a8ac
commit
835cd48e6a
1 changed files with 6 additions and 1 deletions
|
|
@ -4050,7 +4050,12 @@ functions in `ad-definition-hooks' will be run after the re/definition with
|
|||
(if (not (ad-get-arg 1))
|
||||
(setq ad-return-value
|
||||
(substitute-command-keys ad-return-value))))))))
|
||||
|
||||
|
||||
;; Make sure advice-infos are not allocated in pure space (right now they
|
||||
;; are constants that are part of `ad-execute-defadvices's definition):
|
||||
(ad-dolist (advised-function '(defun defmacro fset defalias
|
||||
define-function documentation))
|
||||
(ad-set-advice-info advised-function (ad-copy-advice-info advised-function)))
|
||||
|
||||
) ;; end of ad-execute-defadvices
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue