GNU bug report logs - #51926
29.0.50; Narrow to defun fails with Javascript async functions

Previous Next

Package: emacs;

Reported by: Matthias Meulien <orontee <at> gmail.com>

Date: Wed, 17 Nov 2021 20:12:02 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Matthias Meulien <orontee <at> gmail.com>
Cc: 51926 <at> debbugs.gnu.org
Subject: Re: bug#51926: 29.0.50; Narrow to defun fails with Javascript async
 functions
Date: Sat, 20 Nov 2021 10:21:50 +0100
Matthias Meulien <orontee <at> gmail.com> writes:

> Unfortunately it has improved but it doesn't always work as
> expected. With a buffer with following content:
>
> async function test() {
>     // cursor here
> }
>
> it now works when cursor is on the first line ("async function test...")
> AND not after the opening brace. After that brace, on first line or
> second line, it fails...

Hm, I thought I had tested that case...  Oh!  When fixing a compilation
warning, I messed up that code path.  This should work better now.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 187 days ago.

Previous Next


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