From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How does command remapping actually work?
Date: Thu, 29 Jul 2021 09:24:22 +0300 [thread overview]
Message-ID: <83r1fhskmh.fsf@gnu.org> (raw)
In-Reply-To: <877dh9em99.fsf@mbork.pl> (message from Marcin Borkowski on Thu, 29 Jul 2021 07:12:50 +0200)
> From: Marcin Borkowski <mbork@mbork.pl>
> Date: Thu, 29 Jul 2021 07:12:50 +0200
>
> I experimented a bit with command remapping, and it's great - but how
> does it actually work? I mean, apparently it doesn't change the keymap,
> and it's not stored in its symbol plist, so where is the remapping info
> actually stored? IOW, what is changed when I evaluate things like
>
> (define-key my-mode-map [remap kill-line] 'my-kill-line)
The 'remap' pseudo-key works via special handling in the low-level
keymap code, see the source of where-is-internal in keymap.c (search
for "Qremap").
next prev parent reply other threads:[~2021-07-29 6:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-29 5:12 How does command remapping actually work? Marcin Borkowski
2021-07-29 6:24 ` Eli Zaretskii [this message]
2021-07-30 16:17 ` Marcin Borkowski
2021-07-29 22:34 ` Michael Heerdegen
2021-07-30 16:17 ` Marcin Borkowski
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=83r1fhskmh.fsf@gnu.org \
--to=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.