GNU bug report logs - #65182
29.1.50; c-ts-mode wants to outdent brace

Previous Next

Package: emacs;

Reported by: Robert Pluim <rpluim <at> gmail.com>

Date: Wed, 9 Aug 2023 15:25:01 UTC

Severity: normal

Tags: wontfix

Found in version 29.1.50

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Yuan Fu <casouri <at> gmail.com>
Cc: 65182 <at> debbugs.gnu.org, rpluim <at> gmail.com
Subject: bug#65182: 29.1.50; c-ts-mode wants to outdent brace
Date: Sat, 12 Aug 2023 10:22:15 +0300
tags 65182 wontfix
close 65182
thanks

> From: Yuan Fu <casouri <at> gmail.com>
> Date: Thu, 10 Aug 2023 14:55:52 -0700
> Cc: Robert Pluim <rpluim <at> gmail.com>,
>  65182 <at> debbugs.gnu.org
> 
> It’s the same problem: tree-sitter grammar can’t meaningfully parse directives. Whatever in the directives are severed from the main parse tree. And to give you guys an explanation, the bracket is outdented because the if part isn’t taken into consideration, and the bracket is outdented against bracket one level higher.
> 
> 	      else
> 		{            <--------- outdented against this
> #ifdef HAVE_GNUTLS   
> 		  /* If we have an incompletely set up TLS connection,
> 		     then defer the sentinel signaling until
> 		     later. */
> 		  if (NILP (p->gnutls_boot_parameters) <---- the if is ignored
> 		      && !p->gnutls_p)
> #endif
> 		    {       <------------- outdented
> 		      pset_status (p, Qrun);
> 		      /* Execute the sentinel here.  If we had relied on
> 			 status_notify to do it later, it will read input
> 			 from the process before calling the sentinel.  */
> 		      exec_sentinel (proc, build_string ("open\n"));
> 		    }

I don't see this as a serious problem for Emacs (the braces could be
outdented to prevent it), so I'm closing this bug.




This bug report was last modified 1 year and 266 days ago.

Previous Next


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