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.bugs Subject: bug#51930: 27.2; Buffer-local functions? Buffers specified buffer-locally? Date: Thu, 22 Sep 2022 09:54:44 +0300 Message-ID: <837d1vucej.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25999"; mail-complaints-to="usenet@ciao.gmane.io" Cc: psainty@orcon.net.nz, 51930@debbugs.gnu.org, larsi@gnus.org, drew.adams@oracle.com To: rms@gnu.org, martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 22 08:55:53 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1obG7k-0006Z7-Oe for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Sep 2022 08:55:52 +0200 Original-Received: from localhost ([::1]:53064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obG7j-0003Jk-EL for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Sep 2022 02:55:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obG6w-0003J3-6h for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 02:55:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36942) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obG6v-0008B5-UN for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 02:55:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1obG6v-0008Bp-OH for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 02:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Sep 2022 06:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51930 X-GNU-PR-Package: emacs Original-Received: via spool by 51930-submit@debbugs.gnu.org id=B51930.166382969131462 (code B ref 51930); Thu, 22 Sep 2022 06:55:01 +0000 Original-Received: (at 51930) by debbugs.gnu.org; 22 Sep 2022 06:54:51 +0000 Original-Received: from localhost ([127.0.0.1]:36020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obG6k-0008BN-V0 for submit@debbugs.gnu.org; Thu, 22 Sep 2022 02:54:51 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obG6e-0008B6-C1 for 51930@debbugs.gnu.org; Thu, 22 Sep 2022 02:54:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53926) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obG6U-000889-Q9; Thu, 22 Sep 2022 02:54:36 -0400 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=1yp/c6yhMXt6jJyjcp1QBBgk7gOmciRroQrYVEoQBpo=; b=nvDGFfF9X1Wq Tma3jubK/6gCptYQKiIT9/2Gghfa4t51OswvuszNGPNnHm+5xObuE8yWP5atVWR53aDhOoQNyotLU 1EbYMRqBB7Y8WBGr9SwfOOUay7KaAYnNpH4ebWYv/fr3DJBfCK7PydXVnDUoVlGjpJqlRkaNMrNwQ W6T+txUw1CpjAl92IjR+JfyqKC8uUTovPHQ2FsGsu3zByQJAwvC3B+8+inYc5/+u6DUvYmRESRA9x SKFmDjTjRSuEbJ6mv/p4epr7qTAvBkbb2rPcrWEhPlIPNM3P7MzY88O+qWj38A4ZIora9Klgm5ijj 3HfTq8eeTyCtUtDtCQ7RuA==; Original-Received: from [87.69.77.57] (port=3111 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 1obG6T-0003mV-Lr; Thu, 22 Sep 2022 02:54:34 -0400 In-Reply-To: (message from Richard Stallman on Wed, 21 Sep 2022 23:11:52 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:243399 Archived-At: > From: Richard Stallman > Cc: eliz@gnu.org, 51930@debbugs.gnu.org, larsi@gnus.org, > drew.adams@oracle.com > Date: Wed, 21 Sep 2022 23:11:52 -0400 > > ====================================================================== > A list of functions for redisplay to call when the assignment of > buffers to windows has changed. Each function takes a single > argument. > > This variable is peculiar in that its default value has one meaning > and its actual value (normally buffer-local) has a different meaning. > Redisplay uses both of these values, each in a different way. > > For the actual (buffer-local) value, redisplay calls each function > once for each window, with the window as argument, if that window has > been created or assigned that buffer since the last time the window > change functions were called. > > For the default value, redisplay calls each function once for each > frame, with the frame as argument, if at least one window on that > frame has been added, deleted or assigned another buffer since the > last time window change functions were called. > ====================================================================== > > However, looking at the doc string of the variable seems to describe > a different behavior, more like this: > > ====================================================================== > A list of functions for redisplay to call when the assignment of > buffers to windows has changed. Each function takes a single > argument. > > Redisplay examines the global value of this variable, and calls each > function once for each frame, with the frame as argument, if at least > one window on that frame has been added, deleted or made to display a > different buffer since the last time window change functions were > called. > > Redisplay also checks a buffer-local value of this variable in each > buffer that's currenly displayed in a window. If there is one, > redisplay calls each function listed there for each window that > displays the buffer in question, with the window as argument, > @emph{if} the window has been created, or made to display that buffer, > since the last time the window change functions were called. > ====================================================================== > > Is this correct? I can't tell from the text available. The manual is more correct: the code goes through windows and invokes these functions for a window if its buffer has a non-nil buffer-local value of the variable.