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: Default custom file was: Re: Propose to add setup-wizard.el to ELPA Date: Tue, 04 Jan 2022 15:08:36 +0200 Message-ID: <83iluzbqcr.fsf@gnu.org> References: <740A136F-8710-4F4C-BFC1-A3DB418447F4@gmail.com> <87zgoc7u6k.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38879"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rpluim@gmail.com, paaguti@gmail.com, emacs-devel@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 04 14:09:49 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 1n4jZU-0009vk-KY for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Jan 2022 14:09:48 +0100 Original-Received: from localhost ([::1]:40506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4jZS-0006Ia-Se for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Jan 2022 08:09:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4jYE-00054U-HS for emacs-devel@gnu.org; Tue, 04 Jan 2022 08:08:30 -0500 Original-Received: from [2001:470:142:3::e] (port=45026 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4jYE-0006P6-6n; Tue, 04 Jan 2022 08:08:30 -0500 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=mhGinpqV1d5hGKVBpVQnjziIQxzQRa3l879vpH7THPI=; b=EMNJ9lsELp4l 8rJ/TEhSfooq16SGftDlAdn51IxYcMIT3P+SEHOOUd8Q2k86YKvNnBbf8QFLsBBkMzowiGwM3Cr+5 8xvBzPf05aizjan/qt9w2K2mDwfNLV1XRo7ZVuMAUgz09YjYSm2a0VBrAuAPt6NY7bg0HBg1k+i2h Ag+9U/ucMw21ZcKC4RDouhMCgpDibIkzmZU0jJ7XgmxNWzLGs2nQ6RdVRKYAGDzakckSqezoy4U4F 3P2z4my6nwdR7JFkZAvtBjCD/d7v2RCtnuOPzhBAQpFO/hQKLtPc4MCg7zINKakiDplZeR2CVd6zN xzDvHEL9TBD3Ku8l5cjkVg==; Original-Received: from [87.69.77.57] (port=4238 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 1n4jYE-0001JU-79; Tue, 04 Jan 2022 08:08:30 -0500 In-Reply-To: (message from Stefan Kangas on Tue, 4 Jan 2022 02:14:18 -0500) 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:284149 Archived-At: > From: Stefan Kangas > Date: Tue, 4 Jan 2022 02:14:18 -0500 > Cc: emacs-devel > > Pedro Andres Aranda Gutierrez writes: > > > 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 > > FWIW, I support this proposal. > > With such a default, I agree that we should load it after init.el by > default (so you don't need to type that into your init.el). > > A function `load-custom-file' that loads the custom file if it isn't > already loaded might also make sense, to allow controlling the exact > time when it is loaded. What would that mean for users that currently save their customizations through Custom in .emacs? Would it mean that the next time they save customizations, they will be written to another file and removed from .emacs?