all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* drag events should be defined as a movement to a different buffer position (Bug 9186)
@ 2011-08-19 17:48 Andrew Schein
  2011-08-21  9:58 ` Jan Djärv
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Schein @ 2011-08-19 17:48 UTC (permalink / raw)
  To: emacs-devel

https://lists.gnu.org/archive/html/bug-gnu-emacs/2011-08/msg00405.html

Back in 2001, the following revision defined the behavior of mouse
movements to cause a drag-copy to occur even when the position within
a buffer does not change:

revno: 40721
committer: Richard M. Stallman <rms@gnu.org>
timestamp: Mon 2001-11-05 04:19:56 +0000
message:
  (read_char): Use Fcar and Fcdr, not Fnth.
  (record_char): Likewise.

  (make_lispy_event): Don't insist a drag event must move to a different
  buffer position.  Instead, check for moving at least double_click_fuzz.

As a result, even clicking on the emacs window is enough to blow away
a pre-existing drag copy buffer if your hand moves even slightly...
making the pasting a drag-copy from a separate window a gamble.   This
is the case if you use your mouse to activate the emacs window instead
of alt-tab or some other mechanism.  Also, the current emacs behavior
is contrary to the user experience of other x-based applications such
as firefox.

Options for fixing this include reverting to a position-based rule or
else creating an emacs lisp variable that controls this behavior (as
exists for turning on/off drag copy altogether).  My patch takes the
former approach.

Cheers,

Andrew

-- 
Andrew I. Schein
www.andrewschein.com



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

* Re: drag events should be defined as a movement to a different buffer position (Bug 9186)
  2011-08-19 17:48 drag events should be defined as a movement to a different buffer position (Bug 9186) Andrew Schein
@ 2011-08-21  9:58 ` Jan Djärv
  2011-08-22 16:24   ` Andrew Schein
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Djärv @ 2011-08-21  9:58 UTC (permalink / raw)
  To: Andrew Schein; +Cc: emacs-devel

Can you drag-copy one character with your change?

	Jan D.

Andrew Schein skrev 2011-08-19 19:48:
> https://lists.gnu.org/archive/html/bug-gnu-emacs/2011-08/msg00405.html
>
> Back in 2001, the following revision defined the behavior of mouse
> movements to cause a drag-copy to occur even when the position within
> a buffer does not change:
>
> revno: 40721
> committer: Richard M. Stallman<rms@gnu.org>
> timestamp: Mon 2001-11-05 04:19:56 +0000
> message:
>    (read_char): Use Fcar and Fcdr, not Fnth.
>    (record_char): Likewise.
>
>    (make_lispy_event): Don't insist a drag event must move to a different
>    buffer position.  Instead, check for moving at least double_click_fuzz.
>
> As a result, even clicking on the emacs window is enough to blow away
> a pre-existing drag copy buffer if your hand moves even slightly...
> making the pasting a drag-copy from a separate window a gamble.   This
> is the case if you use your mouse to activate the emacs window instead
> of alt-tab or some other mechanism.  Also, the current emacs behavior
> is contrary to the user experience of other x-based applications such
> as firefox.
>
> Options for fixing this include reverting to a position-based rule or
> else creating an emacs lisp variable that controls this behavior (as
> exists for turning on/off drag copy altogether).  My patch takes the
> former approach.
>
> Cheers,
>
> Andrew
>



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

* Re: drag events should be defined as a movement to a different buffer position (Bug 9186)
  2011-08-21  9:58 ` Jan Djärv
@ 2011-08-22 16:24   ` Andrew Schein
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Schein @ 2011-08-22 16:24 UTC (permalink / raw)
  To: Jan Djärv; +Cc: emacs-devel

Yes.

-Andrew

On Sun, Aug 21, 2011 at 2:58 AM, Jan Djärv <jan.h.d@swipnet.se> wrote:
> Can you drag-copy one character with your change?
>
>        Jan D.
>
> Andrew Schein skrev 2011-08-19 19:48:
>>
>> https://lists.gnu.org/archive/html/bug-gnu-emacs/2011-08/msg00405.html
>>
>> Back in 2001, the following revision defined the behavior of mouse
>> movements to cause a drag-copy to occur even when the position within
>> a buffer does not change:
>>
>> revno: 40721
>> committer: Richard M. Stallman<rms@gnu.org>
>> timestamp: Mon 2001-11-05 04:19:56 +0000
>> message:
>>   (read_char): Use Fcar and Fcdr, not Fnth.
>>   (record_char): Likewise.
>>
>>   (make_lispy_event): Don't insist a drag event must move to a different
>>   buffer position.  Instead, check for moving at least double_click_fuzz.
>>
>> As a result, even clicking on the emacs window is enough to blow away
>> a pre-existing drag copy buffer if your hand moves even slightly...
>> making the pasting a drag-copy from a separate window a gamble.   This
>> is the case if you use your mouse to activate the emacs window instead
>> of alt-tab or some other mechanism.  Also, the current emacs behavior
>> is contrary to the user experience of other x-based applications such
>> as firefox.
>>
>> Options for fixing this include reverting to a position-based rule or
>> else creating an emacs lisp variable that controls this behavior (as
>> exists for turning on/off drag copy altogether).  My patch takes the
>> former approach.
>>
>> Cheers,
>>
>> Andrew
>>
>



-- 
Andrew I. Schein
www.andrewschein.com



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

end of thread, other threads:[~2011-08-22 16:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-19 17:48 drag events should be defined as a movement to a different buffer position (Bug 9186) Andrew Schein
2011-08-21  9:58 ` Jan Djärv
2011-08-22 16:24   ` Andrew Schein

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.