From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: Default custom file was: Re: Propose to add setup-wizard.el to ELPA Date: Tue, 4 Jan 2022 02:14:18 -0500 Message-ID: References: <740A136F-8710-4F4C-BFC1-A3DB418447F4@gmail.com> <87zgoc7u6k.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17522"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Pedro Andres Aranda Gutierrez , Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 04 08:18:24 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 1n4e5P-0004U8-VJ for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Jan 2022 08:18:23 +0100 Original-Received: from localhost ([::1]:46022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4e5O-0001rY-B6 for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Jan 2022 02:18:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4e1b-0000xL-8S for emacs-devel@gnu.org; Tue, 04 Jan 2022 02:14:27 -0500 Original-Received: from [2607:f8b0:4864:20::435] (port=46037 helo=mail-pf1-x435.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4e1Z-0004ox-Qp for emacs-devel@gnu.org; Tue, 04 Jan 2022 02:14:26 -0500 Original-Received: by mail-pf1-x435.google.com with SMTP id u20so31451408pfi.12 for ; Mon, 03 Jan 2022 23:14:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :cc; bh=pnbQnSDayQGprrEhJOUIGTeRDuoMO3BcFiQD3hyY2fY=; b=VOnQfX9wI+LDDgmZN0gKxFUDFAgOgMoRk84cCckfUkKRtHy1WIpNClXSLZ9FhyosYH Den0/GW1TMAKt1nCke48XednJdNOOwGpgU/ingyIZqcPjJHWCTXgYa2nIB5/yEV/SK0Q yqLe3OAq8pUUHDjU4AvYPo5qv01Z8vAsqcyhH+si48/HZgN6hXYGZhNasJZ3rUBMZyWU DT34hVqkG2iFLYx7gm6lGmen5V3O1HPSoHFeFlbyWOjiNwgtuu7V4Cke9C02KR6e0yc0 RyuDjAFs255H/SPCHzd0JyXVinidY2eGsduiX2SM26pL/GdFjzYB95282hS0rC/Q58sC OrGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=pnbQnSDayQGprrEhJOUIGTeRDuoMO3BcFiQD3hyY2fY=; b=h5KdOoMfzQzm1IhUZK6Z/JybvP1DA3+38pP9I4TpaWkTjqVBH3B3jMDo6mKkJxpeM/ FnD1H78gReFEbmagTXi2UPHgKH9E9GM0k18+YCZL6dCr3KZhHOadZXOaYzPvKH6Tp+p1 wHhvNuPtB1Mf3moCK0hI9R08Tj7gEZbTvv+nTxDlNIT3LmODQ5IS0YeqJfLDnYtWMrnN hu9Cgw0rIsLqLOm7yJT2PmrdrBDIfsfVlwFW5nsrS4UG6ANP5Fc4JAQPy4JBuIQNzlrF AKyiLp5KoE/aOTrBYWK04vGAKut5PJS/wlPpI/SU6t0c8tAHHIsBpGC4pyL5HjqmqUSH dUSQ== X-Gm-Message-State: AOAM530/SZ/wP+6ZeKb26TmX0kH48V69ZKLRbMki8BtIfRdQifTI64uD 2OBM9IbmS4PeBjhj+qulVpOTTZd1DePmmQAe1Vg= X-Google-Smtp-Source: ABdhPJzcz9CS2VnlRwYnHwuTPURRM7Y2OUGg/puRuKz9zrw84Kdnsp1GLXNrbxow9gtnS/6p+SpJgXsgqXKLGfANs1g= X-Received: by 2002:a63:2c11:: with SMTP id s17mr42820881pgs.435.1641280459474; Mon, 03 Jan 2022 23:14:19 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 4 Jan 2022 02:14:18 -0500 In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::435 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=stefankangas@gmail.com; helo=mail-pf1-x435.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:284129 Archived-At: 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.