From: Al Haji-Ali <abdo.haji.ali@gmail.com>
To: martin rudalics <rudalics@gmx.at>, Eli Zaretskii <eliz@gnu.org>
Cc: 61102@debbugs.gnu.org
Subject: bug#61102: 28.1; with-selected-window/save-window-excursion calls buffer-list-update-hook only once
Date: Thu, 02 Feb 2023 17:08:55 +0000 [thread overview]
Message-ID: <87mt5wxae0.fsf@gmail.com> (raw)
In-Reply-To: <780090dc-1cc9-e8f6-893e-be12972b78e4@gmx.at>
On 02/02/2023, martin rudalics wrote:
> "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’."
I see that the behaviour is not a bug as per the documentation.
But it does lead to strange behaviours in code or packages that rely on tracking the selected window since there is no way (that I see at least) to detect that the selected window did not change, or changed back at the end of executing this code.
Best regards,
-- Al
next prev parent reply other threads:[~2023-02-02 17:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-27 18:29 bug#61102: 28.1; with-selected-window/save-window-excursion calls buffer-list-update-hook only once Al Haji-Ali
2023-02-02 10:22 ` Eli Zaretskii
2023-02-02 15:04 ` martin rudalics
2023-02-02 17:06 ` Eli Zaretskii
2023-02-02 18:16 ` martin rudalics
2023-02-02 19:56 ` Eli Zaretskii
2023-02-02 17:08 ` Al Haji-Ali [this message]
2023-02-02 18:17 ` martin rudalics
2023-02-02 21:21 ` Al Haji-Ali
2023-02-03 8:33 ` martin rudalics
2023-02-03 11:49 ` Al Haji-Ali
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mt5wxae0.fsf@gmail.com \
--to=abdo.haji.ali@gmail.com \
--cc=61102@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=rudalics@gmx.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.