From: Alan Mackenzie <acm@muc.de>
To: emacs-devel@gnu.org
Cc: Nonax <nonax@posteo.net>
Subject: Recursive Fload and eval-after-load forms. (See bug #43116.)
Date: Mon, 31 Aug 2020 18:45:26 +0000 [thread overview]
Message-ID: <20200831184526.GB4176@ACM> (raw)
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).
next reply other threads:[~2020-08-31 18:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-31 18:45 Alan Mackenzie [this message]
2020-08-31 18:54 ` Recursive Fload and eval-after-load forms. (See bug #43116.) 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200831184526.GB4176@ACM \
--to=acm@muc.de \
--cc=emacs-devel@gnu.org \
--cc=nonax@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).