[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Representing key sequences
From: |
Stefan Monnier |
Subject: |
Re: Representing key sequences |
Date: |
Wed, 13 Oct 2021 12:28:50 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> I agree with regards to A and C, but I was not aware of the difference
> between B and D. Could you show an example of the difference between
> B and D, and explain how the latter is more preferable?
(B) is for example [?\C-\M-x C-home]
(D) would be [(control meta x) (control home)]
Notice how you don't need to know that one is a char whereas the other
is a "non-char key".
> Also, in which situations can we currently use B but not D?
(B) and derivatives is used internally everywhere
(e.g. `read-key-sequence`), whereas (D) is only supported for
`define-key` and friends.
Stefan
- Re: Moving kbd to subr.el, (continued)
- Re: Moving kbd to subr.el, Andreas Schwab, 2021/10/14
- Re: Moving kbd to subr.el, Stefan Kangas, 2021/10/14
- Re: Moving kbd to subr.el, Dmitry Gutov, 2021/10/14
- Re: Moving kbd to subr.el, dick, 2021/10/14
- Re: Moving kbd to subr.el, Dmitry Gutov, 2021/10/14
- Re: Moving kbd to subr.el, dick, 2021/10/14
- Re: Moving kbd to subr.el, Lars Ingebrigtsen, 2021/10/14
- Re: Moving kbd to subr.el, Gregory Heytings, 2021/10/14
- Representing key sequences (was: master 859190f 2/3: Convert some keymaps to defvar-keymap), Stefan Monnier, 2021/10/13
- Re: Representing key sequences (was: master 859190f 2/3: Convert some keymaps to defvar-keymap), Stefan Kangas, 2021/10/13
- Re: Representing key sequences,
Stefan Monnier <=
- Re: Representing key sequences, Lars Ingebrigtsen, 2021/10/13
- Re: Representing key sequences, Lars Ingebrigtsen, 2021/10/13
- Re: Representing key sequences, Andreas Schwab, 2021/10/13
- Re: master 859190f 2/3: Convert some keymaps to defvar-keymap, Gregory Heytings, 2021/10/13
- Re: master 859190f 2/3: Convert some keymaps to defvar-keymap, Lars Ingebrigtsen, 2021/10/13
- Re: master 859190f 2/3: Convert some keymaps to defvar-keymap, Gregory Heytings, 2021/10/13
- Re: master 859190f 2/3: Convert some keymaps to defvar-keymap, Lars Ingebrigtsen, 2021/10/13
- Re: master 859190f 2/3: Convert some keymaps to defvar-keymap, Eli Zaretskii, 2021/10/13
- Re: master 859190f 2/3: Convert some keymaps to defvar-keymap, Gregory Heytings, 2021/10/13
- Re: master 859190f 2/3: Convert some keymaps to defvar-keymap, Eli Zaretskii, 2021/10/13