From: martin rudalics <rudalics@gmx.at>
To: Markus Triska <markus.triska@gmx.at>
Cc: 1237@emacsbugs.donarmstrong.com
Subject: bug#1237: 23.0.60; `switch-to-buffer-other-window' sometimes uses selected window
Date: Sat, 25 Oct 2008 19:00:39 +0200 [thread overview]
Message-ID: <490350B7.1050902@gmx.at> (raw)
In-Reply-To: <m163ngwtaf.fsf@gmx.at>
> Would it suffice if `run_window_configuration_change_hook' re-selected
> the selected window at the end? i.e.,
It should handle your two windows case. I'm not sure what happens with
three or more windows. The problem is that we want the _least_ recently
used window and the `select-window' would not fix anything messed up
down there. In some sense this virtual list of windows ordered by their
use_time gets rotated with every call of `walk-windows'.
The real problem is the unholy combination of
run_window_configuration_change_hook and `walk-windows'. The former
carefully selects each window _without_ recording it and the latter
annihilates the former's efforts by selecting the window _and_ recording
it. I tried with a `save-selected-window-norecord' macro and equipped
`set-frame-selected-window' with an extra "norecord" parameter. This
works but is quite clumsy. Also, I'm by no means sure whether the
effect of recorded selecting a window within `walk-windows' might have
been considered a feature by other callers.
martin
next prev parent reply other threads:[~2008-10-25 17:00 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <490D8B7D.3020008@gmx.at>
2008-10-24 10:27 ` bug#1237: 23.0.60; `switch-to-buffer-other-window' sometimes uses selected window Markus Triska
2008-10-24 12:28 ` martin rudalics
2008-10-24 14:06 ` Markus Triska
2008-10-24 14:45 ` martin rudalics
2008-10-24 15:42 ` Markus Triska
2008-10-24 17:37 ` martin rudalics
2008-10-25 13:28 ` martin rudalics
2008-10-25 16:09 ` Markus Triska
2008-10-25 17:00 ` martin rudalics [this message]
2008-10-25 19:08 ` Stefan Monnier
[not found] ` <mailman.2085.1224963020.25473.bug-gnu-emacs@gnu.org>
2008-10-29 13:25 ` Markus Triska
2008-10-29 22:15 ` Lennart Borgman
2008-11-01 18:06 ` martin rudalics
2008-11-02 2:16 ` Stefan Monnier
2008-11-02 23:19 ` Richard M. Stallman
2008-11-03 7:17 ` martin rudalics
2008-11-03 19:40 ` Richard M. Stallman
2008-11-03 20:49 ` Stefan Monnier
2008-11-04 7:35 ` martin rudalics
2008-11-02 11:25 ` bug#1237: marked as done (23.0.60; `switch-to-buffer-other-window' sometimes uses selected window) Emacs bug Tracking System
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=490350B7.1050902@gmx.at \
--to=rudalics@gmx.at \
--cc=1237@emacsbugs.donarmstrong.com \
--cc=markus.triska@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.