all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Multiple menus for the same event
Date: Mon, 23 Dec 2002 15:58:53 -0500	[thread overview]
Message-ID: <E18QZf3-0004p7-00@fencepost.gnu.org> (raw)
In-Reply-To: <200211122235.gACMZQc10235@rum.cs.yale.edu> (monnier+gnu/emacs/pretest@rum.cs.yale.edu)

    With Emacs-21.[123], if you do:

    > emacs -q --no-site-file -l checkdoc \
	    --eval '(progn
		     (define-key checkdoc-minor-mode-map [menu-bar emacs-lisp]
		       (cons "Elisp" (make-sparse-keymap "Elisp")))
		     (define-key checkdoc-minor-mode-map
				 [menu-bar emacs-lisp checkdoc]
		       (cons "Checkdoc" checkdoc-minor-menu)))' \
	    lisp/subr.el -f checkdoc-minor-mode

    you get an `Emacs-lisp' menu that contains two `emacs lisp' submenus:
    one is the original emacs-lisp menu and the other contains just a
    `checkdoc' entry which is itself a submenu.

    With the code on the trunk, this is not the case any more.  Instead,
    you get under `emacs-lisp' a menu with a single entry ...

I think I have fixed these problems.  Thanks.

The current behavior is not quite ideal, but I am not sure
how to make it better.  You will get better results if you do
this instead:

(define-key checkdoc-minor-mode-map
	    [menu-bar emacs-lisp]
	    (cons "Checkdoc"
	    	  (lookup-key checkdoc-minor-mode-map
		  	      [menu-bar checkdoc])))

           reply	other threads:[~2002-12-23 20:58 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <200211122235.gACMZQc10235@rum.cs.yale.edu>]

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=E18QZf3-0004p7-00@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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.