From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Default custom file was: Re: Propose to add setup-wizard.el to ELPA Date: Tue, 04 Jan 2022 11:11:42 +0100 Message-ID: <87r19n7qu9.fsf@gmail.com> References: <740A136F-8710-4F4C-BFC1-A3DB418447F4@gmail.com> <87zgoc7u6k.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33528"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Pedro Andres Aranda Gutierrez , emacs-devel To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 04 11:13:00 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 1n4goO-0008Yt-78 for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Jan 2022 11:13:00 +0100 Original-Received: from localhost ([::1]:48768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4goN-0002AL-0s for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Jan 2022 05:12:59 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47174) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4gnD-0000tU-3s for emacs-devel@gnu.org; Tue, 04 Jan 2022 05:11:47 -0500 Original-Received: from [2a00:1450:4864:20::430] (port=33643 helo=mail-wr1-x430.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4gnB-0003zo-ED for emacs-devel@gnu.org; Tue, 04 Jan 2022 05:11:46 -0500 Original-Received: by mail-wr1-x430.google.com with SMTP id d9so75177396wrb.0 for ; Tue, 04 Jan 2022 02:11:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=bMLM9DVzlOBO/x7w4Zjw3Q7t1tcXTAuGOkJqnHL24g4=; b=GO00HE3tu34Q60mtXTfRvbcJosmBjlxUHkdniqCB0hZ18fa99mkSE2Ek0RH9MboO7k TASDbs9BUuLE57OSZKdvmQM9tG9Q24uOGpa/sOel+XwhwTv6/8zdu9deee2XSHw5g5pj nykQevnczZQdVMLnfvlGF2ccMJn009hYc1dfyvU7Fberyjhzm0rSShPt5SsXR6cSNs8J OC4uwEH/PUG6UJGSzgBlsLwCUM5dq/2JwU+t8Ti3RZEa6mVEZnxQ+RdGYX+nCNiO4KRp UZ6+AOzwnDxjNvZD9lWq5HgXnGv7NcWdX1JxWLdTICMWy6OW9/D39tXl3Y/MdBzKLfka 6VcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=bMLM9DVzlOBO/x7w4Zjw3Q7t1tcXTAuGOkJqnHL24g4=; b=PhFEQna8YTEgSF4frRmvrjxu2vc72KlT+NZqChDPQhs7E9KDaFZQK4S4ZHHV/q0dV7 Qv0CiYSkHpxEOt6f7WJxCG4OC25A9v5blpWKZkbA33GxPjIs8teGIJdZZavPBPCenJ2q b+mqDW/ds3MHo04xYsg6FD59tNVVUVsjufXTsFFY+bOQAGtkCK4QY1JnYtAmebq4naVR Cw7Hzo0jo9uFyOxVGGlZ+txQYt+UmAydWcsEkHbykaxrueXZ2e7xmeFZPPjtvlzxlsfk 6ZCXcfs7VMMfCInO9ez1ykXxlxfXDdapYkpK3rOFLXBMprzscx4aMlRcM4n9/0jgnVkH 8N4w== X-Gm-Message-State: AOAM5339cofj+IHEoFzFkbHvwfswWkdQIf5iI2KP2SSLG1n//dJj/E74 hYXAz0w16tp3x/S/GXtJBQfvexxAFgs= X-Google-Smtp-Source: ABdhPJwHO/OGU7MHZipofOWRteP/X20MVCKPDOBmRHkYn66NhvrnxuftxvFduAvD903hsjF9wYSYwA== X-Received: by 2002:adf:cd8a:: with SMTP id q10mr41802068wrj.164.1641291103463; Tue, 04 Jan 2022 02:11:43 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb50:b2ab:8f2a:6c31:735c]) by smtp.gmail.com with ESMTPSA id r11sm42468392wrz.78.2022.01.04.02.11.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jan 2022 02:11:43 -0800 (PST) Gmane-Reply-To-List: yes In-Reply-To: (Stefan Kangas's message of "Tue, 4 Jan 2022 02:14:18 -0500") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::430 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=rpluim@gmail.com; helo=mail-wr1-x430.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=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:284135 Archived-At: >>>>> On Tue, 4 Jan 2022 02:14:18 -0500, Stefan Kangas said: Stefan> Pedro Andres Aranda Gutierrez writes: >> What I propose is to agree on a default value for custom-file that c= ould >> potentially be changed by the user in init.el or .emacs >> and do the (load custom-file 'noerror) after loading the init file a= s a >> default behaviour for Emacs Stefan> FWIW, I support this proposal. Stefan> With such a default, I agree that we should load it after init.= el by Stefan> default (so you don't need to type that into your init.el). What would you do for users who already have 'custom-set-variables' in their init file? You'd have to arrange for custom-file *not* to be set for them, since otherwise subsequent saves of custom variables end up in the wrong file. I=CA=BCm not 100% sure you'd want it loaded after the init file either: how would you then do further changes that depend on the values set in your custom file? Robert --=20