emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving kbd to subr.el


From: Stefan Monnier
Subject: Re: Moving kbd to subr.el
Date: Fri, 15 Oct 2021 12:05:52 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> because it probably means that we (at some point in the future) can
>> drop the string representation altogether (as a return value from
>> `kbd').
> Hmm, I'd like to hear what Stefan Monnier has to say about this.

FWIW, I removed the `need-vector` arg (and simplified the code
accordingly assuming it's always non-nil) and haven't found any
problems, so the uses that aren't prepared to handle a string return
value seem quite rare (tho Murphy swears they exist).

> A good first step should in any case be to say in the 'kbd' docstring
> that the string syntax is considered obsolete, and that callers should
> prepare to handle a vector return value instead.  Perhaps we could
> document this already in emacs-28.

Fine by me,


        Stefan




reply via email to

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