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.bugs Subject: bug#54381: 29.0.50; Automatically load custom-file Date: Mon, 14 Mar 2022 17:19:55 +0100 Message-ID: References: <877d8wooh4.fsf@gnus.org> <83r174k73t.fsf@gnu.org> <87y21cd08e.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a3e40805da300e96" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24002"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54381@debbugs.gnu.org, Lars Ingebrigtsen To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 14 17:21:15 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1nTnRb-00064b-1J for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 14 Mar 2022 17:21:15 +0100 Original-Received: from localhost ([::1]:43886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nTnRZ-0004C6-IJ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 14 Mar 2022 12:21:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTnRO-0004Bj-DQ for bug-gnu-emacs@gnu.org; Mon, 14 Mar 2022 12:21:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52251) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nTnRO-0004ad-50 for bug-gnu-emacs@gnu.org; Mon, 14 Mar 2022 12:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nTnRN-0008N4-Uc for bug-gnu-emacs@gnu.org; Mon, 14 Mar 2022 12:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pedro Andres Aranda Gutierrez Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Mar 2022 16:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54381 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 54381-submit@debbugs.gnu.org id=B54381.164727483032110 (code B ref 54381); Mon, 14 Mar 2022 16:21:01 +0000 Original-Received: (at 54381) by debbugs.gnu.org; 14 Mar 2022 16:20:30 +0000 Original-Received: from localhost ([127.0.0.1]:46148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTnQs-0008Lq-73 for submit@debbugs.gnu.org; Mon, 14 Mar 2022 12:20:30 -0400 Original-Received: from mail-ej1-f54.google.com ([209.85.218.54]:35467) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTnQq-0008Lb-JT for 54381@debbugs.gnu.org; Mon, 14 Mar 2022 12:20:29 -0400 Original-Received: by mail-ej1-f54.google.com with SMTP id yy13so35227809ejb.2 for <54381@debbugs.gnu.org>; Mon, 14 Mar 2022 09:20:28 -0700 (PDT) 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=So8Z109iC45aWhK/8kMpFqksP2Z7ECnUZUAlQ3gTe0M=; b=hM6+6XEqy4FPo4DZqE6O4kBsDMtAPKEfzqXmr4Ju/YpzGrsTB4bmgPKC9SfFaq49jL 9GoTlOkMgma3Ky86272WHGMXSuvde8wOgr1GPJAWX4e5rUalpafxJcldMubQRjEW59p9 N2/MzSUJqIJe/XastJ67EAjDIn8C8CqO7O8BB95hYWuvRRokR++/F6Fjxa6/i2DN/XBf sIf57dGd/vukBaC4LiXGBhVmS4pgLEZNTfoJFKwX9DRxp7knAF8UTLgkb+271mT80zfR 07hftBOy27+kN0/zjBkTT4aX93gFajKX9/ZlSRW2hwYc5Nwozd7SwNb0OvBh7oPdfdKd JQtg== 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=So8Z109iC45aWhK/8kMpFqksP2Z7ECnUZUAlQ3gTe0M=; b=RvmE9U0rI9f81qzZ4V/C9L9zAnd/u0Z6tLlql/dg+j2LK55Kj5ShUb16qNC85WXTyn 3gKeKY76S8Um7HOXhsczHmtLRGGpZOhv3H1aAE8MsAkxXmmZYdVh9LEgEwwQuH21PQ9n Dk1tfShoonTX7FuRy9kQcgCD9DhspfZ4fYzerruW/5DB7RjD8cEtngZ8GxM740iWqBmm ZYQDyo6NPMRD7kkTszqxgouGpCPTmHxofa5OkNaQG9+GDV2kua8TKJLQDtREwE6s6hJL WVE7h+uXKoUO7LDMIafM9tRoANsJcCJKE98CgoR8l+9/sFKpjimH7dddqSgL64Wy3fWY 7XMQ== X-Gm-Message-State: AOAM5301T2RuK+RXg8S2RgyktZDqKWTaPMFvGmCrtOW3JzSpJFMstJvD Gd2xJRzyRq88xVu6a5balxzXHPG+k9fRgDGN33E= X-Google-Smtp-Source: ABdhPJzeSzvfRGFmn9gZsL8mh/UAq3N/ECjqyrd0055zJNTtlRfrCQsC0w4GOJafAZ9l0crnKgQSXxdc0tkHnJJBiQE= X-Received: by 2002:a17:907:62a1:b0:6da:7952:d4d2 with SMTP id nd33-20020a17090762a100b006da7952d4d2mr18924725ejc.260.1647274822458; Mon, 14 Mar 2022 09:20:22 -0700 (PDT) In-Reply-To: <87y21cd08e.fsf@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:228381 Archived-At: --000000000000a3e40805da300e96 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Eli> custom file if its basename was something special, or perhaps one of a Eli> small number of fixed names? (locate-user-emacs-file "custom.el") perhaps? Anyway, I've uploaded the patch so that is is not lost. Maybe in the future someone revisits this and finds it cool. I just want to get rid of the mandatory (load custom-file) in my init.el and not break other people's current configs. Again, I'm "preaching Emacs" among my students and the question of why custom-file is not loaded automatically if you define it is coming up only too often. These youngsters have made me rethink many things... I like teaching :-) keeps me vigilant /PA On Mon, 14 Mar 2022 at 16:26, Robert Pluim wrote: > >>>>> On Mon, 14 Mar 2022 15:15:50 +0200, Eli Zaretskii > said: > Eli> Would it perhaps help if we could support automatic loading of t= he > Eli> custom file if its basename was something special, or perhaps on= e > of a > Eli> small number of fixed names? If we choose a name that is > unlikely to > Eli> be in wide use, all people will need is to rename their files (a= nd > Eli> modify the init file). > > If we=CA=BCre going to do it, then it should have one and only one option= . > > (locate-user-emacs-file "emacs-auto-custom.el") > > perhaps? > > Robert > -- > --=20 Fragen sind nicht da um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler --000000000000a3e40805da300e96 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Eli> custom file if its basename was something special,= or perhaps one of a
Eli> small number of fixed names?=C2=A0

(locate-user-emacs-file "custom.el")
<= div>
perhaps?

Anyway, I've uploa= ded the patch so that is is not lost. Maybe in the future someone revisits = this and finds it cool.
I just want to get rid of the mandatory (= load custom-file) in my init.el and not break other people's current co= nfigs.

Again, I'm "preaching Emacs" = among my students and the question of why custom-file is not loaded automat= ically if you
define it is coming up only too often.
These youngsters have made me rethink many things... I like te= aching :-) keeps me vigilant

/PA

=

= On Mon, 14 Mar 2022 at 16:26, Robert Pluim <rpluim@gmail.com> wrote:
>>>>> On Mon, 14 Mar 2022 15:15:50 += 0200, Eli Zaretskii <e= liz@gnu.org> said:
=C2=A0 =C2=A0 Eli> Would it perhaps help if we could support automatic l= oading of the
=C2=A0 =C2=A0 Eli> custom file if its basename was something special, or= perhaps one of a
=C2=A0 =C2=A0 Eli> small number of fixed names?=C2=A0 If we choose a nam= e that is unlikely to
=C2=A0 =C2=A0 Eli> be in wide use, all people will need is to rename the= ir files (and
=C2=A0 =C2=A0 Eli> modify the init file).

If we=CA=BCre going to do it, then it should have one and only one option.<= br>
(locate-user-emacs-file "emacs-auto-custom.el")

perhaps?

Robert
--


--
Fragen sin= d nicht da um beantwortet zu werden,
Fragen sind da um gestellt zu= werden
Georg Kreisler
--000000000000a3e40805da300e96--