emacs-devel
[Top][All Lists]
Advanced

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

Re: Unifying "foo-mode"s and "foo-ts-mode"s


From: Richard Stallman
Subject: Re: Unifying "foo-mode"s and "foo-ts-mode"s
Date: Mon, 02 Jan 2023 23:07:49 -0500

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > And the features based on tree-sitter are not limited to
  > fontifications, they also support indentation, navigation by defun and
  > other language-dependent program components, and Imenu indices of
  > functions, structures, etc.  Each one of these needs to change quite a
  > few functions and variables of the particular major mode to switch
  > between tree-sitter and the "traditional" ways, and we also needed to
  > introduce a lot of new data structures that are not needed for the
  > "traditional" modes.

I know.  I don't think that precludes having tree-sitter be a minor
mode.  The major mode command could set some variables that are used
only when tree-sitter is off, and other variables that are used only
when tree-sitter is on.

  >   I considered that to be "a bridge too far", and
  > instead decided to go with a safer, simpler alternative that we have
  > now.

It sounds like you consider the current design as a _temporary_
expedient.  If that's what it is, maybe writing this first was a good
idea.

I'm talking about how the code should work after there is time to take
stock and clean it up.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





reply via email to

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