GNU bug report logs - #74610
31.0.50; Submitting mhtml-ts-mode, treesitter alternative to mhtml-mode

Previous Next

Package: emacs;

Reported by: Vincenzo Pupillo <v.pupillo <at> gmail.com>

Date: Fri, 29 Nov 2024 21:58:01 UTC

Severity: wishlist

Fixed in version 31.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


Message #58 received at 74610 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Vincenzo Pupillo <v.pupillo <at> gmail.com>
Cc: Yuan Fu <casouri <at> gmail.com>, Eli Zaretskii <eliz <at> gnu.org>,
 74610 <at> debbugs.gnu.org
Subject: Re: bug#74610: 31.0.50; Submitting mhtml-ts-mode, treesitter
 alternative to mhtml-mode
Date: Wed, 15 Jan 2025 09:50:06 +0200
> this is an updated version of mhtml-ts-mode. 

Thanks.  Please also attach a new version of the mhtml-ts-mode.el file.

> I have tried to reduce as much as possible copies of parts of the major modes 
> from which it is derived.
>
> To do this, I had to move some values that were assigned directly to treesit's 
> own variables  (in ccs-mode.el, in js.el, and in html-ts-mode.el) into new 
> variables. 

I had a thought that maybe for treesit-thing-settings we could have
a global registry like auto-mode-alist, not a buffer-local value.
Then modes could just add own info to it. e.g.

(add-to-list 'treesit-thing-global-settings
             '(javascript (sentence ...)))

This can be shared between embedded ts-modes.




This bug report was last modified 98 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.