unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: Multiple menus for the same event
       [not found] <200211122235.gACMZQc10235@rum.cs.yale.edu>
@ 2002-12-23 20:58 ` Richard Stallman
  0 siblings, 0 replies; only message in thread
From: Richard Stallman @ 2002-12-23 20:58 UTC (permalink / raw)
  Cc: emacs-devel

    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])))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-23 20:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200211122235.gACMZQc10235@rum.cs.yale.edu>
2002-12-23 20:58 ` Multiple menus for the same event Richard Stallman

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).