GNU bug report logs - #15369
24.3; Incorrect indentation after line continuation character in ruby-mode

Previous Next

Package: emacs;

Reported by: Bozhidar Batsov <bozhidar <at> batsov.com>

Date: Fri, 13 Sep 2013 15:57:02 UTC

Severity: normal

Found in version 24.3

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15369 in the body.
You can then email your comments to 15369 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15369; Package emacs. (Fri, 13 Sep 2013 15:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Bozhidar Batsov <bozhidar <at> batsov.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 13 Sep 2013 15:57:02 GMT) Full text and rfc822 format available.

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

From: Bozhidar Batsov <bozhidar <at> batsov.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; Incorrect indentation after line continuation character
 in ruby-mode
Date: Fri, 13 Sep 2013 16:59:26 +0300
[Message part 1 (text/plain, inline)]
The line continuation character is not properly treated by ruby-mode. Here's how the indentation after `\` works now:

MSG = 'Separate every 3 digits in the integer portion of a number' \
'with underscores(_).'


Pretty sure the second line should be indented one level, since we're continuing the statement from the previous line:

MSG = 'Separate every 3 digits in the integer portion of a number' \
  'with underscores(_).'


-- 
Cheers,
Bozhidar

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15369; Package emacs. (Sun, 15 Sep 2013 23:47:02 GMT) Full text and rfc822 format available.

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

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Bozhidar Batsov <bozhidar <at> batsov.com>
Cc: 15369 <at> debbugs.gnu.org
Subject: Re: bug#15369: 24.3;
 Incorrect indentation after line continuation character in ruby-mode
Date: Mon, 16 Sep 2013 02:46:19 +0300
Version: 24.4

Bozhidar Batsov <bozhidar <at> batsov.com> writes:
> The line continuation character is not properly treated by ruby-mode.
> Here's how the indentation after `\` works now:
>
> MSG = 'Separate every 3 digits in the integer portion of a number' \
> 'with underscores(_).'
>
> Pretty sure the second line should be indented one level, since we're
> continuing the statement from the previous line:
>
> MSG = 'Separate every 3 digits in the integer portion of a number' \
> 'with underscores(_).'

Fixed in 114298.

But it could break some edge cases, so please be on lookout for that.




bug marked as fixed in version 24.4, send any further explanations to 15369 <at> debbugs.gnu.org and Bozhidar Batsov <bozhidar <at> batsov.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 16 Sep 2013 02:10:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 14 Oct 2013 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 205 days ago.

Previous Next


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