Subject: Re: bug#74448: 30.0.92; c-ts-mode outlines only work with GNU or emacs style

From: Filippo Argiolas <[email-masked]>
Date: Sun, 02 Feb 2025 08:57:23 +0100

Juri Linkov <[email-masked]> writes:

>> Feel free to improve on this if you decide to install it
>
> Hi, Filippo.
>
> Do you remember why we removed this condition from
> 'c-ts-mode--defun-name':
>
>   (equal (treesit-node-type (treesit-node-parent node))
>          "function_definition")

Hi Juri,

Sorry for the late reply!

Don't remember the exact reason, seems a mistake looking at it
now. Probably got lost while trying to find a good matcher for
declarators and didn't have stand-alone prototypes in my test case to
show the issue.

I'd say to restore that check. Did a brief test here and it does not
seem to break anything else.

Filippo