From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: [h-e-w] easymenu question (fwd) Date: Mon, 16 Aug 2010 16:09:48 +0200 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1291858995 7913 80.91.229.12 (9 Dec 2010 01:43:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 01:43:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 02:43:10 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQVXK-0001id-I5 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 02:43:10 +0100 Original-Received: from localhost ([127.0.0.1]:45365 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQVXK-0001vm-3W for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 20:43:10 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Injection-Date: Mon, 16 Aug 2010 14:09:49 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="oKbO7i5sn9rXNz6dz1T5SA"; logging-data="24085"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19quycwWCEaeVcmvU6NKukm" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:aJL6bFK7rX/xX4lG2PcH5obMRqI= sha1:Z79SPg2APPdjaz7PZCAStiwDAxc= Original-Xref: usenet.stanford.edu gnu.emacs.help:180756 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 Xref: news.gmane.org gmane.emacs.help:76405 Archived-At: >> I am using easymenu.el to create major-mode-specific menus. The following >> code in my .emacs does create the desired "XQuery" menu. However, it >> positions the XQuery menu as the first (i.e. left-most) menu. I would like >> to be able to position it as the right-most, or, better yet, to place it >> in any arbitrary position relative to the other menus. Can anyone help? >> >>   (easy-menu-define my-menu global-map "XQUERY" The above line places the menu in the global-map. I.e. it will appear in every buffer, no matter which major mode it is in (so if you want it to be major-mode-specific, it's probably not the right thing to do). The place where it appears is partly controllable, but not completely: it largely depends on whether it comes from global-map, from the major-mode map, or from a minor-mode map. Within those strong constraints you can influence the position by controlling where in the global-map, major-mode map, or minor-mode map they appear (typically via the use of define-key-after or easy-menu-add-item), as well as via menu-bar-final-items. Stefan