From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.help Subject: Re: easy menu Date: Sat, 05 Apr 2003 10:23:03 +0200 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1049531422 7175 80.91.224.249 (5 Apr 2003 08:30:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 5 Apr 2003 08:30:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 05 10:30:18 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 191j46-0001r7-00 for ; Sat, 05 Apr 2003 10:30:18 +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 191izX-0001ou-03 for gnu-help-gnu-emacs@m.gmane.org; Sat, 05 Apr 2003 03:25:35 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.telebyte.nl!news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; 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:8188 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8188 Bruce Ingalls writes: > 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 don't know about easy-menu, but this works: (define-key-after menu-bar-file-menu [a2ps] '("a2ps Print Buffer" . a2ps-buffer) 'ps-print-buffer)