[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, 15 Dec 2017 08:14:50 +0900 |
I re-re-re-revised mouse-drag-and-drop-region. I'm sending reply to
https://lists.gnu.org/archive/html/emacs-devel/2017-12/msg00258.html,
ChangeLog, and patch.
* ChangeLog
2017-12-16 Tak Kunihiro <address@hidden>
Improve comments and have four new options
* lisp/mouse.el (mouse-drag-and-drop-region): Have option to make
dragging cut among buffers. Make usage of tooltip option.
(mouse-drag-and-drop-region-cut-when-buffers-differ): New variable. If
non-nil, text is cut instead of copied when dragged among buffers.
(mouse-drag-and-drop-region-show-tooltip): New variable. If non-nil,
text is shown by tooltip in a graphic display.
(mouse-drag-and-drop-region-show-cursor): New variable. If non-nil,
point is set to where the mouse cursor.
(mouse-drag-and-drop-region-face): New variable for face. The face is
used to highlight the original text.
* Reply
>>> 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.
>>
>> Then let's rename window-dropped to something like window-exempt
>> and set window-exempt to the window either clicked at or where the drop
>> occurs.
>
>> ​Better names might be droppped-window or destination-window.
>> If this is nil, then no drag-and-drop occurred; otherwise,
>> it is the window of the drop, so why call it window-exempt?
>
> Because the click or drop exempts that window from the point restoration
> mechanism.
OK. I changed from `window-dropped' to `window-exempt’.
mouse.el.diff
Description: Binary data
- Re: mouse-drag-and-drop-region, (continued)
- Re: mouse-drag-and-drop-region, martin rudalics, 2017/12/03
- Re: mouse-drag-and-drop-region, martin rudalics, 2017/12/03
- Re: mouse-drag-and-drop-region, Tak Kunihiro, 2017/12/04
- Re: mouse-drag-and-drop-region, martin rudalics, 2017/12/05
- Re: mouse-drag-and-drop-region, Tak Kunihiro, 2017/12/06
- Re: mouse-drag-and-drop-region, martin rudalics, 2017/12/07
- Re: mouse-drag-and-drop-region, Tak Kunihiro, 2017/12/07
- Re: mouse-drag-and-drop-region, martin rudalics, 2017/12/08
- Re: mouse-drag-and-drop-region, Robert Weiner, 2017/12/08
- Re: mouse-drag-and-drop-region, martin rudalics, 2017/12/09
- Re: mouse-drag-and-drop-region,
Tak Kunihiro <=
- Re: mouse-drag-and-drop-region, martin rudalics, 2017/12/15
- Re: mouse-drag-and-drop-region, martin rudalics, 2017/12/15
- Re: mouse-drag-and-drop-region, Tak Kunihiro, 2017/12/15
- Re: mouse-drag-and-drop-region, martin rudalics, 2017/12/16
- Re: mouse-drag-and-drop-region, Tak Kunihiro, 2017/12/16
- Re: mouse-drag-and-drop-region, martin rudalics, 2017/12/17
- Re: mouse-drag-and-drop-region, Tak Kunihiro, 2017/12/20
- Re: mouse-drag-and-drop-region, martin rudalics, 2017/12/22
- Re: mouse-drag-and-drop-region, Eli Zaretskii, 2017/12/22
- Re: mouse-drag-and-drop-region, martin rudalics, 2017/12/22