From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bruce Ingalls Newsgroups: gmane.emacs.help Subject: easy menu Date: Sat, 05 Apr 2003 07:35:42 GMT Organization: Road Runner - NYC Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1049528613 30508 80.91.224.249 (5 Apr 2003 07:43:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 5 Apr 2003 07:43:33 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 05 09:43:31 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 191iKp-0007vp-00 for ; Sat, 05 Apr 2003 09:43:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 191iI3-0002pt-02 for gnu-help-gnu-emacs@m.gmane.org; Sat, 05 Apr 2003 02:40:39 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!24.30.200.11!news-east.rr.com!news-server.columbus.rr.com!cyclone.rdc-nyc.rr.com!news-out.nyc.rr.com!twister.nyc.rr.com.POSTED!not-for-mail User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.3) Gecko/20030314 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: 24.168.135.82 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.nyc.rr.com 1049528142 24.168.135.82 (Sat, 05 Apr 2003 02:35:42 EST) Original-NNTP-Posting-Date: Sat, 05 Apr 2003 02:35:42 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:111685 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8187 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8187 I am trying to get a2ps-print to add to Emacs's existing Files menu, using easy-menu. (easy-menu-add-item nil '("files") '(nil ["a2ps Print Buffer" a2ps-buffer t])) The problem is the " '(nil" in the second line. How do I tell easy-menu to put this in the File menu, and not a submenu? I'd like put in a 'before' arg, to place this before the "Postscript Print Buffer" menu item. Here, XEmacs tends to do the right thing, naming the menu item the same as the text that it displays. In other words, I have to track down the actual name of this menu item, which is likely "postscript", and then figure out the non portable difference from what XEmacs calls this. This makes me wonder, since easymenu has portability problems, if it has any advantage over using native menu code. Thanks ahead!