all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Mouse copy/paste problem?
@ 2012-06-22 20:56 Angelo Graziosi
  2012-06-23  7:11 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Angelo Graziosi @ 2012-06-22 20:56 UTC (permalink / raw)
  To: emacs

Just for completeness...

With trunk, at least > 108548 (june 10, 2012), copy/pasting with mouse 
doesn't seem to work. To reproduce:

emacs -Q &

In the "scratch" buffer double click on the word "then" (start 3rd row). 
Then move to the end of the row, i.e. after "buffer." and paste with 
mouse-2 (wheel). It pastes "then enter the text in that file's own 
buffer." and not "then". Repeating several tries, it never pastes 
correctly but garbage. The same happens if one select the words dragging 
the mouse. With trunk 108548 (the last revision I have backed up) it 
works fine.

This happens with trunk builds on GNU/Linux (K)Ubuntu 12.04, Fedora 16, 
and on Cygwin.

Ciao,
Angelo.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Mouse copy/paste problem?
  2012-06-22 20:56 Mouse copy/paste problem? Angelo Graziosi
@ 2012-06-23  7:11 ` Eli Zaretskii
  2012-06-23  9:57   ` Angelo Graziosi
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2012-06-23  7:11 UTC (permalink / raw)
  To: Angelo Graziosi; +Cc: emacs-devel

> Date: Fri, 22 Jun 2012 22:56:03 +0200
> From: Angelo Graziosi <angelo.graziosi@alice.it>
> 
> Just for completeness...
> 
> With trunk, at least > 108548 (june 10, 2012), copy/pasting with mouse 
> doesn't seem to work. To reproduce:
> 
> emacs -Q &
> 
> In the "scratch" buffer double click on the word "then" (start 3rd row). 
> Then move to the end of the row, i.e. after "buffer." and paste with 
> mouse-2 (wheel). It pastes "then enter the text in that file's own 
> buffer." and not "then". Repeating several tries, it never pastes 
> correctly but garbage. The same happens if one select the words dragging 
> the mouse. With trunk 108548 (the last revision I have backed up) it 
> works fine.
> 
> This happens with trunk builds on GNU/Linux (K)Ubuntu 12.04, Fedora 16, 
> and on Cygwin.

Doesn't happen in the native Windows build of revno 108682.  But the
native Windows build doesn't have a real primary selection, so I'm not
sure this is relevant.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Mouse copy/paste problem?
  2012-06-23  7:11 ` Eli Zaretskii
@ 2012-06-23  9:57   ` Angelo Graziosi
  2012-06-23 12:55     ` Chong Yidong
  0 siblings, 1 reply; 5+ messages in thread
From: Angelo Graziosi @ 2012-06-23  9:57 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Il 23/06/2012 9.11, Eli Zaretskii ha scritto:
>> Date: Fri, 22 Jun 2012 22:56:03 +0200
>> From: Angelo Graziosi <angelo.graziosi@alice.it>
>>
>> Just for completeness...
>>
>> With trunk, at least > 108548 (june 10, 2012), copy/pasting with mouse
>> doesn't seem to work. To reproduce:
>>
>> emacs -Q &
>>
>> In the "scratch" buffer double click on the word "then" (start 3rd row).
>> Then move to the end of the row, i.e. after "buffer." and paste with
>> mouse-2 (wheel). It pastes "then enter the text in that file's own
>> buffer." and not "then". Repeating several tries, it never pastes
>> correctly but garbage. The same happens if one select the words dragging
>> the mouse. With trunk 108548 (the last revision I have backed up) it
>> works fine.
>>
>> This happens with trunk builds on GNU/Linux (K)Ubuntu 12.04, Fedora 16,
>> and on Cygwin.
>
> Doesn't happen in the native Windows build of revno 108682.  But the
> native Windows build doesn't have a real primary selection, so I'm not
> sure this is relevant.
>

Maybe this change is the culprit?

lisp/ChangeLog:

2012-06-13  Chong Yidong  <cyd@gnu.org>

         * mouse.el (mouse-drag-track): Do not set the mark if the user
         releases the mouse without selecting anything (Bug#11588).


I guess this because:

emacs -Q &

Now in the "scratch" buffer I select the word "then" at the start of 3rd 
row *holding down* the SHIF key and moving with right arrow, i.e. not 
using mouse. Then with mouse-1 I go to the end of "buffer.". Clicking 
with mouse-2 (wheel) I get "then enter the text in that file's own 
buffer." pasted. Instead, if I move at the end of "buffer." with arrow 
key and there I paste with mouse-2, I correctly get "then".

In other words, if I use the mouse *only* for pasting and not for select 
the text and moving the pointer, I get the right behavior.


Ciao,
Angelo.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Mouse copy/paste problem?
  2012-06-23  9:57   ` Angelo Graziosi
@ 2012-06-23 12:55     ` Chong Yidong
  2012-06-23 17:07       ` Angelo Graziosi
  0 siblings, 1 reply; 5+ messages in thread
From: Chong Yidong @ 2012-06-23 12:55 UTC (permalink / raw)
  To: Angelo Graziosi; +Cc: Eli Zaretskii, emacs-devel

Angelo Graziosi <angelo.graziosi@alice.it> writes:

> Now in the "scratch" buffer I select the word "then" at the start of
> 3rd row *holding down* the SHIF key and moving with right arrow,
> i.e. not using mouse. Then with mouse-1 I go to the end of
> "buffer.". Clicking with mouse-2 (wheel) I get "then enter the text in
> that file's own buffer." pasted. Instead, if I move at the end of
> "buffer." with arrow key and there I paste with mouse-2, I correctly
> get "then".
>
> In other words, if I use the mouse *only* for pasting and not for
> select the text and moving the pointer, I get the right behavior.

I just committed a fix to this part of the code.  Can you try again and
see if the problem persists?



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Mouse copy/paste problem?
  2012-06-23 12:55     ` Chong Yidong
@ 2012-06-23 17:07       ` Angelo Graziosi
  0 siblings, 0 replies; 5+ messages in thread
From: Angelo Graziosi @ 2012-06-23 17:07 UTC (permalink / raw)
  To: Chong Yidong; +Cc: Eli Zaretskii, emacs-devel

Il 23/06/2012 14.55, Chong Yidong ha scritto:
> Angelo Graziosi <angelo.graziosi@alice.it> writes:
>
>> Now in the "scratch" buffer I select the word "then" at the start of
>> 3rd row *holding down* the SHIF key and moving with right arrow,
>> i.e. not using mouse. Then with mouse-1 I go to the end of
>> "buffer.". Clicking with mouse-2 (wheel) I get "then enter the text in
>> that file's own buffer." pasted. Instead, if I move at the end of
>> "buffer." with arrow key and there I paste with mouse-2, I correctly
>> get "then".
>>
>> In other words, if I use the mouse *only* for pasting and not for
>> select the text and moving the pointer, I get the right behavior.
>
> I just committed a fix to this part of the code.  Can you try again and
> see if the problem persists?
>

Now it seems fixed!

Thanks,
  Angelo.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-06-23 17:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-22 20:56 Mouse copy/paste problem? Angelo Graziosi
2012-06-23  7:11 ` Eli Zaretskii
2012-06-23  9:57   ` Angelo Graziosi
2012-06-23 12:55     ` Chong Yidong
2012-06-23 17:07       ` Angelo Graziosi

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.