[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lisp files that load cl-lib in problematical ways
From: |
Eli Zaretskii |
Subject: |
Re: Lisp files that load cl-lib in problematical ways |
Date: |
Sat, 21 Oct 2023 18:21:32 +0300 |
> Date: Sat, 21 Oct 2023 17:17:24 +0200
> Cc: emacs-devel@gnu.org
> From: Jens Schmidt <jschmidt4gnu@vodafonemail.de>
>
> On 2023-10-20 08:49, Eli Zaretskii wrote:
>
> > For Emacs to preload unnecessary stuff is unclean, and we try to avoid
> > that uncleanliness.
>
> I have to admit that I don't fully understand the dump/bootstrap logic
> of Emacs (yet), but doesn't inhibit the following test in Frequire already
> any/most uncleanliness:
>
> /* This is to make sure that loadup.el gives a clear picture
> of what files are preloaded and when. */
> if (will_dump_p () && !will_bootstrap_p ())
> {
> /* Avoid landing here recursively while outputting the
> backtrace from the error. */
> gflags.will_dump_ = false;
> error ("(require %s) while preparing to dump",
> SDATA (SYMBOL_NAME (feature)));
> }
No, because there's more than one way of loading a Lisp package.
Moreover, we could have a situation where cl-lib is not preloaded, but
just starting "emacs -Q" loads it (e.g., via some autoloaded feature),
and that also should be avoided.
- Re: Lisp files that load cl-lib in problematical ways, (continued)
- Re: Lisp files that load cl-lib in problematical ways, Alan Mackenzie, 2023/10/19
- Re: Lisp files that load cl-lib in problematical ways, Eli Zaretskii, 2023/10/19
- Re: Lisp files that load cl-lib in problematical ways, Emanuel Berg, 2023/10/19
- Re: Lisp files that load cl-lib in problematical ways, Eli Zaretskii, 2023/10/19
- Re: Lisp files that load cl-lib in problematical ways, Emanuel Berg, 2023/10/20
- Re: Lisp files that load cl-lib in problematical ways, Dr. Arne Babenhauserheide, 2023/10/20
- Re: Lisp files that load cl-lib in problematical ways, Emanuel Berg, 2023/10/20
- Re: Lisp files that load cl-lib in problematical ways, Eli Zaretskii, 2023/10/20
- Re: Lisp files that load cl-lib in problematical ways, Emanuel Berg, 2023/10/21
- Re: Lisp files that load cl-lib in problematical ways, Jens Schmidt, 2023/10/21
- Re: Lisp files that load cl-lib in problematical ways,
Eli Zaretskii <=
- Re: Lisp files that load cl-lib in problematical ways, Björn Bidar, 2023/10/21
- Re: Lisp files that load cl-lib in problematical ways, Eli Zaretskii, 2023/10/22
- Re: Lisp files that load cl-lib in problematical ways, Alan Mackenzie, 2023/10/23
- Re: Lisp files that load cl-lib in problematical ways, Eli Zaretskii, 2023/10/23
- Re: Lisp files that load cl-lib in problematical ways, Emanuel Berg, 2023/10/23
- Re: Lisp files that load cl-lib in problematical ways, Emanuel Berg, 2023/10/23
- Re: Lisp files that load cl-lib in problematical ways, Eli Zaretskii, 2023/10/23
- Message not available
- Re: Lisp files that load cl-lib in problematical ways, Emanuel Berg, 2023/10/22
- Re: Lisp files that load cl-lib in problematical ways, Richard Stallman, 2023/10/22
- Re: Lisp files that load cl-lib in problematical ways, Eli Zaretskii, 2023/10/22