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

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

RE: [External] : Re: From global-set-key to keymap-global-set


From: Drew Adams
Subject: RE: [External] : Re: From global-set-key to keymap-global-set
Date: Tue, 4 Jul 2023 20:26:00 +0000

> > What does one do to replace
> >
> > (global-set-key (kbd "C-;") (kbd "C-x C-;"))
> 
> I tried
> 
> (keymap-global-set "C-;" "C-x C-;")
> 
> and it sets C-; to the command that's bound to C-x C-;
> 
> The doc string of keymap-global-set doesn't say clearly that argument
> COMMAND can be a key description (what kbd returns) of a key sequence bound to
> some command.  I recommend an improved description.

FWIW, that's quoting me, until your "I recommend...".

https://emacs.stackexchange.com/a/77865

Someone may correct me.  A quick look at the doc strings
and manuals indicated to me that some things aren't yet
specified clearly.

reply via email to

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