GNU bug report logs - #74448
30.0.92; c-ts-mode outlines only work with GNU or emacs style

Previous Next

Package: emacs;

Reported by: Filippo Argiolas <filippo.argiolas <at> gmail.com>

Date: Wed, 20 Nov 2024 22:23:01 UTC

Severity: normal

Found in version 30.0.92

Fixed in version 31.0.50

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Filippo Argiolas <filippo.argiolas <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: 74448 <at> debbugs.gnu.org
Subject: bug#74448: 30.0.92; c-ts-mode outlines only work with GNU or emacs style
Date: Sun, 02 Feb 2025 08:57:23 +0100
Juri Linkov <juri <at> linkov.net> 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




This bug report was last modified 191 days ago.

Previous Next


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