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:03:48 +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="0000000000008f3c2505d4d05c64" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11107"; 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:14:51 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 1n50VX-0002lD-1R for ged-emacs-devel@m.gmane-mx.org; Wed, 05 Jan 2022 08:14:51 +0100 Original-Received: from localhost ([::1]:44988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n50VV-0001HH-2A for ged-emacs-devel@m.gmane-mx.org; Wed, 05 Jan 2022 02:14:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n50LO-0007Ux-0o for emacs-devel@gnu.org; Wed, 05 Jan 2022 02:04:26 -0500 Original-Received: from [2a00:1450:4864:20::52e] (port=46607 helo=mail-ed1-x52e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n50LJ-0001bj-5i; Wed, 05 Jan 2022 02:04:21 -0500 Original-Received: by mail-ed1-x52e.google.com with SMTP id n30so45907188eda.13; Tue, 04 Jan 2022 23:04:15 -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=IgVBNJxWOemS+gaQmRAEHGG0dGxMQhdTIT3cl868WQs=; b=VZmA9yNrm2F0MHDKKf+uPiRf1l0Igim84zcnadz9TGA16CSCBaq8f3AiIdXn5QmvJa 64/ljWZOjDiPzEYN2ltk5A5jT1lP4Dy6L4mLEpBser80p4knNArU8SRpppmely/4ODhb 4Hv7Td3BkCzFthDl+Umi/H5rZDQgB1qTziLRSapsn8JmQYCdzC1OKNV3H4pFd/AsiHjb vmiRRMRSDZt0i/t0laU/4o4JPi2eNvmB14mY1fvb2kbMaIFGHc/f5rkj8OG8aKF5UqJN XBMKG1N1K28V4s9X0gKnoSpmN+e2Xy+rfk+AlqzBQXJL0abcsi9w/g5fXJmovtSesng5 DlXQ== 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=IgVBNJxWOemS+gaQmRAEHGG0dGxMQhdTIT3cl868WQs=; b=ZKfGQSjwWHmMuuKJPaycefRxKqnkZDDl70TkY2FF/CLAju7Nju1/Gom7LuwZIZdZMo HH+zh25eEl+lyYtwMUk/vFSM5BnLAkRA0DTbyaEz9fCYD2QpVQ8YrGcARo1AhcF6MuTC yLuGxoAfC+VWAEeCHBDpZnfGZYgRtOO9XBSwjUPscnLX7o4qbC4NvegG/I0+gbHR3H3d OaxK/eoYUl1WUMQrHASjNxMjdhUIi6qKu+Rah44OhxmHhxuRA4w0sK6H4yWZL+7gJKC1 IUe83rxHNNNvRV2DaXKoCwrz65ATWWfHoHEuKyiIuHy7E9wP7kDJvquy76L2dYVN/ohQ 8/Sw== X-Gm-Message-State: AOAM533H3nuL6jIvuH+ogS0e4qNUqi3CXWEhEhHDQoFF9fRxi6rFghWS g0Gw6AchJxNJCMfy9g/yq1/0ZyCAwjcQvCR/gmo= X-Google-Smtp-Source: ABdhPJwMIkv8Wk1QQvXyo2Sd+SdUPM7qO3r9KJTBszA63h6IC2p0FAnzU4q2w2hdZiJPiEIsSEZpB2GLpN8iTgMQvFI= X-Received: by 2002:a17:906:f02:: with SMTP id z2mr32073298eji.499.1641366254729; Tue, 04 Jan 2022 23:04:14 -0800 (PST) In-Reply-To: <878rvv9esx.fsf@yahoo.com> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::52e (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=paaguti@gmail.com; helo=mail-ed1-x52e.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, T_SPF_TEMPERROR=0.01 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:284214 Archived-At: --0000000000008f3c2505d4d05c64 Content-Type: text/plain; charset="UTF-8" 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 --0000000000008f3c2505d4d05c64 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Let me try to put it another way: as I envisage the whole = process

1.- On startup:
a) Get the startup fil= e 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 a= nd wasn't already loaded, load custom-file. If is was already loaded, m= aybe tell the user (???)

2.- When saving the c= ustomisations
if custom-file is not nil, save them there else sav= e them in the startup file whatever it is

AFAI= K, 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 anyth= ing changing (long-standing behaviour respected)

Just my .2 cents, /PA


On Wed, 5 Jan 2= 022 at 02:01, Po Lu <luangruo@yaho= o.com> wrote:
Robert Pluim <rpluim@gmail.com> 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 sin= d nicht da um beantwortet zu werden,
Fragen sind da um gestellt zu= werden
Georg Kreisler
--0000000000008f3c2505d4d05c64--