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: uzibalqa
Subject: Re: Making new menu after Tools using keymap-set-after
Date: Wed, 19 Jul 2023 21:00:22 +0000

------- Original Message -------
On Thursday, July 20th, 2023 at 4:33 AM, Eli Zaretskii <eliz@gnu.org> wrote:


> > 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.

Got the function to work by installing emacs-30.0.50.1




reply via email to

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