From: David De La Harpe Golden <david@harpegolden.net>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Chong Yidong <cyd@stupidchicken.com>, 8996@debbugs.gnu.org
Subject: bug#8996: Set PRIMARY from last selection, not last selected window
Date: Fri, 08 Jul 2011 06:54:11 +0100 [thread overview]
Message-ID: <4E169B83.4050706@harpegolden.net> (raw)
In-Reply-To: <jwvpqlpv2ck.fsf-monnier+INBOX@gnu.org>
On 05/07/11 04:26, Stefan Monnier wrote:
> The window manager is ctwm rather than Metacity, in case it matters.
>
I can replicate this (not just with ctwm)
The issue I was thinking of is still present too, and is likely
closely related / really the same thing.
emacs -Q
C-x 2
point is at end of scratch buffer in the window you're in.
Now select word "create" with M-SPC and arrow keys, mark at start of
word, point at end of word.
C-x o
create to the end of buffer is highlighted in current window.*
select word "visit" in window you're now in with M-SPC and arrow keys,
mark at start of word, point at end of word.
C-x o
Note " a file, " is highlighted.*
hit mouse-2 on the end of the word "enter" in current window.
++ " a file, " is inserted, whereas user expectation is probably
"visit", as the most recently actively selected by the user.
If we made it insert "visit", and (unlikely) the user did actually want
" a file, ", they could hit C-x C-x [C-x C-x], say, to make that region
the last actively selected by the user.
* Notionally pretty separate issue, best considered a separate bug or
wishlist item: Point position is saved/restored on a per-window basis by
select-window, but the mark position (and active status) is not. IMO
both point and mark (and active status) could do with being saved
per-window and restored on window switches. That would be a noticeable
behavioural change if done by default (could be optional though), and is
presumably not a runner even as an option right at this very moment
(feature freeze). And of course, an ability to set the mark in one
window open on a large buffer and the point in another window open onto
a different place in the same large buffer is sortof a feature (though
it's also possible to imagine both switch-window and, uh,
switch-window-keeping-current-mark-position being available on different
bindings).
next prev parent reply other threads:[~2011-07-08 5:54 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 [this message]
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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E169B83.4050706@harpegolden.net \
--to=david@harpegolden.net \
--cc=8996@debbugs.gnu.org \
--cc=cyd@stupidchicken.com \
--cc=monnier@iro.umontreal.ca \
/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.