|
From: | Dmitry Gutov |
Subject: | Re: Moving kbd to subr.el |
Date: | Tue, 19 Oct 2021 17:00:38 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 19.10.2021 16:38, Lars Ingebrigtsen wrote:
I think Stefan K suggested making a whole new set of all these functions that would only understand the new syntax. I didn't think that would be doable, because there's so many of them, but I didn't actually count. Let's see... define-keymap define-key global-set-key global-unset-key local-set-key local-unset-key lookup-key OK, that's fewer than I thought. So, new random thought: kbd-keymap kbd-define kbd-set-globally kbd-unset-globally kbd-set-locally kbd-unset-locally kbd-lookup
Perhaps one alternative is to warn about "outdated" syntax in the linter (which is currently part of the byte-compiler). It won't catch all uses, but enough of them to warn the vast majority of users.
[Prev in Thread] | Current Thread | [Next in Thread] |