unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Philip Kaludercic <philipk@posteo.net>
Cc: emacs-devel@gnu.org, casouri@gmail.com
Subject: Re: Unifying "foo-mode"s and "foo-ts-mode"s
Date: Fri, 30 Dec 2022 17:52:41 +0200	[thread overview]
Message-ID: <83sfgw6g8m.fsf@gnu.org> (raw)
In-Reply-To: <87fscw9av0.fsf@posteo.net> (message from Philip Kaludercic on Fri, 30 Dec 2022 15:20:35 +0000)

> From: Philip Kaludercic <philipk@posteo.net>
> Cc: emacs-devel@gnu.org,  casouri@gmail.com
> Date: Fri, 30 Dec 2022 15:20:35 +0000
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > I think we want to let the users say, for every single mode, whether
> > they want to use the treesit-enabled variant or not, and also to be
> > able to go back to the non-treesit mode later in the session (e.g., if
> > they don't like the results).  A list is not a convenient means for
> > doing so.
> 
> How come?  When presented in the customise interface we could make it
> out to be a set where users get to pick what modes they want.  And
> updating the value works fine whenever a mode is re-applied.

The need to manipulate a list when all I want is to turn on or off a
single feature is a nuisance.

> > What does this mean in user-facing behavior?  Does it mean that if
> > tree-sitter is not available, or the Python grammar fails to load for
> > some reason, Emacs will silently fall back to the "traditional"
> > python-mode?  If so, I don't think this is what we want.  The failure
> > for loading tree-sitter support should not be silent.
> 
> I am not sure why?  Tree-sitter is an improvement in that it allows
> Emacs to provide better highlighting and knowledge of the syntax, but in
> the end it isn't something you think about actively -- or even should
> have to think about.This is all backend stuff that doesn't interest the
> casual user.  I strongly believe that the principle of "graceful
> degradation" is the right approach here.

You assume a lot here.  First you assume that everyone will see
tree-sitter as an improvement -- that is not a given, and moreover can
vary from language to language.  Second, you assume that whether
tree-sitter is used doesn't interest the user -- again, not a given.
Especially since we currently ask users to install the grammar
libraries.

Your strong beliefs in this matter are noted, but I don't share them,
and think that we should collect actual user experience before we make
such significant decisions.

Btw, you were previously expressing concerns about the risk of
committing to some strategy too early -- well, I think what you
propose will commit us to some strategy much more than what we have
now.

> And in the end, if the tree-sitter support is hidden behind new modes, I
> know already that most people (who don't use starter packs) will never
> notice their existence and won't make use of the support.  There are
> people still using linum-mode, even though display-line-numbers-mode has
> been around for a while.

There's a world of difference between tree-sitter support and a minor
feature such as display-line-numbers-mode.  Just look at Reddit as one
example.

I'm sure tree-sitter will be very visible to users.

> > These are exactly the aspects of the behavior we discussed a month
> > ago, and what we have now is the result of those discussions.
> 
> Could you point me to the thread(s)?  I did not have the time to follow
> the threads in detail a month ago.

Sorry, I don't have them ready and cannot afford looking them up: too
many things on my plate.  Perhaps someone else will do that.



  reply	other threads:[~2022-12-30 15:52 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-29 17:08 Need for "-ts-mode" modes Philip Kaludercic
2022-12-29 17:42 ` Eli Zaretskii
2022-12-29 18:26   ` Philip Kaludercic
2022-12-29 19:27     ` Yuan Fu
2022-12-29 19:42       ` Eli Zaretskii
2022-12-30  4:05         ` Richard Stallman
2022-12-30  8:49           ` Eli Zaretskii
2022-12-29 19:57     ` Eli Zaretskii
2022-12-29 20:23       ` Eli Zaretskii
2022-12-30 10:58       ` Unifying "foo-mode"s and "foo-ts-mode"s Philip Kaludercic
2022-12-30 12:50         ` Theodor Thornhill
2022-12-30 13:08           ` Philip Kaludercic
2022-12-30 13:19             ` Theodor Thornhill
2022-12-30 15:02               ` Philip Kaludercic
2022-12-30 15:24                 ` Theodor Thornhill
2022-12-30 15:45                   ` Philip Kaludercic
2022-12-30 15:42                 ` Eli Zaretskii
2022-12-30 15:57                   ` Philip Kaludercic
2022-12-30 16:20                     ` Eli Zaretskii
2022-12-30 16:39                       ` Philip Kaludercic
2022-12-30 17:05                         ` Eli Zaretskii
2022-12-31  0:13                           ` Philip Kaludercic
2022-12-31  6:38                             ` Eli Zaretskii
2022-12-30 15:02         ` Eli Zaretskii
2022-12-30 15:20           ` Philip Kaludercic
2022-12-30 15:52             ` Eli Zaretskii [this message]
2022-12-30 16:09               ` Philip Kaludercic
2022-12-30 16:30                 ` Stefan Monnier
2022-12-30 17:03                   ` Eli Zaretskii
2023-01-01  3:03                   ` Richard Stallman
2023-01-01  7:28                     ` Eli Zaretskii
2023-01-03  4:07                       ` Richard Stallman
2023-01-03 12:11                         ` Eli Zaretskii
2023-01-05  3:34                           ` Richard Stallman
2022-12-30 17:10                 ` Gregory Heytings

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83sfgw6g8m.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=casouri@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=philipk@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).