Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Bug with Emacs mode for Ruby

Reply
Thread Tools

Bug with Emacs mode for Ruby

 
 
hemant
Guest
Posts: n/a
 
      10-23-2006
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.

 
Reply With Quote
 
 
 
 
Kevin Olemoh
Guest
Posts: n/a
 
      10-24-2006
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 <> 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.
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 3.12 Where can I get perl-mode or cperl-mode for emacs? PerlFAQ Server Perl Misc 0 04-12-2011 10:00 PM
FAQ 3.12 Where can I get perl-mode or cperl-mode for emacs? PerlFAQ Server Perl Misc 1 01-08-2011 01:02 PM
Emacs Ruby mode bug Jonathan Bale Ruby 1 07-22-2010 10:24 PM
eruby mode emacs with mmm-mode Jeffrey Moss Ruby 1 07-06-2005 05:03 AM
Emacs Ruby mode & indentation with the tab key wish/bug Moritz Bunkus Ruby 4 06-17-2004 02:12 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57