From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: Re: Default custom file was: Re: Propose to add setup-wizard.el to ELPA Date: Tue, 4 Jan 2022 07:45:24 +0100 Message-ID: References: <740A136F-8710-4F4C-BFC1-A3DB418447F4@gmail.com> <87zgoc7u6k.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FMl1DtAR+E6uikQD" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12589"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 04 07:59:36 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 1n4dnE-000322-6Z for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Jan 2022 07:59:36 +0100 Original-Received: from localhost ([::1]:43038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4dnC-0007Nm-CA for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Jan 2022 01:59:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4dZb-0003d5-Ch for emacs-devel@gnu.org; Tue, 04 Jan 2022 01:45:34 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:36004) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4dZZ-0005Ue-Ib for emacs-devel@gnu.org; Tue, 04 Jan 2022 01:45:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=HyUkJwdXUf72Ou9XvQ8mukGJh2qQ9SP7zY48qI/9hZc=; b=ouoDckYKAssfqjvgXrZH7VlLrY cwvDeaLn4YWW7TD5BvNDF3xmtGzBWNFUBwvX3KSrTqN4SeGc3aEu4W5gZGQHAnFpxyjus64fdwXHF PtxKUI7V+QLtGy2GBroBJATOfKHcjLL567SXLjAOWPSCdt20dbeUczJLYkvCm98HvypVHkz9MeMFf 8L/rukY8XHb6eKB7mFeKat0ZIawLFEmTn0ZueKvz4b0f/E8ORXFB0MdrHx33RYkIenp60yrXztw5b 1hLZLQqGiNCpQS8zclB5QWzmVQMJRUgn9R7i5WmpguTs0nvY7KCcQCyySvpLmQb8hCJGX+m0Enu+L aULjVILg==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1n4dZU-0003zM-UG for emacs-devel@gnu.org; Tue, 04 Jan 2022 07:45:25 +0100 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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:284128 Archived-At: --FMl1DtAR+E6uikQD Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 04, 2022 at 07:13:59AM +0100, Pedro Andres Aranda Gutierrez wro= te: > Hi, [...] > (setq custom-file (locate-user-emacs-file "custom.el")) > (load custom-file 'noerror) >=20 > What I propose is to agree on a default value for custom-file that could > potentially be changed by the user in init.el or .emacs > and do the (load custom-file 'noerror) after loading the init file as a > default behaviour for Emacs >=20 > Having a separate customisation file by default can ease debugging, > resetting customisations, bookkeeping, etc. etc. Late to the party, but... I do a similar thing anyway. I can see recommending such a thing. But I wouldn't like Some Obscure Magic nearly forcing people to do it this way? (Yes, the last bit of your proposal: "do the ... as a default behaviour" counts to me as Some Obscure Magic. I much prefer to have the load down there in my init file explicitly). Cheers --=20 t --FMl1DtAR+E6uikQD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCYdPs/gAKCRAFyCz1etHa RirqAJ9h0+YwS2+ZO/4nhFy0dVDreHc8jQCeLWLD7cD9owdLRUeXcQ9jRbmvpUA= =SuK7 -----END PGP SIGNATURE----- --FMl1DtAR+E6uikQD--