emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some developement questions


From: Eli Zaretskii
Subject: Re: Some developement questions
Date: Thu, 06 Sep 2018 16:52:09 +0300

> From: Michael Heerdegen <address@hidden>
> Date: Thu, 06 Sep 2018 03:33:56 +0200
> Cc: Filipp Gunbin <address@hidden>, address@hidden
> 
> Before considering that, note that you don't need to use the menu bar to
> access the menu bar menu.  You can make the menu accessible as a pop up
> menu like in
> 
> #+begin_src emacs-lisp
> (defun my-mouse-menu-bar-menu ()
>   (interactive)
>   (popup-menu `("Do" ("Menu Bar" ,@(mouse-menu-bar-map)))))
> 
> (global-set-key [(control down-mouse-3)] #'my-mouse-menu-bar-menu)
> #+end_src

When the menu-bar is disabled, C-mouse-3 pops up the same menu as a
popup, so no Lisp is necessary to get to the global menus.

> or use a text interface to access the menu - there is a builtin one
> called `tmm-menubar'.

Emacs nowadays supports menus even on TTY frames, so no need to use
tmm-menubar (unless one wants to, of course).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]