all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim Johnson <tim@johnsons-web.com>
Subject: Re: How to delete item from menu bar
Date: Thu, 25 May 2006 22:34:26 -0000	[thread overview]
Message-ID: <slrne7ccsb.ols.tim@linus.johnson.com> (raw)
In-Reply-To: mailman.2291.1148590548.9609.help-gnu-emacs@gnu.org

On 2006-05-25, J. David Boyd <david@adboyd.com> wrote:
> Tim Johnson <tim@johnsons-web.com> 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<RET>
 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 <tim@johnsons-web.com>
      http://www.alaska-internet-solutions.com

  parent reply	other threads:[~2006-05-25 22:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-25 18:23 How to delete item from menu bar Tim Johnson
2006-05-25 20:55 ` J. David Boyd
     [not found] ` <mailman.2291.1148590548.9609.help-gnu-emacs@gnu.org>
2006-05-25 22:34   ` Tim Johnson [this message]
2006-05-26 15:24 ` Kevin Rodgers
     [not found] ` <mailman.2321.1148657145.9609.help-gnu-emacs@gnu.org>
2006-05-26 18:01   ` Tim Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrne7ccsb.ols.tim@linus.johnson.com \
    --to=tim@johnsons-web.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.