From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel 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 Message-ID: <831qwi69lt.fsf@gnu.org> References: <877d6bd2a2.fsf@gnu.org> <83a6b758lt.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40336"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 24 21:01:44 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntZmp-000AFP-MI for ged-emacs-devel@m.gmane-mx.org; Tue, 24 May 2022 21:01:43 +0200 Original-Received: from localhost ([::1]:45546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntZmo-0007Dp-9T for ged-emacs-devel@m.gmane-mx.org; Tue, 24 May 2022 15:01:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60206) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntZk4-0005fK-LZ for emacs-devel@gnu.org; Tue, 24 May 2022 14:58:53 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43574) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntZk2-0004eL-NM; Tue, 24 May 2022 14:58:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=YAd6Wal+10Q6ARgetolLMKZRhpDGIpLKdHgbcDKUXvk=; b=FX16wHxYI+EI k8UUgX9B1Ev/Ixtcg1kuRIr2XGMwFmLyoAH5GOW4+XO9cFF53mNmKibnvBYuJe7ak+InP498uGFqG V9ThgyDGo3drsJYwdEvw0bPb4DqaOEynDPZbbzipXpDgpIxgcRna/hcsWtsipRaQxQ0Av4DqIcZNC ya/Ma7yz3663l8Y2o3kpt6znvrLxhuCAvaVOwlyTM1i+8oH4fGKcQVr8eoKlRVmXIQrgKQ2Pvqpal fgc5KD8ynZwEp6NS8gRTGpYYVFj6XXkbsvtAEY8xL9EiMQZPC6fixvyiFldOyhbC7rb7M1Vm/CSDe 9l+WP3lfc+uhy2DKPXcSLg==; Original-Received: from [87.69.77.57] (port=1669 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntZk1-0006wZ-HC; Tue, 24 May 2022 14:58:50 -0400 In-Reply-To: (message from Stefan Monnier on Tue, 24 May 2022 12:00:40 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:290206 Archived-At: > From: Stefan Monnier > 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.