unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Neon Absentius <absent@sdf.lonestar.org>
Subject: Re: How to bind pop up menu to a key?
Date: Tue, 22 Feb 2005 02:05:53 +0000	[thread overview]
Message-ID: <20050222020553.GE19034@SDF.LONESTAR.ORG> (raw)
In-Reply-To: <1109019418.5316.3.camel@c83-250-202-177.bredband.comhem.se>

On Mon, Feb 21, 2005 at 09:56:58PM +0100, August wrote:
> On mΓ₯n, 2005-02-21 at 01:45 +0000, Neon Absentius wrote:
> > Hello
> > 
> > I like to turn the menu bar off since most of the time I don't use
> > it. However now and then --especially when I am trying a new
> > package-- I like to use the menu for easy reference. When I am in 
> > X I prefer to use the C-mouse3 binding that pop's up a nice menu with
> > the contents of the menu bar. I hate to leave the keyboard to reach
> > for the rodent though. Is there some way to bind this to a key? 
> 
> (menu-bar-mode nil)
> (global-set-key [C-mouse-3] 'mouse-popup-menubar)

Thanks for your answer. I am afraid I didn't express my self very
clearly. I want to bind the mouse-popup-menubar to a keyboard enent,
*not* to C-mouse-3 which is the default binding. When I try

(global-set-key (kbd "M-<f1>") 'mouse-popup-menubar)

for example, and then I press M-<F1> I get the message 

      mouse-popup-menubar must be bound to an event with parameters

The mouse-popup-menubar seems to be the right action since when I unbind 
the [C-mouse-3] and then rebind it again it works as before.


> 
> > Also is it possible to navigate the pop-up menus with the keyboard?
> 
> Don't know. If you use C-mouse-3 for the menu then you already have your
> hand on the mouse, so why use the keyboard?
> 

Yes, but I want to have the popup menu from the keyboard to begin
with.

-- 
Charity in capitalism is like urinating to extinguish a forest fire.
    -- Neon Absentius
absent a.in.cirle sdf period lonestar period org
SDF Public Access UNIX System - http://sdf.lonestar.org

  reply	other threads:[~2005-02-22  2:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-21  1:45 How to bind pop up menu to a key? Neon Absentius
2005-02-21 20:56 ` August
2005-02-22  2:05   ` Neon Absentius [this message]
     [not found]   ` <mailman.969.1109039160.32256.help-gnu-emacs@gnu.org>
2005-02-22  6:16     ` rgb
2005-02-26 10:06       ` Neon Absentius

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050222020553.GE19034@SDF.LONESTAR.ORG \
    --to=absent@sdf.lonestar.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).