GNU bug report logs - #60427
Emacs-29, c++-ts-mode: typing "char" into an empty buffer causes an exception in redisplay.

Previous Next

Package: emacs;

Reported by: Alan Mackenzie <acm <at> muc.de>

Date: Fri, 30 Dec 2022 12:25:01 UTC

Severity: normal

Full log


Message #23 received at 60427 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alan Mackenzie <acm <at> muc.de>
Cc: acm <at> muc.de, casouri <at> gmail.com, 60427 <at> debbugs.gnu.org
Subject: Re: bug#60427: Emacs-29, c++-ts-mode: typing "char" into an empty
 buffer causes an exception in redisplay.
Date: Sat, 31 Dec 2022 13:05:57 +0200
> Date: Sat, 31 Dec 2022 10:29:21 +0000
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 60427 <at> debbugs.gnu.org, acm <at> muc.de
> From: Alan Mackenzie <acm <at> muc.de>
> 
> As you mentioned, the backtrace now looks a bit different, namely:
> 
> Error: treesit-query-error ("Node type error at" 195 "[\"break\" \"case\" \"co

Yuan, what is "195" in this error message?  According to the source
code, its is "error_offset+1", but what is that?  If it's a buffer
position, then how come we see 195 when the buffer has only "char" in
it?




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

Previous Next


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