GNU bug report logs - #23815
24.5; Ruby indentation incorrect when class has a member called "module"

Previous Next

Package: emacs;

Reported by: <Jesper.Eskilson <at> iar.com>

Date: Tue, 21 Jun 2016 15:28:01 UTC

Severity: normal

Found in version 24.5

Fixed in version 25.1

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 23815 in the body.
You can then email your comments to 23815 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#23815; Package emacs. (Tue, 21 Jun 2016 15:28:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to <Jesper.Eskilson <at> iar.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 21 Jun 2016 15:28:01 GMT) Full text and rfc822 format available.

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

From: <Jesper.Eskilson <at> iar.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 24.5;
 Ruby indentation incorrect when class has a member called "module"
Date: Tue, 21 Jun 2016 15:57:22 +0200
Hello,

If a ruby file contains the following (valid) Ruby code:

class Foo
  def foo()
    @module = ""
     end
  end

The Ruby emacs mode fails to realize that @module is a member, and
instead thinks it is a module.

--
Jesper Eskilson
jesper.eskilson <at> iar.com




Reply sent to Dmitry Gutov <dgutov <at> yandex.ru>:
You have taken responsibility. (Tue, 21 Jun 2016 16:45:02 GMT) Full text and rfc822 format available.

Notification sent to <Jesper.Eskilson <at> iar.com>:
bug acknowledged by developer. (Tue, 21 Jun 2016 16:45:02 GMT) Full text and rfc822 format available.

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

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Jesper.Eskilson <at> iar.com, 23815-done <at> debbugs.gnu.org
Subject: Re: bug#23815: 24.5; Ruby indentation incorrect when class has a
 member called "module"
Date: Tue, 21 Jun 2016 19:44:10 +0300
Version: 25.1

Hi Jesper,

On 06/21/2016 04:57 PM, Jesper.Eskilson <at> iar.com wrote:
> If a ruby file contains the following (valid) Ruby code:
>
> class Foo
>   def foo()
>     @module = ""
>      end
>   end
>
> The Ruby emacs mode fails to realize that @module is a member, and
> instead thinks it is a module.

It looks fixed in emacs-25, although I can't fixed the exact commit that 
did it now.

Please try out a pre-release snapshot of Emacs 25 when you have the chance.




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

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

Previous Next


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