From: David De La Harpe Golden <david@harpegolden.net>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Selection changes
Date: Thu, 15 Jul 2010 00:51:58 +0100 [thread overview]
Message-ID: <4C3E4D9E.6000403@harpegolden.net> (raw)
In-Reply-To: <87ocea2ax1.fsf@stupidchicken.com>
On 14/07/10 19:08, Chong Yidong wrote:
> I believe that this change should be pretty much seamless, but let me
> know if there is any problems.
>
'fraid the no-zero-length-region change to deactivate-mark, while
well-intentioned, is wrong - by that stage emacs may have already taken
ownership of the selection, and pointed it at the buffer.
e.g. try C-SPC C-SPC, move point a few chars, middle click, middle
click, middle click, Yeuch! Or try making the region nonzero sized then
zero sized again.
So please remove from deactivate-mark the
(not (eq (region-beginning) (region-end)))
for now - not having it is IMO the lesser of two evils, it's _way_ too
easy to apparently randomize (well, it's not actually random, but users
aren't going to appreciate rhat) primary with it there. At least IMO.
Really, emacs needs to take ownership of the primary selection and set
it to the buffer /the first time in each region activation that the
active region becomes nonzero sized/.
Remember when the emacs-level selection val is set to a buffer object,
the buffer is _lazily_ queried for its point-mark span if/when other X
clients ask for the selection, so if it manages to stay set to the
buffer past deactivation of the region you'll have a selection depending
on where the mark and point are at that time. Hence freezing off the
string as the selection in deactivate-mark.
I'm out of "emacs time" for today for actual implementation of a
proposal for a fix - I'll have time at the weekend if you haven't got to
it by then...
next prev parent reply other threads:[~2010-07-14 23:51 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-14 18:08 Selection changes Chong Yidong
2010-07-14 18:39 ` Jeff Clough
2010-07-14 18:53 ` Chong Yidong
2010-07-14 19:02 ` Jeff Clough
2010-07-14 19:25 ` Yann Hodique
2010-07-14 20:28 ` Chong Yidong
2010-07-14 23:51 ` David De La Harpe Golden [this message]
2010-07-16 1:31 ` Richard Stallman
2010-07-16 2:49 ` Miles Bader
2010-07-17 0:44 ` David De La Harpe Golden
2010-07-17 1:02 ` Miles Bader
2010-07-17 2:28 ` David De La Harpe Golden
2010-07-17 2:56 ` Chong Yidong
2010-07-17 3:30 ` Miles Bader
2010-07-17 3:49 ` Chong Yidong
2010-07-22 21:21 ` Drew Adams
2010-07-22 22:05 ` Chong Yidong
2010-07-23 10:32 ` Eli Zaretskii
2010-07-24 18:44 ` David De La Harpe Golden
2010-07-24 20:28 ` Eli Zaretskii
2010-07-24 21:48 ` David De La Harpe Golden
2010-07-25 16:32 ` David De La Harpe Golden
2010-07-17 3:50 ` David De La Harpe Golden
2010-07-17 3:55 ` Chong Yidong
2010-07-17 4:13 ` Chong Yidong
2010-07-17 16:55 ` David De La Harpe Golden
2010-07-18 16:24 ` David De La Harpe Golden
2010-07-17 10:50 ` Wojciech Meyer
2010-07-17 11:01 ` Miles Bader
-- strict thread matches above, loose matches on Subject: below --
2010-07-16 1:00 Angelo Graziosi
2010-07-16 9:33 ` David De La Harpe Golden
2010-07-17 23:49 ` Angelo Graziosi
2010-07-18 19:28 ` David De La Harpe Golden
2010-07-18 22:39 ` Angelo Graziosi
2010-07-16 12:14 ` Angelo Graziosi
2011-05-27 16:25 Chong Yidong
2011-05-28 4:13 ` David De La Harpe Golden
2011-05-31 0:59 ` Taylor Venable
2011-05-28 11:16 ` Andreas Röhler
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=4C3E4D9E.6000403@harpegolden.net \
--to=david@harpegolden.net \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@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 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.