From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: add-menu-button: Xemacs to emacs Date: Wed, 16 Mar 2005 18:14:19 +0100 Organization: Organization?!? Message-ID: References: <113fe2sp42d3mdc@news.supernews.com> <113gpnckupr53e6@news.supernews.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110994191 24082 80.91.229.2 (16 Mar 2005 17:29:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 16 Mar 2005 17:29:51 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 16 18:29:51 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DBc6W-0003Ma-Gm for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Mar 2005 18:14:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DBcMe-00029Q-3K for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Mar 2005 12:31:24 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-X-Trace: individual.net hwlTKPjNjgQo1AAv+DmqpQ1PYUnSMaYGPXHF+QtxrZVT+PM7pb X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:i38AEu9UZdu61WCl1wvrO+W/geM= Original-Xref: shelby.stanford.edu gnu.emacs.help:129326 Original-To: help-gnu-emacs@gnu.org 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: news.gmane.org gmane.emacs.help:24880 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24880 Tim Johnson writes: > David Kastrup wrote: >> Tim Johnson writes: > >>>I am in the process of transitioning from Xemacs to emacs. >>>I have code that uses the xemacs 'add-menu-button function. >>>Emacs does not recognize this function. > >>>1)The simple question is: >>> What is the corresponding emacs function to add a menu > Hello David: > Thanks for the example. This is very valuable and is what > I needed for that issue. I should have mentioned that LaTeX-mode-map in that example is a keymap in the relevant mode: menus in XEmacs are bound to "locales" (which is why you need the easy-menu-add to activate them in some buffer), whereas menus in Emacs are bound to keymaps. So the easy-menu-* functions require a keymap as one argument, even though the implementation for XEmacs will most likely ignore it. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum