From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Neon Absentius Newsgroups: gmane.emacs.help Subject: Re: How to bind pop up menu to a key? Date: Sat, 26 Feb 2005 10:06:45 +0000 Message-ID: <20050226100645.GA8709@SDF.LONESTAR.ORG> References: <20050221014530.GD19034@SDF.LONESTAR.ORG> <1109019418.5316.3.camel@c83-250-202-177.bredband.comhem.se> <1109052990.467199.86400@l41g2000cwc.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1109412535 23381 80.91.229.2 (26 Feb 2005 10:08:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 26 Feb 2005 10:08:55 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 26 11:08:55 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D4ysR-00030V-Va for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Feb 2005 11:08:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D4zAM-0006Zv-39 for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Feb 2005 05:27:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D4z52-0005r4-VW for help-gnu-emacs@gnu.org; Sat, 26 Feb 2005 05:21:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D4z4x-0005qI-Dx for help-gnu-emacs@gnu.org; Sat, 26 Feb 2005 05:21:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D4z4t-0005pO-Mn for help-gnu-emacs@gnu.org; Sat, 26 Feb 2005 05:21:40 -0500 Original-Received: from [192.94.73.21] (helo=sdf.lonestar.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D4yqb-0003Tj-B6 for help-gnu-emacs@gnu.org; Sat, 26 Feb 2005 05:06:53 -0500 Original-Received: from sdf.lonestar.org (IDENT:absent@otaku.freeshell.org [192.94.73.2]) by sdf.lonestar.org (8.13.1/8.12.10) with ESMTP id j1QA6jYr021427 for ; Sat, 26 Feb 2005 10:06:45 GMT Original-Received: (from absent@localhost) by sdf.lonestar.org (8.13.1/8.12.8/Submit) id j1QA6jsN017850 for help-gnu-emacs@gnu.org; Sat, 26 Feb 2005 10:06:45 GMT Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: Neon Absentius , help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <1109052990.467199.86400@l41g2000cwc.googlegroups.com> User-Agent: Mutt/1.4.2.1i X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24366 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24366 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))) ()) > 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