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: Thu, 25 May 2006 22:34:26 -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 1148596841 14092 80.91.229.2 (25 May 2006 22:40:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 May 2006 22:40:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 26 00:40:38 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 1FjOVE-0008Mq-P0 for geh-help-gnu-emacs@m.gmane.org; Fri, 26 May 2006 00:40:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FjOVE-00047l-9U for geh-help-gnu-emacs@m.gmane.org; Thu, 25 May 2006 18:40:24 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!sn-xt-sjc-15!sn-xt-sjc-09!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: 50 Original-Xref: shelby.stanford.edu gnu.emacs.help:139625 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:35248 Archived-At: On 2006-05-25, J. David Boyd wrote: > Tim Johnson writes: > > Doing C-h f easy-menu-remove shows: > > easy-menu-remove-item is a compiled Lisp function in `easymenu.el'. > (easy-menu-remove-item map path name) Hi: I've looked that up already. But no examples are shown. So... from a menu with the name "Scheme", I wish to remove the item with the name "Compile Scheme File". Here's what I've tried: (easy-menu-remove-item scheme-mode-map '("Scheme") "Compile Scheme File") the evaluation returns nil, but the item remains. Other failed attempts indicate that emacs expects a series for 'path. It occurs to me that much of emacs documentation should provide more information about the datatypes required. If I evaluate C-h v scheme-mode-map I see something like this: (menu-bar keymap (scheme "Scheme" keymap ;; .... deleted (compile-file "Compile Scheme File" (nil) . scheme-compile-file) ;; ... deleted "Scheme")) The clue must be in there somewhere! :-) >>>From submenu of map with path path remove item name. > map and path are defined as in `easy-menu-add-item'. > name should be a string, the name of the element to be removed. I've looked at scheme.el and I can't locate the definition. Not even sure if easy-menu-* procedures are used (grep doesn't find easy-menu in any file that seems to be related or 'require'd to scheme) Thanks tim -- Tim Johnson http://www.alaska-internet-solutions.com