From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pedro Andres Aranda Gutierrez Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: Default custom file was: Re: Propose to add setup-wizard.el to ELPA Date: Wed, 5 Jan 2022 08:10:42 +0100 Message-ID: References: <740A136F-8710-4F4C-BFC1-A3DB418447F4@gmail.com> <87zgoc7u6k.fsf@gmail.com> <83iluzbqcr.fsf@gnu.org> <87r19nxx7x.fsf@gmail.com> <878rvv9esx.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003d1e2c05d4d0754b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2542"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Robert Pluim , Stefan Kangas , Eli Zaretskii , Drew Adams , "emacs-devel@gnu.org" To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 05 08:29:41 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 1n50js-0000ZH-SV for ged-emacs-devel@m.gmane-mx.org; Wed, 05 Jan 2022 08:29:40 +0100 Original-Received: from localhost ([::1]:50764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n50jr-0005iH-9H for ged-emacs-devel@m.gmane-mx.org; Wed, 05 Jan 2022 02:29:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n50S4-00009p-BA for emacs-devel@gnu.org; Wed, 05 Jan 2022 02:11:19 -0500 Original-Received: from [2a00:1450:4864:20::52d] (port=46755 helo=mail-ed1-x52d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n50Rz-0000Ab-5j; Wed, 05 Jan 2022 02:11:14 -0500 Original-Received: by mail-ed1-x52d.google.com with SMTP id n30so45968452eda.13; Tue, 04 Jan 2022 23:11:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nQwO0X3QMzBzT+pCnTE3idhRFXuSfC0kxBLt0RU4et8=; b=HYIpRYpGATsrc02h8+Qvlm7eGXPrLpY7QUZmYfo/fTEHp2xI+2YTfeOZA8PAwCdNcJ 2sOJVyXp7k+FMePPe97HuEHqwFrDevdBLAigguZDA29cNUUmqf3cyY3+1Tc/cvgqgH12 yTfIbSTTYt4PkO+MdErm9oZS002TLTZByaLKYzw8Lg/cxjuJjBmawFkNW6zeygXJnjKd J3/ySNlWrChAb5k/bjQpjMOfrqW3h9UMayXRuCmxoDTLAOGM0sKwZXrmxz7olAzOVmt8 8O0xg+UL9Mekae7X0ZwXDXCSrwvdQJx4xTcQWY+tCG5C1jEhziMTsN1AK2Z5ZDWGrngk Pxiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nQwO0X3QMzBzT+pCnTE3idhRFXuSfC0kxBLt0RU4et8=; b=6pwvKzYKPgSC0tQrWLCkEODe1qQrLmugaAacAJRH56cdWeqZDm4OjnXzJaLYxRi710 2FvMGpu9jtNTFkLplQggg6T9oD2oc/yuoTp9vlFtrFhznyH2muVeVVH2/q7If9gxJLYg /fETgNVMgscAczdLZ1eCFfn/RLId3qtZBDR/JZywUli9DpKQD16BLXfngq+6UaCBoIGf RoEivBptwvlRcV1+YuldapecgLwMKDBhmOg0Y3kPKJnlAFCgvKmfphdQUsMy9irq590v m2mSiHPDA+4gkDjs4lc3kXnkGX7IWeI9juAO8M34KgPBHRvlBceAueIzEh/lod4UL3xD vQDA== X-Gm-Message-State: AOAM530QtB0hT9xYH5KweaXZot5JWPXz1EJSFyFzOmh7TJBTw5HubtqL 3O3BQBBJNQESJdQ2g50ppBBMJS5qiZDZe2TGuwQ= X-Google-Smtp-Source: ABdhPJy3BUTlXwujbcIy83ZqAzy3j3v9w27wnksfJnqrcnCS7Jdb0XubMR7bG8p5vwXWycrZAEraJwr+vRdULYltETs= X-Received: by 2002:a17:906:f1c1:: with SMTP id gx1mr43453407ejb.554.1641366668777; Tue, 04 Jan 2022 23:11:08 -0800 (PST) In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::52d (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::52d; envelope-from=paaguti@gmail.com; helo=mail-ed1-x52d.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:284215 Archived-At: --0000000000003d1e2c05d4d0754b Content-Type: text/plain; charset="UTF-8" PS: to 1b) if custom-file was already loaded, it will be in variable load-history /PA On Wed, 5 Jan 2022 at 08:03, Pedro Andres Aranda Gutierrez < paaguti@gmail.com> wrote: > Let me try to put it another way: as I envisage the whole process > > 1.- On startup: > a) Get the startup file from [ .emacs, .emacs.d/init.el, > .config/emacs/init.el ] or whatever set of files we decide and load it > b) if custom-file is not nil and wasn't already loaded, load custom-file. > If is was already loaded, maybe tell the user (???) > > 2.- When saving the customisations > if custom-file is not nil, save them there else save them in the startup > file whatever it is > > AFAIK, the only new thing is to include 1b) in the emacs code, because 1a) > and 2) are already in the code (it's how emacs behaves today, right?) > > So someone not defining custom-file would not see anything changing > (long-standing behaviour respected) > > Just my .2 cents, /PA > > > On Wed, 5 Jan 2022 at 02:01, Po Lu wrote: > >> Robert Pluim writes: >> >> > Making people who wish to retain long-standing behaviour set a >> > variable or edit a config file for something as fundamental as loading >> > and saving customizations is not something I would want, ever. >> >> Agreed, and I also think that long-standing behaviour should never >> change as well, even for sites that have Emacs freshly installed. >> >> Thanks. >> > > > -- > Fragen sind nicht da um beantwortet zu werden, > Fragen sind da um gestellt zu werden > Georg Kreisler > -- Fragen sind nicht da um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler --0000000000003d1e2c05d4d0754b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
PS: to 1b)=C2=A0
if custom-file was already loaded, it= will be in variable load-history

/PA
<= br>
On Wed,= 5 Jan 2022 at 08:03, Pedro Andres Aranda Gutierrez <paaguti@gmail.com> wrote:
Let me try to put it an= other way: as I envisage the whole process

1.- On startu= p:
a) Get the startup file from [ .emacs, .emacs.d/init.el, .conf= ig/emacs/init.el ] or whatever set of files we decide and load it
=
b) if custom-file is not nil and wasn't already loaded, load custo= m-file. If is was already loaded, maybe tell the user (???)
<= br>
2.- When saving the customisations
if custom-file i= s not nil, save them there else save them in the startup file whatever it i= s

AFAIK, the only new thing is to include 1b) = in the emacs code, because 1a) and 2) are already in the code (it's how= emacs behaves today, right?)

So someone not defin= ing custom-file would not see anything changing (long-standing behaviour re= spected)

Just my .2 cents, /PA
<= div>

On Wed, 5 Jan 2022 at 02:01, Po Lu <luangruo@yahoo.com> wrote:
Robert Pluim <= rpluim@gmail.com&= gt; writes:

> Making people who wish to retain long-standing behaviour set a
> variable or edit a config file for something as fundamental as loading=
> and saving customizations is not something I would want, ever.

Agreed, and I also think that long-standing behaviour should never
change as well, even for sites that have Emacs freshly installed.

Thanks.


--
Fragen sind nicht da um beantworte= t zu werden,
Fragen sind da um gestellt zu werden
Georg K= reisler


--
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um = gestellt zu werden
Georg Kreisler
--0000000000003d1e2c05d4d0754b--