From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Dedicated window for *log-edit-files* Date: Fri, 25 Oct 2019 11:50:55 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="52722"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel To: =?windows-1252?B?Sm/jbyBU4XZvcmE=?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 25 17:51:35 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iO1sF-000DaA-Aq for ged-emacs-devel@m.gmane.org; Fri, 25 Oct 2019 17:51:35 +0200 Original-Received: from localhost ([::1]:34046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iO1sC-0000wL-2Y for ged-emacs-devel@m.gmane.org; Fri, 25 Oct 2019 11:51:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60378) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iO1rl-0000sL-0A for emacs-devel@gnu.org; Fri, 25 Oct 2019 11:51:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iO1ri-0004cn-I7 for emacs-devel@gnu.org; Fri, 25 Oct 2019 11:51:04 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:61358) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iO1rh-0004bW-N9 for emacs-devel@gnu.org; Fri, 25 Oct 2019 11:51:02 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 676E981196; Fri, 25 Oct 2019 11:50:58 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 21CA181119; Fri, 25 Oct 2019 11:50:57 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1572018657; bh=A7CmBmu+Ko54uTcmnCOw77o8ykMqIDnM8oCZz2QVVYE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=lCEhGy1wMeFNBGEfjmjG57JYTBt5yBC6OJkmO9Eeo9C5JzESpFKsbD/rrSK7af9Oq Aw47s3CKhH3vabdnwXDMyVTYaR/LD3dHHl5/EK5jv2OTeq9O/BXQW5hBIAyRivuG+X zQ5rw5w2CiVKENkEdg7c7g6HYTXGhtOu6aEpyHR0p1dwwjV2tm7VkAxlIao9+eUqzf iBBm6+svGR9e+tTHLto06tVpQAKmGw+ggmOv8MwvEE2hUutvdn5aPp7ogXs67QNydB +gXExhXXT8aDeeaktsd4KRXwxOK9yOvqw1TRaxbRaIXr5whkX7S5AakqKrunvIU115 okQo+/igJ5nnQ== Original-Received: from alfajor (modemcable157.163-203-24.mc.videotron.ca [24.203.163.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E9A4B120554; Fri, 25 Oct 2019 11:50:56 -0400 (EDT) In-Reply-To: (=?windows-1252?Q?=22Jo=E3o_T=E1vora=22's?= message of "Fri, 25 Oct 2019 16:36:45 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:241422 Archived-At: >> [ Yes, non-nil default values for non-preloaded hooks are evil. >> I confess to doing it, but I plead insanity. ] > Why evil? Because you can't conveniently add/remove values from it (you either have to wait for the file to be loaded to do that, or force loading it eagerly at startup, or completely override the default value with your own). We discussed a few times teaching Custom how to modify lists like these (so what is stored in your config file for this variable is morally a sort of "diff" rather than the current result of applying the diff). > How else would you arrange to have this default behaviour? Typically we add ad-hoc config vars to enable/disable features instead that also helps with discoverability. But yes, it has its own disadvantages. Stefan