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: Wed, 05 Jul 2023 09:44:41 +0000

------- Original Message -------
On Wednesday, July 5th, 2023 at 8:39 AM, uzibalqa <uzibalqa@proton.me> wrote:


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

Eli, are we meant to use keymap-global-set this way in order 
to make an alternative keymap ?

(keymap-global-set "C-;" "C-x C-;")





reply via email to

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