[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Bug with Emacs mode for Ruby

hemant

10/23/2006 3:42:00 PM

There seems to be a bug with Emacs mode of Ruby:

For example:
I have following three statements and Emacs behaves quite differently
with each of them

# this work pretty fine actually
return 1 if @chunked_data !~ /SESSID/


# indentation is pretty screwed up actually
return $& if @chunked_data !~ /SESSID/
# Emacs thinks this as the beginning of the next statement

#again indentation of subsequent lines get screwed up
return "hi" if @chunked_data =~ /(?:SESSID=)(\w+)(?:,|\#\#)/
# Emacs thinks this as the beginning of the next statement




--
There was only one Road; that it was like a great river: its springs
were at every doorstep, and every path was its tributary.

1 Answer

Kevin Olemoh

10/24/2006 4:09:00 AM

0

Could you post a link to a screenshot of the behavior of Emacs on your
machine? I think I may have experienced something simillar but I am
not entirely sure.

On 10/23/06, hemant <gethemant@gmail.com> wrote:
> There seems to be a bug with Emacs mode of Ruby:
>
> For example:
> I have following three statements and Emacs behaves quite differently
> with each of them
>
> # this work pretty fine actually
> return 1 if @chunked_data !~ /SESSID/
>
>
> # indentation is pretty screwed up actually
> return $& if @chunked_data !~ /SESSID/
> # Emacs thinks this as the beginning of the next statement
>
> #again indentation of subsequent lines get screwed up
> return "hi" if @chunked_data =~ /(?:SESSID=)(\w+)(?:,|\#\#)/
> # Emacs thinks this as the beginning of the next statement
>
>
>
>
> --
> There was only one Road; that it was like a great river: its springs
> were at every doorstep, and every path was its tributary.
>
>