[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#59305: 29.0.50; keymap-global-set handling of string bindings differ
From: |
Eli Zaretskii |
Subject: |
bug#59305: 29.0.50; keymap-global-set handling of string bindings different from global-set-key |
Date: |
Thu, 02 May 2024 12:01:41 +0300 |
> Cc: Lars Ingebrigtsen <larsi@gnus.org>, 59305@debbugs.gnu.org
> From: Robert Pluim <rpluim@gmail.com>
> Date: Fri, 26 Apr 2024 16:34:29 +0200
>
> >>>>> On Thu, 15 Dec 2022 09:42:46 +0100, Robert Pluim <rpluim@gmail.com>
> >>>>> said:
>
>
> Robert> Then perhaps we should just change the docstrings and manual to
> Robert> explain that binding a key to a string of characters should use
> Robert> `kmacro' (since `kbd' is not the right thing for ASCII-only entry)
>
> I was going to write 'Stefan why did you overwrite my patch', but itʼs
> me who didnʼt follow up :-)
>
> Changing `kbd' to always return a vector, attractive as it is to the
> purist in me, falls foul of existing code that expects eg `(kbd
> "RET")' to return a string (and thatʼs just in Emacsʼ code). I guess
> we could add an 'always produce a vector' argument to `kbd', but
> perhaps just recommending `kmacro' is best, since itʼs a fairly niche
> usage.
>
> This is against emacs-29
Stefan, any comments?
- bug#59305: 29.0.50; keymap-global-set handling of string bindings different from global-set-key,
Eli Zaretskii <=