emacs-devel
[Top][All Lists]
Advanced

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

Re: Loading early-init.el in batch mode (was: package-update-all from co


From: Eli Zaretskii
Subject: Re: Loading early-init.el in batch mode (was: package-update-all from command line)
Date: Tue, 24 May 2022 21:58:38 +0300

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: emacs-devel@gnu.org
> Date: Tue, 24 May 2022 12:00:40 -0400
> 
> > given that we don't limit users in what should go into that file.
> 
> We don't give guidelines, but by virtue of it being loaded before the
> GUI is setup, it does have similar technical limitations to the ones
> that apply for batch uses.

Not really: quite a lot of GUI-related settings can be done before the
GUI setup is done.

> > If you want a special init file for batch sessions, we should
> > introduce a special file and document it as reserved only for settings
> > that are supposed to work in -batch sessions.
> 
> We could, indeed.  I can't think of any reason why we wouldn't want to
> load that same file in interactive sessions, tho (IOW, I can't think of
> too many user settings which would  be useful for batch use and
> undesirable for interactive use).

That'd be risking problems that can be avoided.  If we document that
file as being loaded only by batch sessions, we won't need to solve
bugs where people loaded it in interactive sessions and that didn't do
what they expected.

> If we add such a file, we should be careful to allow something like
> `--batch -q` to prevent loading that file.

Probably.



reply via email to

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