help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: easy menu


From: Bruce Ingalls
Subject: Re: easy menu
Date: Sat, 05 Apr 2003 12:59:26 GMT
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.3) Gecko/20030314

Hm. Well that's better than the code that I already have working for Emacs
and XEmacs. However, your code won't work on XEmacs.
I thought that easy menu was the better way to go, because it is more
portable, and more forwards compatible.

Jesper Harder wrote:
Bruce Ingalls <bingalls@CUT-this-SPAM-BLOCK.fit-zones.com> 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]