[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Moving kbd to subr.el
From: |
Juri Linkov |
Subject: |
Re: Moving kbd to subr.el |
Date: |
Tue, 19 Oct 2021 10:02:49 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
>> The old string syntax for keys just sucks and we should work towards
>> its reduction, even if it will stay with us for the foreseeable future.
>
> I totally agree that the old string syntax for keys sucks, but there is
> no realistic way to phase it out. `kbd' was a nice attempt, but it's
> not attractive enough as is. My hope is that the new syntax (which
> gives you actual error messages if you do something wrong and stuff)
> will spur conversion.
The first step to phase the old syntax out would be to use the new syntax
in define-keymap and defvar-keymap by default.
This is nicer:
"P" #'cvs-status-prev
"M-n" #'cvs-status-next
"M-p" #'cvs-status-prev
"t" #'cvs-status-cvstrees
than this:
:kbd nil
"P" #'cvs-status-prev
["M-n"] #'cvs-status-next
["M-p"] #'cvs-status-prev
"t" #'cvs-status-cvstrees
- RE: [External] : Re: Moving kbd to subr.el, (continued)
- Re: Moving kbd to subr.el, Stefan Monnier, 2021/10/18
- Re: Moving kbd to subr.el, Lars Ingebrigtsen, 2021/10/18
- Re: Moving kbd to subr.el, Stefan Monnier, 2021/10/18
- Re: Moving kbd to subr.el, Stefan Kangas, 2021/10/18
- Re: Moving kbd to subr.el, Stefan Monnier, 2021/10/18
- Re: Moving kbd to subr.el, Eli Zaretskii, 2021/10/18
- Re: Moving kbd to subr.el, Lars Ingebrigtsen, 2021/10/18
- Re: Moving kbd to subr.el,
Juri Linkov <=
- Re: Moving kbd to subr.el, Gregory Heytings, 2021/10/19
- Re: Moving kbd to subr.el, Philip Kaludercic, 2021/10/19
- Re: Moving kbd to subr.el, Gregory Heytings, 2021/10/19
- RE: [External] : Re: Moving kbd to subr.el, Drew Adams, 2021/10/19
- RE: [External] : Re: Moving kbd to subr.el, Stefan Kangas, 2021/10/19
- RE: [External] : Re: Moving kbd to subr.el, Drew Adams, 2021/10/19
- RE: [External] : Re: Moving kbd to subr.el, Drew Adams, 2021/10/19
- Re: Moving kbd to subr.el, Richard Stallman, 2021/10/20
- Re: Moving kbd to subr.el, Richard Stallman, 2021/10/20
- Re: Moving kbd to subr.el, Po Lu, 2021/10/21