emacs-devel
[Top][All Lists]
Advanced

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

Re: Call for volunteers: add tree-sitter support to major modes


From: Theodor Thornhill
Subject: Re: Call for volunteers: add tree-sitter support to major modes
Date: Tue, 11 Oct 2022 21:28:53 +0200


On 11 October 2022 21:20:18 CEST, Philip Kaludercic <philipk@posteo.net> wrote:
>Lars Ingebrigtsen <larsi@gnus.org> writes:
>
>> Theodor Thornhill <theo@thornhill.no> writes:
>>
>>> How about deprecating typescript.el the moment the 29.1 branch is cut?
>>> After we can but some sort of structure in place for the two to coexist?
>>
>> It doesn't work that way -- people will have the old typescript-mode in
>> their ~/.emacs.d/elpa/ files for years still to come, and things will
>> just be messy.
>>
>> So I think the way forward here would be to just plonk the new code into
>> the package, but choose totally different code paths depending on
>> whether we're in Emacs 29 (and have tree-sitter) or not.  Then you can
>> start removing the non-tree-sitter code from the file afterwards.
>
>Perhaps I missed something, but why not just name the new mode 'ts-mode'
>(just like we jave 'js-mode' not 'javascript-mode')?

Lol very nice. Consider it done :)

Theo



reply via email to

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