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: uzibalqa
Subject: RE: [External] : Re: From global-set-key to keymap-global-set
Date: Tue, 04 Jul 2023 20:39:00 +0000

------- Original Message -------
On Wednesday, July 5th, 2023 at 8:26 AM, Drew Adams <drew.adams@oracle.com> 
wrote:


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

Right.  Your suggestion made as direct request here.  
 
> 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]