> I'would also like that the pacakge can get into GNU ELPA, but IMO the
> problem would be the contributions since i think it could limit it
> (due paperwork), also since this package is a fork of another
> one [ts-fold][https://github.com/emacs-tree-sitter/ts-fold] i don't know
> if it could be a problem, Jen-Chieh what do you think about this?.

I am unsure since I have not submitted packages to GNU ELPA or non-GNU ELPA.
As seven people (including myself) have made contributions to more than 15 LOC,
I assumed we would need to get them all to sign the paperwork. 

- jcs090218 (+12,214/-8,638) - signed
- Junyi Hou (+402/-39)
- Nidish96 (+215/-107)
- samrjack (+567/-258)
- DevelopmentCool2449 (+434/-360)
- mattiasdrp (+199/-90)
- akirak (+29/-2)


On Mon, Jul 1, 2024 at 8:25 PM Elijah G. <eg642616@gmail.com> wrote:
Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Thanks for working on this! Treesit-fold is quite useful and through.
>> It’ll be a great addition to NonGNU ELPA or ELPA!
>
> I just added it to `nongnu.git`.  It should hopefully appear at NonGNU
> later today.
>
> I see that there are very few other contributors beside Jen-Chieh Shen
> (the main author).  Since he signed the copyright paperwork, it might
> not be too hard to get this into GNU ELPA.

I'would also like that the pacakge can get into GNU ELPA, but IMO the
problem would be the contributions since i think it could limit it
(due paperwork), also since this package is a fork of another
one [ts-fold][https://github.com/emacs-tree-sitter/ts-fold] i don't know
if it could be a problem, Jen-Chieh what do you think about this?.

> Another thing I noticed: just as for the EditorConfig thingy, this package
> comes with a `<blabla>-alist` holding per-major-mode information which
> should ideally be provided directly by the major modes rather than by
> the package.  But just as with the EditorConfig thingy, the package did
> not come with a variable which the major mode can set buffer-locally for
> that purpose.  Not sure how we can encourage such a design, tho.

I'm not understanding this, but if the major mode (-ts-modes) comes with
a variable for the treesitter nodes folding (like something that maybe
hideshow can use) maybe it can be possible use the
variable instead define them, the problem that i see is the
compatibility with emacs-29.

something like this?:
```
(defvar c-ts-mode-nodes-alist '((compound_statement . treesit-fold-range-seq) (declaration_list . treesit-fold-range-seq) (enumerator_list . treesit-fold-range-seq) (field_declaration_list . treesit-fold-range-seq) (preproc_if . treesit-fold-range-c-preproc-if) (preproc_ifdef . treesit-fold-range-c-preproc-ifdef) (preproc_elif . treesit-fold-range-c-preproc-elif) (preproc_else . treesit-fold-range-c-preproc-else) (comment . treesit-fold-range-c-like-comment)))
```

--
E.G. from Gnus The Emacs Newsreader and E-mail client