|
From: | Dmitry Gutov |
Subject: | Re: Make all tree-sitter modes optional |
Date: | Tue, 17 Jan 2023 20:21:18 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
On 17/01/2023 20:04, Eli Zaretskii wrote:
Date: Tue, 17 Jan 2023 19:59:04 +0200 Cc:casouri@gmail.com,monnier@iro.umontreal.ca,larsi@gnus.org, theo@thornhill.no,jostein@secure.kjonigsen.net,emacs-devel@gnu.org From: Dmitry Gutov<dgutov@yandex.ru> I also don't fully understand the benefits of your proposal. Suppose we apply it. You talked about how easier it will be to document the new behaviors if all ts modes are consistent. Okay. What are we going to say in that documentation? Let's say there are two users, Bob and Alice. Bob has tried out yaml-ts-mode and wants to use it regularly. Alice has tried out js-ts-mode and also wants to use it from now on. What will be our recommendations for them to make that happen?That's already in the patch that I posted. Suggestions for improving it are welcome.
This part, right? +The new modes based on tree-sitter are for now entirely optional, and +you must turn them on manually, or load them in your init file, or +customize 'auto-mode-alist' to turn them on automatically for certain +files.I thought there would be something more in the docs, given that the new behavior is unusual.
But I see you are referring to auto-mode-alist here, modifying which will still be necessary for js-ts-mode and python-ts-mode. Which will touch a lot of users, possibly even the majority of tree-sitter enthusiasts, given that JS and Python are some of the most popular languages these days.
And yet you rejected my counter-proposal claiming (if I got your position right) that modying auto-mode-alist is difficult/annoying/etc for an average user. To quote:
- Customizing auto-mode-alist is not the easiest task, it requires good knowledge of Emacs regexps and alists. So asking anyone who wants to try using the tree-sitter modes to do that is not the best idea from the POV of user-friendliness. So which is it?To "try out" tree-sitter modes, the users can 'M-x js-ts-mode' or etc either way. But to switch to the said mode, they will need to deal with auto-mode-alist, again, without any alternative.
[Prev in Thread] | Current Thread | [Next in Thread] |