GNU bug report logs - #62825
29.0.90; c-ts-mode doesn't recognize DEFUN functions

Previous Next

Package: emacs;

Reported by: Eli Zaretskii <eliz <at> gnu.org>

Date: Fri, 14 Apr 2023 06:45:01 UTC

Severity: normal

Found in version 29.0.90

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Yuan Fu <casouri <at> gmail.com>
Cc: theo <at> thornhill.no, 62825 <at> debbugs.gnu.org
Subject: bug#62825: 29.0.90; c-ts-mode doesn't recognize DEFUN functions
Date: Sun, 16 Apr 2023 11:14:25 +0300
> From: Yuan Fu <casouri <at> gmail.com>
> Date: Sat, 15 Apr 2023 22:37:02 -0700
> Cc: 62825 <at> debbugs.gnu.org,
>  theo <at> thornhill.no
> 
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Thanks.  But I wonder why do we need the c-ts-mode-emacs-devel knob.
> > Why not recognize DEFUN by default everywhere?  CC Mode does that,
> > AFAIK, so why shouldn't c-ts-mode do the same?
> 
> I just thought the fix is a bit hacky, and does add some overhead, so
> people who don’t need it might not be happy to know that they can’t turn
> it off.

OK, but I made it into a defcustom and turned this on by default.  I
also renamed a few symbols, please take a look.

Btw, should the code you added to c-ts-mode--defun-name recognize
DEFUN nodes only when this variable is non-nil?




This bug report was last modified 2 years and 62 days ago.

Previous Next


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