bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#67005: 30.0.50; improve nadivce/comp/trampoline handling


From: Stefan Monnier
Subject: bug#67005: 30.0.50; improve nadivce/comp/trampoline handling
Date: Sat, 25 Nov 2023 09:39:42 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

> What about this one?  Too indiscrete?
>
>   (when purify-flag
>     (message "\a\nWarning: Invalid pre-dump advice on %s\n" symbol))

That works.

> Plus another idea: Instead of placing the test into `advice-add', how
> about checking functions for advices in loadup.el?  We could place that
> check just before site-load.el gets loaded, to avoid trouble for Emacs
> modders.  I tried the following, and it seemed to do the trick:
>
> +(mapatoms
> + (lambda (f)
> +   (and (advice--p (symbol-function f))
> +        (error "Pre-dump advice on %s" f))))

Even better!


        Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]