all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: uzibalqa <uzibalqa@proton.me>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: [External] : Re: From  global-set-key to keymap-global-set
Date: Wed, 05 Jul 2023 14:01:51 +0000	[thread overview]
Message-ID: <iesTkwRc7lin92rdjOlR9N2ASIzGZsCh-rd5fs-pWwlexjgKRBMEMMg6gQDzxtTr5tiABO8Wn2NcqmtnwNB1pG4f_qrcHScrZLHuf-BzlUg=@proton.me> (raw)
In-Reply-To: <838rbujxiz.fsf@gnu.org>

------- Original Message -------
On Thursday, July 6th, 2023 at 1:30 AM, Eli Zaretskii <eliz@gnu.org> wrote:


> > Date: Wed, 05 Jul 2023 12:02:54 +0000
> > From: uzibalqa uzibalqa@proton.me
> > Cc: help-gnu-emacs@gnu.org
> > 
> > ------- Original Message -------
> > On Wednesday, July 5th, 2023 at 11:34 PM, Eli Zaretskii eliz@gnu.org wrote:
> > 
> > > > 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-;")
> > > 
> > > I don't think I understand the question. What do you mean by "make an
> > > alternative map"?
> > 
> > Following up on Drew's "What's a command and its purported replacement",
> > are "keymap-set" and "keymap-global-set" supposed to accept the declarations
> > where command is actually a keymap like so
> > 
> > (keymap-set "C-;" "C-x C-;")
> > (keymap-global-set "C-;" "C-x C-;")
> > 
> > Which is intended to add the keymap "C-;" as an equivalence to "C-x C-;",'and
> > thusly having "C-;" as an alternative keymap to using "C-x C-;".
> 
> 
> Except that "C-x C-;" is not a keymap, so I still don't understand
> what are you asking about when you say "alternative keymap".

Drew has corrected me about the terminology.

I am quite confused with the following

(global-set-key KEY COMMAND)
(keymap-global-set KEY COMMAND)

(define-key KEYMAP KEY DEF &optional REMOVE)
(keymap-set KEYMAP KEY DEFINITION)

Previously one was able to add a Key Sequence KSQ as equivalent to a 
previously defined Key Sequence KSQ-ORIGINAL.   How would we do this 
now with "keymap-set" and "keymap-global-set" ? 







  reply	other threads:[~2023-07-05 14:01 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-04 16:35 From global-set-key to keymap-global-set uzibalqa
2023-07-04 16:44 ` Eli Zaretskii
2023-07-04 17:11   ` uzibalqa
2023-07-04 17:31   ` uzibalqa
2023-07-04 19:40     ` uzibalqa
2023-07-04 20:26       ` [External] : " Drew Adams
2023-07-04 20:39         ` uzibalqa
2023-07-05  9:44           ` uzibalqa
2023-07-05 11:34             ` Eli Zaretskii
2023-07-05 12:02               ` uzibalqa
2023-07-05 12:46                 ` uzibalqa
2023-07-05 12:56                 ` Drew Adams
2023-07-05 13:20                   ` uzibalqa
2023-07-05 13:30                 ` Eli Zaretskii
2023-07-05 14:01                   ` uzibalqa [this message]
2023-07-06  8:45                     ` Eli Zaretskii
2023-07-06 12:07                       ` uzibalqa
2023-07-06 13:53                         ` Eli Zaretskii
2023-07-06 14:24                           ` uzibalqa
2023-07-06 14:49                             ` Eli Zaretskii
2023-07-06 16:01                           ` uzibalqa
2023-07-04 18:41   ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='iesTkwRc7lin92rdjOlR9N2ASIzGZsCh-rd5fs-pWwlexjgKRBMEMMg6gQDzxtTr5tiABO8Wn2NcqmtnwNB1pG4f_qrcHScrZLHuf-BzlUg=@proton.me' \
    --to=uzibalqa@proton.me \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.