GNU bug report logs - #15208
24.3; ruby-mode indentation bug when line ends with :==

Previous Next

Package: emacs;

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

Date: Thu, 29 Aug 2013 15:48:01 UTC

Severity: normal

Found in version 24.3

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

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 15208 in the body.
You can then email your comments to 15208 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#15208; Package emacs. (Thu, 29 Aug 2013 15:48:02 GMT) Full text and rfc822 format available.

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

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

From: Bozhidar Batsov <bozhidar.batsov <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; ruby-mode indentation bug when line ends with
 :==
Date: Thu, 29 Aug 2013 18:46:10 +0300
[Message part 1 (text/plain, inline)]
Code like the following breaks the indentation logic of ruby-mode:

if something == :==
  do_something
end

ruby-mode wants to indent the code like this:

if something == :==
    do_something
end

Clearly the problem is that the `:==` symbol gets interpreted as `==`
operator and the second line is treated a statement
continuation. Probably other operators are affected as well.

In GNU Emacs 24.3.1 (x86_64-apple-darwin12.4.0, NS apple-appkit-1187.39)
 of 2013-08-12 on Bozhidars-MacBook-Pro.local
Windowing system distributor `Apple', version 10.3.1187
Configured using:
 `configure '--prefix=/usr/local/Cellar/emacs/24.3' '--without-dbus'
 '--enable-locallisppath=/usr/local/share/emacs/site-lisp'
 '--infodir=/usr/local/Cellar/emacs/24.3/share/info/emacs'
 '--without-gnutls' '--with-ns' '--disable-ns-self-contained' 'CC=cc''



-- 
Cheers,
Bozhidar

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

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15208; Package emacs. (Thu, 29 Aug 2013 18:08:01 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Bozhidar Batsov <bozhidar.batsov <at> gmail.com>
Cc: 15208 <at> debbugs.gnu.org
Subject: Re: bug#15208: 24.3; ruby-mode indentation bug when line ends with :==
Date: Thu, 29 Aug 2013 14:07:45 -0400
> Code like the following breaks the indentation logic of ruby-mode:
> if something == :==
>   do_something
> end

> ruby-mode wants to indent the code like this:

> if something == :==
>     do_something
> end

I installed a patch which should fix these cases when ruby-use-smie.


        Stefan




Reply sent to Dmitry Gutov <dgutov <at> yandex.ru>:
You have taken responsibility. (Tue, 03 Sep 2013 00:33:02 GMT) Full text and rfc822 format available.

Notification sent to Bozhidar Batsov <bozhidar.batsov <at> gmail.com>:
bug acknowledged by developer. (Tue, 03 Sep 2013 00:33:02 GMT) Full text and rfc822 format available.

Message #13 received at 15208-done <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 15208-done <at> debbugs.gnu.org, Bozhidar Batsov <bozhidar.batsov <at> gmail.com>
Subject: Re: bug#15208: 24.3; ruby-mode indentation bug when line ends with :==
Date: Tue, 03 Sep 2013 03:32:32 +0300
Version 24.4

Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
> I installed a patch which should fix these cases when ruby-use-smie.

Also fixed in the default indentation engine.




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

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

Previous Next


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