A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://lists.gnu.org/archive/html/emacs-devel/2022-11/msg01344.html below:

Re: Tree-sitter and major mode inheritance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] From: Eli Zaretskii Subject: Re: Tree-sitter and major mode inheritance Date: Sun, 20 Nov 2022 16:49:49 +0200
> Date: Sun, 20 Nov 2022 15:22:40 +0200
> Cc: casouri@gmail.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca,
>  theo@thornhill.no
> From: Dmitry Gutov <dgutov@yandex.ru>
> 
> > This is a
> > fragile assumption, so code which is based on it is broken and should be
> > fixed.
> 
> Okay then, but then we'll need to learn another way to ask that 
> question.

I guess.  I admit I didn't know derived-mode-p was being used for such
tests.

Would it make sense to use alternatives, as in

  (or (derived-mode-p 'js-mode)
      (derived-mode-p 'js-ts-mode))

?

Or maybe we should add a new predicate, which will take a LANGUAGE argument,
and use some database of known modes internally to call derived-mode-p as
above?



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4