all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Neon Absentius <absent@sdf.lonestar.org>
Subject: Re: How to bind pop up menu to a key?
Date: Sat, 26 Feb 2005 10:06:45 +0000	[thread overview]
Message-ID: <20050226100645.GA8709@SDF.LONESTAR.ORG> (raw)
In-Reply-To: <1109052990.467199.86400@l41g2000cwc.googlegroups.com>

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

      reply	other threads:[~2005-02-26 10:06 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
     [not found]   ` <mailman.969.1109039160.32256.help-gnu-emacs@gnu.org>
2005-02-22  6:16     ` rgb
2005-02-26 10:06       ` Neon Absentius [this message]

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

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

  git send-email \
    --in-reply-to=20050226100645.GA8709@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.