[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New Context Menu and mouse-1
From: |
Juri Linkov |
Subject: |
Re: New Context Menu and mouse-1 |
Date: |
Fri, 27 Aug 2021 09:21:21 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
Other apps support the following optimal mouse gesture:
1. Press down-mouse-1 and move the mouse to select the region;
2. Without releasing mouse-1, click mouse-3 to pop up the context menu;
3. Release mouse-1 on the menu item "Cut", thus deleting the region.
This allows selecting and deleting the region with just 2 mouse clicks.
The same works almost perfectly in Emacs with a single snag:
while dragging mouse-1, visually it looks like the region is selected,
but really the region don't get selected until mouse-1 is released
and calls 'mouse-set-region' bound to [drag-mouse-1].
But while using the above gesture, [drag-mouse-1] (mouse-set-region) is
never invoked:
<down-mouse-1> ;; mouse-drag-region
<mouse-movement> ;; anonymous-command
<mouse-movement> ;; anonymous-command
<mouse-movement> ;; anonymous-command
<down-mouse-3> <cut> ;; kill-region
I have no idea how this could be fixed.
Maybe mouse--drag-set-mark-and-point should set the real region when
called from lambda bound to [mouse-movement] by set-transient-map in
mouse-drag-track?
- Re: New Context Menu, (continued)
Re: New Context Menu, Ergus, 2021/08/19
- Re: New Context Menu, Juri Linkov, 2021/08/20
- Re: New Context Menu, Ergus, 2021/08/20
- Re: New Context Menu, Juri Linkov, 2021/08/20
- Re: New Context Menu, Ergus, 2021/08/21
- Re: New Context Menu, Juri Linkov, 2021/08/22
Re: New Context Menu and mouse-1,
Juri Linkov <=
- Re: New Context Menu and mouse-1, Eli Zaretskii, 2021/08/27
- Re: New Context Menu and mouse-1, Juri Linkov, 2021/08/27
- Re: New Context Menu and mouse-1, Stefan Monnier, 2021/08/27
- Re: New Context Menu and mouse-1, Juri Linkov, 2021/08/28
- Re: New Context Menu and mouse-1, Juri Linkov, 2021/08/29
- Re: New Context Menu and mouse-1, Juri Linkov, 2021/08/30
- Re: New Context Menu and mouse-1, Stefan Monnier, 2021/08/30