emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mouse-drag-and-drop-region


From: Tak Kunihiro
Subject: Re: mouse-drag-and-drop-region
Date: Fri, 08 Dec 2017 06:45:40 +0900 (JST)

>> I found a glitch.  I think
>>
>>    (unless (eq window window-dropped)...
>>
>> should be something like
>>
>>    (when (and window-dropped
>>               (not (eq window window-dropped)))...
>
> Wouldn't this mean that when window-dropped is nil and the user has
> changed the point of some other window, that other's window point is
> not reverted to its original position?  I think the
>
>     (unless (eq window window-dropped)
> 
> DTRT: WINDOW cannot be nil here and if it equals WINDOW-DROPPED then
> we should not revert its point.  Or am I missing something?

When the user just clicks within the region (no drag), window-dropped
remains nil.  On such condition, window-start should not be set.

Let's say there are two window top and bottom (T and B) in a frame.
Scroll T to the end.  Make region in B.  Then click the region.  I
will see T to be scrolled to the beginning.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]