help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making new menu after Tools using keymap-set-after


From: Eli Zaretskii
Subject: Re: Making new menu after Tools using keymap-set-after
Date: Wed, 19 Jul 2023 19:33:31 +0300

> Date: Wed, 19 Jul 2023 15:58:10 +0000
> From: uzibalqa <uzibalqa@proton.me>
> 
> On Wednesday, July 19th, 2023 at 9:10 PM, Robert Pluim <rpluim@gmail.com> 
> wrote:
> 
> 
> > > > > > > On Wed, 19 Jul 2023 08:08:32 +0000, uzibalqa uzibalqa@proton.me 
> > > > > > > said:
> > 
> > 
> > uzibalqa> (defvar mcp-kdf (make-sparse-keymap "MCP"))
> > 
> > uzibalqa> (keymap-set-after global-map
> > 
> > uzibalqa> "<menu-bar> <mcp-topm>" (cons "MCP" mcp-kdf) 'tools)
> > 
> > 
> > uzibalqa> complains about 'tools
> > 
> > 
> > Works for me in emacs-30, it gives me an 'MCP' menu just after
> > Tools. What error are you seeing?
> > 
> > 
> > Robert
> > --
> 
> With GNU Emacs 29.0.50, I get 
> 
> Debugger entered--Lisp error: (error "tools is not a valid key definition; 
> see ‘key-valid-p’")

If this is in "emacs -Q", you probably have a broken snapshot of Emacs
29, the above works with the current emacs-29 branch.  If "emacs -Q"
does work, then maybe some of your customizations cause the problem.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]