[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Context menus and mouse-3
From: |
Stefan Monnier |
Subject: |
Re: Context menus and mouse-3 |
Date: |
Wed, 14 Jul 2021 21:18:43 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Juri Linkov [2021-07-15 02:32:14] wrote:
>> The problem with your original call is not the use of `popup-menu`
>> but the fact that it runs it from from a timer.
>
> So when the user wants the context menu to pop up after a delay then
>
> (push (cons 'context-menu (cdr event)) unread-command-events)
Yup.
> To pop up it immediately, I see no better way than currently
> is implemented for C-down-mouse-3 because then C-h k C-down-mouse-3
> works smoothly as well as Undo selected from the menu keeps undoing
> on consequent calls, etc.
Indeed. Maybe we can bring them together by (when
`mouse-3-down-context-menu` is t) using a remapping from `down-mouse-3`
to `context-menu`. It seems pretty intrusive, tho :-(
Maybe a better option is to make it so the `context-menu` event is kept
internal (give it a less attractive name), i.e. just an implementation
detail for the case where the menu pops up after a delay.
Stefan
Re: Context menus and mouse-3, Stefan Monnier, 2021/07/12
- Re: Context menus and mouse-3, Juri Linkov, 2021/07/12
- Re: Context menus and mouse-3, Stefan Monnier, 2021/07/12
- Re: Context menus and mouse-3, Juri Linkov, 2021/07/13
- Re: Context menus and mouse-3, Stefan Monnier, 2021/07/13
- Re: Context menus and mouse-3, Juri Linkov, 2021/07/14
- Re: Context menus and mouse-3,
Stefan Monnier <=
- Re: Context menus and mouse-3, Juri Linkov, 2021/07/15
- Re: Context menus and mouse-3, Stefan Monnier, 2021/07/16
- Re: Context menus and mouse-3, Juri Linkov, 2021/07/16
- Re: Context menus and mouse-3, Stefan Monnier, 2021/07/16
Re: Context menus and mouse-3, Eli Zaretskii, 2021/07/15
Re: Context menus and mouse-3, Juri Linkov, 2021/07/15
Re: Context menus and mouse-3, Eli Zaretskii, 2021/07/16
Re: Context menus and mouse-3, Juri Linkov, 2021/07/16
Re: Context menus and mouse-3, Stefan Kangas, 2021/07/16
Re: Context menus and mouse-3, Eli Zaretskii, 2021/07/17