GNU bug report logs - #24854
[js-mode] Wrong indentation in line after regexp literal

Previous Next

Package: emacs;

Reported by: James Yang <jamesyang999 <at> gmail.com>

Date: Tue, 1 Nov 2016 23:42:02 UTC

Severity: normal

Found in versions 25.1, 23.4

Fixed in version 25.2

Done: Dmitry Gutov <dgutov <at> yandex.ru>

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: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 24854 <at> debbugs.gnu.org, jamesyang999 <at> gmail.com
Subject: bug#24854: 25.1; indent error with regexp
Date: Wed, 16 Nov 2016 18:22:29 +0200
> From: Dmitry Gutov <dgutov <at> yandex.ru>
> Date: Tue, 15 Nov 2016 02:04:45 +0200
> 
> > var re = /some value/
> >
> >  str.match(re)
> >
> >
> > 4. You can see line 2 will have indent, which should not.
> >
> >
> > I also report it to this url: https://github.com/mooz/js2-mode/issues/382
> 
> Thanks for the report. The patch is attached.
> 
> Eli, would you allow this for 25.2? It's not a regression, but the fix 
> is simple.

The patch for js.el is okay for emacs-25, but please install the test
addition on master, to avoid problems due to renaming in the test
suite.

Thanks.




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

Previous Next


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