unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Recursive Fload and eval-after-load forms.  (See bug #43116.)
@ 2020-08-31 18:45 Alan Mackenzie
  2020-08-31 18:54 ` Stefan Monnier
  2020-08-31 20:27 ` Nonax
  0 siblings, 2 replies; 7+ messages in thread
From: Alan Mackenzie @ 2020-08-31 18:45 UTC (permalink / raw)
  To: emacs-devel; +Cc: Nonax

Hello, Emacs.

In bug #43116, the OP has rightly complained that on loading
fortran.elc, his eval-after-load forms get evaluated twice.

The cause of the double evaluation is a custom-menu-create form in
fortran.el, which causes a recursive evaluation of (load "fortran").
The eval-after-load-forms are evaluated both for the "inner" load and
the "outer" load.

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.

-- 
Alan Mackenzie (Nuremberg, Germany).



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-09-01 23:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-31 18:45 Recursive Fload and eval-after-load forms. (See bug #43116.) Alan Mackenzie
2020-08-31 18:54 ` Stefan Monnier
2020-08-31 19:42   ` Alan Mackenzie
2020-09-01  3:18     ` Stefan Monnier
2020-09-01 19:42       ` Alan Mackenzie
2020-09-01 23:42         ` Stefan Monnier
2020-08-31 20:27 ` Nonax

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).