all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Eli Zaretskii <eliz@gnu.org>
Cc: cyd@stupidchicken.com, 6956@debbugs.gnu.org
Subject: bug#6956: 24.0.50; pasting mouse selection in other session pastes only first word
Date: Sat, 04 Sep 2010 10:35:34 +0200	[thread overview]
Message-ID: <4C8204D6.5020201@swipnet.se> (raw)
In-Reply-To: <83bp8eht8b.fsf@gnu.org>



Eli Zaretskii skrev 2010-09-04 09.18:
>> Date: Wed, 01 Sep 2010 17:38:31 +0300
>> From: Eli Zaretskii<eliz@gnu.org>
>> Cc: 6956@debbugs.gnu.org
>
> Ping!
>
> I really need feedback for this, even if the feedback is that this is
> specific to MS-Windows and should therefore be fixed by Windows-specific
> changes.
>
> (FWIW, I think the problem is common to Windows and X alike.)

It is the same in X and NS, i.e. extending with mouse-3 does not put the 
region in the kill ring when mouse-drag-copy-region is t.

Just curious, what about the case when you start with shift-select on a few 
characters and then extend with mouse-3, is that a mouse drag to be copied 
when mouse-drag-copy-region is t?  Or double click word, shift select to 
extend, mouse-3 to extend and then shift select to extend, what goes into kill 
ring then?  The "mouse" in mouse-drag-copy-region makes these things difficult 
to figure out.

	Jan D.

>
>>> From: Chong Yidong<cyd@stupidchicken.com>
>>> Cc: Drew Adams<drew.adams@oracle.com>, 6956@debbugs.gnu.org
>>> Date: Tue, 31 Aug 2010 14:13:30 -0400
>>>
>>> Eli Zaretskii<eliz@gnu.org>  writes:
>>>
>>>>> Select some text (several words) with the mouse using double-click
>>>>> mouse-1 on one word then mouse-3 on a later word in the text.
>>>>
>>>> Does this constitute a "mouse drag"?  Can someone please tell what
>>>> happens on X with the recipe in this bug report?
>>>
>>> Yes, this follows the rule that if the region is highlighted, the
>>> primary selection is set.  On X, if you double-mouse-1 on a word and
>>> extend the region with mouse-3, you can use mouse-2 to paste the entire
>>> selection into another application.
>>
>> The issue here is that mouse-drag-copy-region is advertised to copy to
>> the kill-ring regions which are highlighted by dragging the mouse.
>> But mouse-drag-copy-region only affects mouse-drag-region (via
>> mouse-drag-track), which is bound to mouse-1.  Mouse-3, OTOH, is bound
>> to mouse-save-then-kill, which is not affected at all by
>> mouse-drag-copy-region.
>>
>> So when Drew double-clicks mouse-1, the highlighted first word is
>> indeed copied into the kill ring (and winds up in the clipboard), but
>> extending the region with mouse-3 doesn't copy the extended region.
>>
>> What I think happens on X under mouse-drag-copy-region is that the
>> first word is copied into the clipboard, while the extended region is
>> copied to the PRIMARY selection by the code in command_loop_1 which
>> catches active regions.  Can you please verify this?
>>
>> If my guess is correct, then I think this is a bug: we should copy the
>> whole region to the kill-ring when mouse-drag-copy-region is non-nil.
>> That is, if extending the region with mouse-3 as described in this
>> report indeed constitutes a "mouse drag".
>>
>
>





  reply	other threads:[~2010-09-04  8:35 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-31 16:48 bug#6956: 24.0.50; pasting mouse selection in other session pastes only first word Drew Adams
2010-08-31 17:26 ` Eli Zaretskii
2010-08-31 18:13   ` Chong Yidong
2010-09-01 14:38     ` Eli Zaretskii
2010-09-04  7:18       ` Eli Zaretskii
2010-09-04  8:35         ` Jan Djärv [this message]
2010-09-04 11:07           ` Eli Zaretskii
2010-09-04 15:06             ` Drew Adams
2010-09-04 15:44               ` Eli Zaretskii
2010-09-04 15:15             ` Jan Djärv
2010-09-04 19:09             ` Chong Yidong
2010-09-04 20:35               ` David De La Harpe Golden
2010-09-04 21:38                 ` David De La Harpe Golden
2010-09-05  1:53                   ` Chong Yidong
2010-09-05  5:33                     ` David De La Harpe Golden
2010-09-05 14:36                     ` David De La Harpe Golden
2010-09-05  3:09                   ` Eli Zaretskii
2010-09-05  4:48                     ` David De La Harpe Golden
2010-09-05  5:06                       ` Eli Zaretskii
2010-09-04 17:06           ` David De La Harpe Golden
2010-08-31 18:16   ` Drew Adams
2010-09-16 20:02 ` Eli Zaretskii
2010-09-16 23:51   ` Drew Adams
2010-09-17  8:01     ` Eli Zaretskii
     [not found]       ` <3BE2421F73AD4292AE8375CA3328663D@us.oracle.com>
2010-09-17 16:14         ` Eli Zaretskii
2010-09-17 16:20           ` Drew Adams
2010-09-17 17:03             ` Eli Zaretskii
2010-09-20 18:47               ` Drew Adams
2010-09-20 19:18                 ` Eli Zaretskii
2010-09-20 20:19                   ` Drew Adams
2010-09-20 20:43                   ` Drew Adams
2010-09-20 20:52                     ` Eli Zaretskii
2010-09-20 21:41                       ` Drew Adams
2010-09-20 21:53                         ` Eli Zaretskii
2010-09-20 22:24                           ` Drew Adams
2010-09-21  4:08                             ` Eli Zaretskii
2010-09-21 14:20                               ` Drew Adams

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=4C8204D6.5020201@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=6956@debbugs.gnu.org \
    --cc=cyd@stupidchicken.com \
    --cc=eliz@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.