GNU bug report logs - #77369
typescript-ts-mode's defun definition is wrong

Previous Next

Package: emacs;

Reported by: Daniel Colascione <dancol <at> dancol.org>

Date: Sat, 29 Mar 2025 18:18:01 UTC

Severity: normal

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Yuan Fu <casouri <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 77369-done <at> debbugs.gnu.org, dancol <at> dancol.org, juri <at> linkov.net
Subject: bug#77369: typescript-ts-mode's defun definition is wrong
Date: Thu, 3 Apr 2025 22:54:17 -0700

> On Apr 3, 2025, at 12:56 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> 
>> From: Yuan Fu <casouri <at> gmail.com>
>> Date: Thu, 3 Apr 2025 00:46:04 -0700
>> Cc: Daniel Colascione <dancol <at> dancol.org>,
>> Juri Linkov <juri <at> linkov.net>,
>> 77369 <at> debbugs.gnu.org
>> 
>>> On Apr 3, 2025, at 12:30 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>>> 
>>>> From: Daniel Colascione <dancol <at> dancol.org>
>>>> Date: Sat, 29 Mar 2025 14:17:15 -0400
>>>> 
>>>> Not sure whether this is a bug or just surprising design, but in this
>>>> code:
>>>> 
>>>>   function Blah(foo) {
>>>>     const foo = 1;
>>>>     const bar = 2;
>>>>   }
>>>> 
>>>> with point on "const foo", I do not expect end-of-defun to go to "const
>>>> bar".  I expect it to go to the closing curly brace.
>>> 
>>> Juri and Yuan, any comments or suggestions?
>> 
>> I pushed a fix for it. Maybe my message got lost?
> 
> Or maybe I missed it, in which case my apologies.
> 
>> Though now that I think of it, I should’ve pushed the fix to emacs-30 instead of master...
> 
> Yes, please backport to emacs-30, and thanks.

Cool, backported to emacs-30.

Yuan





This bug report was last modified 103 days ago.

Previous Next


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