[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master f3aa648: Make `lookup-key' understand the new key sequence sy
From: |
Lars Ingebrigtsen |
Subject: |
Re: master f3aa648: Make `lookup-key' understand the new key sequence syntax |
Date: |
Tue, 19 Oct 2021 15:40:57 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> I think your `possibly_translate_key_sequence` should be extended to
> cover the XEmacs format as well, And it should be exported to ELisp.
lookup-key/define-key already understands that format, but mixes the
interpretation into the code itself.
(lookup-key (current-global-map) [(control x) (control f)])
=> find-file
Pulling it out of the code and putting it into
possibly_translate_key_sequence would be fine, I think.
> And I'd argue it should also convert strings to vectors.
Sure.
> Oh and also convert [M-C-next] to [C-M-next].
Uhm... I'm not sure what the impact would be...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no