From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: How to delete item from menu bar Date: Fri, 26 May 2006 18:01:38 -0000 Organization: Alaska Internet Solutions Message-ID: References: Reply-To: tim@johnsons-web.com NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1148668844 16195 80.91.229.2 (26 May 2006 18:40:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 26 May 2006 18:40:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 26 20:40:42 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FjhEg-0002dW-Do for geh-help-gnu-emacs@m.gmane.org; Fri, 26 May 2006 20:40:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FjhEf-00061t-Rp for geh-help-gnu-emacs@m.gmane.org; Fri, 26 May 2006 14:40:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!sn-xt-sjc-03!sn-xt-sjc-07!sn-post-sjc-01!supernews.com!news.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.8.0 (Linux) Original-X-Complaints-To: abuse@supernews.com Original-Lines: 25 Original-Xref: shelby.stanford.edu gnu.emacs.help:139630 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 Xref: news.gmane.org gmane.emacs.help:35253 Archived-At: On 2006-05-26, Kevin Rodgers wrote: > Tim Johnson wrote: >> I'd like to delete an item from the menu bar. >> It may or it may not be created by an easy-menu function. >> >> Specifically, the item "Scheme" in scheme-mode. >> >> How may I do that? > > (define-key scheme-mode-map [menu-bar scheme] nil) Yes. That did it. I did find that 'easy-menu-remove-item *does* work for menu items created with 'easy-menu-define Example: Menu "Foos", items "Foo1", "Foo2", .... (easy-menu-remove-item nil '("Foo") "Foo1") ;; remove item (easy-menu-remove-item nil '() "Foo") ;; remove menu Thanks Kevin tj -- Tim Johnson http://www.alaska-internet-solutions.com