[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New Context Menu and mouse-1
From: |
Eli Zaretskii |
Subject: |
Re: New Context Menu and mouse-1 |
Date: |
Fri, 27 Aug 2021 09:55:36 +0300 |
> From: Juri Linkov <juri@linkov.net>
> Date: Fri, 27 Aug 2021 09:21:21 +0300
>
> 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.
Why do you need mouse-set-region to be invoked? And if you do, why
cannot the command bound to down-mouse-3 do that?
- 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, 2021/08/27
- Re: New Context Menu and mouse-1,
Eli Zaretskii <=
- 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