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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#23815: closed (24.5; Ruby indentation incorrect when class
 has a member called "module")
Date: Tue, 21 Jun 2016 16:45:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 21 Jun 2016 19:44:10 +0300
with message-id <d5fe606b-46d9-de5a-3bf2-162337ea96a6 <at> yandex.ru>
and subject line Re: bug#23815: 24.5; Ruby indentation incorrect when class has a member called "module"
has caused the debbugs.gnu.org bug report #23815,
regarding 24.5; Ruby indentation incorrect when class has a member called "module"
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
23815: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23815
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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


[Message part 3 (message/rfc822, inline)]
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.


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.