[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: |
Fri, 16 Jul 2021 15:25:36 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> (global-set-key [down-mouse-3]
>> (lambda (event)
>> (interactive "e")
>> (execute-kbd-macro (vector `(context-menu . ,(cdr event))))))
>>
>> ??
>
> Nope, this doesn't fly. Then for debugging tried:
>
> (global-set-key [context-menu]
> (lambda (&rest args) (interactive) (message "=> %S" args)))
>
> (global-set-key [down-mouse-3]
> (lambda (event)
> (interactive "e")
> (execute-kbd-macro (vector `(context-menu . ,(cdr event))))))
Then I guess the only way that will work is if the rewrite from `down-mouse-3`
to `context-menu` is performed directly via
`input-decode-map/function-key-map/key-translation-map`.
Of course, you can also forgo rewriting to `context-menu` and
have the `down-mouse-3` event directly bring up the menu.
Stefan
- Re: Context menus and mouse-3, (continued)
- 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, 2021/07/14
- 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 <=
- 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
- Re: Context menus and mouse-3, Juri Linkov, 2021/07/17
- Re: Context menus and mouse-3, Eli Zaretskii, 2021/07/17
- Re: Context menus and mouse-3, Stefan Kangas, 2021/07/19
- Re: Context menus and mouse-3, Stefan Monnier, 2021/07/19