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: martin rudalics
Subject: Re: mouse-drag-and-drop-region
Date: Sun, 17 Dec 2017 11:44:24 +0100

> I take out several comments to make lines no more longer than 80
> characters.
>
> I'm sending ChangeLog, and patch.

I pushed it now with slight changes in the ChangeLog entry and one
change in my earlier calculation of `drag-but-negligible' to avoid that
a drop is rejected when source and destination buffer differ but the
position in the destination buffer is a position in the original region
of the source buffer.  Please have a look.

I believe the following calculations ...

                      (if (and (integerp text-size)
                               (> (length value-selection) text-size))
                          (concat
                           (substring value-selection 0 (/ text-size 2))
                           "\n...\n"
                           (substring value-selection (- (/ text-size 2)) -1))
                        value-selection))))

... could be improved when the user has chosen a very small value for
'mouse-drag-and-drop-region-show-tooltip' but I have no good idea how to
do that.  Maybe also a value of zero should be handled like nil.  But
there's no great need for doing that.

So let's see if there are any complaints.  And maybe it's time to write
some documentation now ...

Thanks, martin



reply via email to

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