[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Pop up context menu (at point) with <menu> key rather than mouse
From: |
N. Jackson |
Subject: |
Re: Pop up context menu (at point) with <menu> key rather than mouse |
Date: |
Sat, 10 Nov 2018 12:11:08 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
At 21:29 +0200 on Friday 2018-11-09, Eli Zaretskii wrote:
>
> From mouse.el:
>
> ;; By binding these to down-going events, we let the user use the up-going
> ;; event to make the selection, saving a click.
> (global-set-key [C-down-mouse-1] 'mouse-buffer-menu)
> (if (not (eq system-type 'ms-dos))
> (global-set-key [S-down-mouse-1] 'mouse-appearance-menu))
> ;; C-down-mouse-2 is bound in facemenu.el.
> (global-set-key [C-down-mouse-3]
> `(menu-item ,(purecopy "Menu Bar") ignore
> :filter (lambda (_)
> (if (zerop (or (frame-parameter nil 'menu-bar-lines) 0))
> (mouse-menu-bar-map)
> (mouse-menu-major-mode-map)))))
Hmm... where is `menu-item' defined?
C-h f menu-item RET
=> [No match]
C-h r i menu-item RET
=> No `menu-item' in index
C-u M-x xref-find-definitions RET menu-item RET
=> No definitions found for: menu-item