[Top][All Lists]

[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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]