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#61102: 28.1; with-selected-window/save-window-excursion calls buffer-list-update-hook only once Date: Thu, 02 Feb 2023 19:06:00 +0200 Message-ID: <83v8kkvvyf.fsf@gnu.org> References: <83ilgkxt6q.fsf@gnu.org> <780090dc-1cc9-e8f6-893e-be12972b78e4@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14693"; mail-complaints-to="usenet@ciao.gmane.io" Cc: abdo.haji.ali@gmail.com, 61102@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 02 18:07:10 2023 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 1pNd3F-0003gH-Vy for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Feb 2023 18:07:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNd3A-0005Oy-7S; Thu, 02 Feb 2023 12:07:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNd38-0005Ok-Iu for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2023 12:07:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pNd38-0004oX-AJ for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2023 12:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pNd38-0002gL-5G for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2023 12:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Feb 2023 17:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61102 X-GNU-PR-Package: emacs Original-Received: via spool by 61102-submit@debbugs.gnu.org id=B61102.167535756510238 (code B ref 61102); Thu, 02 Feb 2023 17:07:02 +0000 Original-Received: (at 61102) by debbugs.gnu.org; 2 Feb 2023 17:06:05 +0000 Original-Received: from localhost ([127.0.0.1]:35650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNd2D-0002f2-Fw for submit@debbugs.gnu.org; Thu, 02 Feb 2023 12:06:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNd2C-0002eZ-H7 for 61102@debbugs.gnu.org; Thu, 02 Feb 2023 12:06:04 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNd27-0004dD-30; Thu, 02 Feb 2023 12:05:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=ufD+PfQHi/oIMT6W2bJpqaI7Y5KfDcIBaLS63K3ZGD4=; b=ryLdu09dvvzXQzobuqoJ 7uLbO175AY31oXUCNnUqpN9kBCAXriL3tkg5o2Oq5M5ONfn7JPSdPMH5BnnP3Fm8shRmKGEUJT6hn /plLAAhTkuq5gZhkvDbba7HhLNxr5zNSZajFGxi5pI88kjgww1su/e3mRnsteZiilUfN9usjR5Ozi LEYoDqMC4mj4iOPAhzdt6dTqY1XykNbB80gARaT54jiQxCrz4L6qUZJYAqJC0U48rFsBCt5F6qrIn GTTwDeXNl8ahLMg63WIVreK0LEKQ3/AId3C9uWhGQr9ySNKUBXzWP639rleXc5Lc5QCCKyK9G9Onz xQWt8z1dycYT7A==; Original-Received: from [87.69.77.57] (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 1pNd26-0007tn-Aa; Thu, 02 Feb 2023 12:05:58 -0500 In-Reply-To: <780090dc-1cc9-e8f6-893e-be12972b78e4@gmx.at> (message from martin rudalics on Thu, 2 Feb 2023 16:04:52 +0100) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254671 Archived-At: > Date: Thu, 2 Feb 2023 16:04:52 +0100 > Cc: 61102@debbugs.gnu.org > From: martin rudalics > > > Martin, any comments on this? FWIW, I'm not sure this is a bug, but > > maybe I'm missing something. > > The doc-string of 'with-selected-window' says that: > > "It does not alter the buffer list ordering." > > and the Elisp manual is more explicit by saying that > > "The ordering of recently selected windows and the buffer list remain > unchanged unless you deliberately change them within FORMS; for > example, by calling ‘select-window’ with argument NORECORD ‘nil’. > Hence, this macro is the preferred way to temporarily work with > WINDOW as the selected window without needlessly running > ‘buffer-list-update-hook’." > > The one message the OP sees comes from this call in > 'set-window-configuration' > > select_window (data->current_window, Qnil, false); > > 'set-window-configuration' itself is called by 'save-window-excursion'. So do you agree with me that there's no bug here?