[Top][All Lists]

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

Re: Recursive Fload and eval-after-load forms. (See bug #43116.)

From: Stefan Monnier
Subject: Re: Recursive Fload and eval-after-load forms. (See bug #43116.)
Date: Mon, 31 Aug 2020 14:54:54 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> The cause of the double evaluation is a custom-menu-create form in
> fortran.el, which causes a recursive evaluation of (load "fortran").

That sounds like a misfeature we should address.

> What do people think of the following proposal: that the eval-after-load
> forms should be evaluated only after the outermost load has completed?
> This would be a simple amendment to the function Fload.

I think it would only hide the problem and would make the specification
of `eval-after-load` needlessly more complex.

Recursive loading of a file should be rare and should always be
considered as a bug/misfeature in itself, so I don't think we should
take extra steps to try and better support it.


reply via email to

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