From: David De La Harpe Golden <david@harpegolden.net>
To: Chong Yidong <cyd@gnu.org>
Cc: 8996@debbugs.gnu.org
Subject: bug#8996: Set PRIMARY from last selection, not last selected window
Date: Sun, 25 Mar 2012 04:32:43 +0100 [thread overview]
Message-ID: <4F6E91DB.30200@harpegolden.net> (raw)
In-Reply-To: <87pqc2b6f6.fsf@gnu.org>
On 24/03/12 11:10, Chong Yidong wrote:
> Why not just extend the Bug#6872 approach to handle-select-window too?
>
Well, that only catches cases that happen owing to things that trigger
the <select-window> event that handle-select-window is bound to.
But that event isn't fired when you C-x o - other-window just straight
calls the select-window function. So, with your patch applied, it
probably fixes the visible issue in Stefan's focus-follows-mouse case,
but my keyboard recipe previously given still yields the "wrong"*
selection.
So, you say, "then why not just add other-window too with the same
approach?" Well, maybe, but then how many more need to be added after
that? That's what I was getting at when I previously remarked
"enumerating all potential window-switching commands is probably not
viable.". Or maybe it is, though I guess in principle users could also
define arbitrary new commands that called select-window (not sure many
would. Maybe there could be an extensible select-inhibit-commands-list,
and users who do such things could be told to push their command onto it...)
* there is probably an approach that can allow both behaviours as a
switchable user customization, in case you think the selection yielded
via the keyboard recipe is "right"...
next prev parent reply other threads:[~2012-03-25 3:32 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-04 17:19 bug#8996: Set PRIMARY from last selection, not last selected window Stefan Monnier
2011-07-04 19:11 ` David De La Harpe Golden
2011-07-04 20:27 ` Chong Yidong
2011-07-05 3:26 ` Stefan Monnier
2011-07-05 10:11 ` David De La Harpe Golden
2011-07-08 5:54 ` David De La Harpe Golden
2011-07-11 2:57 ` David De La Harpe Golden
2012-03-13 13:23 ` Stefan Monnier
2012-03-18 19:18 ` David De La Harpe Golden
2012-03-24 11:10 ` Chong Yidong
2012-03-25 3:32 ` David De La Harpe Golden [this message]
2012-03-25 3:42 ` Chong Yidong
2012-03-25 13:42 ` David De La Harpe Golden
2012-03-25 14:20 ` David De La Harpe Golden
2012-03-26 4:06 ` Chong Yidong
2012-03-27 0:16 ` David De La Harpe Golden
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F6E91DB.30200@harpegolden.net \
--to=david@harpegolden.net \
--cc=8996@debbugs.gnu.org \
--cc=cyd@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).