From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: window-buffer-change-functions Date: Fri, 23 Sep 2022 22:43:02 -0400 Message-ID: References: <83o86hyild.fsf@gnu.org> <877d1ycbom.fsf@gnus.org> <835yhivx39.fsf@gnu.org> <83v8piuh5k.fsf@gnu.org> <2f85eda92184de27e10572e6b2320885@webmail.orcon.net.nz> <83pmfpv4fs.fsf@gnu.org> <7110e0330e878c144a6364a8e6ad651c@webmail.orcon.net.nz> <83fsgkszcv.fsf@gnu.org> <1a6028ed-73bd-7d5f-c206-8061bdc9edd0@gmx.at> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35435"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rudalics@gmx.at, eliz@gnu.org, emacs-devel@gnu.org To: Phil Sainty Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 24 04:44:34 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 1obv9e-000964-EI for ged-emacs-devel@m.gmane-mx.org; Sat, 24 Sep 2022 04:44:34 +0200 Original-Received: from localhost ([::1]:41538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obv9d-0005rW-AH for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Sep 2022 22:44:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obv8D-0004lg-Hd for emacs-devel@gnu.org; Fri, 23 Sep 2022 22:43:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52472) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obv8A-0002it-U2; Fri, 23 Sep 2022 22:43:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=Ji82CgMvNF5ySVnhr8bVxL5E3FXMuKdASHixGzu0n34=; b=YqB7yH5Qulb9 K7crx+GO5bhbLG8vMcmOMCY7uE8g2cNh+P70fHD4sCI62BkE4mWnyxxb/vTHakDlkxPoVMQHuKcAV 5QoM/W99PeH7/ruZJ3LS48BcGPtcjfPL9TfWIbOgk1WxHBkHJmpsiAwbtCvSZMX7gZsuWTmGhRLo6 4DG8jYRWLChZbn0UZuUh2qFmCXU4d69fbFbh/NxP/KYl6+m0lQQLw+PjF6pitJgbL/PktJGTAE37U eNkjJ0hVhZVMlq1CFMTVN4V5NK5ssRxBJjnE0L1tpTpIUzz1Rw5cNlZJK2YfkMP//iFi/hZoZT9Fw WZn6p/QoAwLFU+DAoeu22w==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1obv8A-0001KB-AE; Fri, 23 Sep 2022 22:43:02 -0400 In-Reply-To: (message from Phil Sainty on Fri, 23 Sep 2022 23:13:37 +1200) 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:296102 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > Therefore, in a majority of cases, running a hook with a buffer-local > value processes both the buffer-local list *and* the global list for > that variable. That's true -- but I contend that this is a clean variation of the general mechanism. Instead of "the buffer-local binding replaces the default binding", we have "the buffer-local list's elements add to the default list's elements." This behavior is to the usual buffer-local binding behavior, as advising a function is to redefining it. That makes it clean. What window-buffer-change-functions and such do is ad hoc. The clean and simple interface for this would be to have a frame functions list and a window functions list. Each one would be simple and clean. What we have now is artificially packing two different lists into two bindings of one variable. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)