GNU bug report logs - #25861
25.1.91; error from js-mode indentation function

Previous Next

Package: emacs;

Reported by: Tom Tromey <tom <at> tromey.com>

Date: Fri, 24 Feb 2017 15:11:01 UTC

Severity: normal

Tags: patch

Found in version 25.1.91

Done: Tom Tromey <tom <at> tromey.com>

Bug is archived. No further changes may be made.

Full log


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

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Tom Tromey <tom <at> tromey.com>, 25861 <at> debbugs.gnu.org
Subject: Re: bug#25861: 25.1.91; error from js-mode indentation function
Date: Fri, 24 Feb 2017 18:37:22 +0200
On 24.02.2017 17:08, Tom Tromey wrote:

> While working on some JS code I noticed that when writing a certain
> file, I got a "scan-error" when I typed TAB.  I tracked this down to a
> buglet in js--indent-in-array-comp.
> 
> This patch fixes the problem by wrapping the call to forward-sexp there
> in a condition-case.  I've added a new test case as well.

Looks good, thanks. I guess we didn't notice it until now because most 
people use some kind of auto-pairing solution, like electric-pair-mode.




This bug report was last modified 8 years and 89 days ago.

Previous Next


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