[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to bind pop up menu to a key?
From: |
Neon Absentius |
Subject: |
Re: How to bind pop up menu to a key? |
Date: |
Sat, 26 Feb 2005 10:06:45 +0000 |
User-agent: |
Mutt/1.4.2.1i |
On Mon, Feb 21, 2005 at 10:16:30PM -0800, rgb wrote:
> Between this function and the Emacs Lisp Reference manual you can
> probably find a way to create the appropriate event.
>
> (defun event-test (event)
> (interactive "@e")
> (message "Event = %s" event)
> )
> (global-set-key [S-mouse-3] 'event-test)
>
> >From what returned above I was able to get the menu to pop up.
> See below. Looks promising. The word `keyboard' was made up.
> The above said S-mouse-3 like you'd expect.
>
> M-: (mouse-popup-menubar `(keyboard (,(selected-window)
> 248 (126 . 104) 70080603
> nil 248 (15 . 6) nil
> (6 . 8) (8 . 16))) ()) <ret>
>
Thank you, this was very useful.
I haven't had to time to pay any serious attention to this, but today
I played little bit bit with it and it looks promising.
If anything comes out of it I'll post.
--
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