[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How does command remapping actually work?
From: |
Eli Zaretskii |
Subject: |
Re: How does command remapping actually work? |
Date: |
Thu, 29 Jul 2021 09:24:22 +0300 |
> 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").