Emacs ruby-mode hanging

G

Guillaume Marcais

There must be an endless loop in ruby mode on Emacs. I enter the
following text:

case toto
when 1 ||

Then the cursor is on the line after 'when ...', I press Tab and it
hangs showing me an hour glass forever, eating up 100% of CPU!

$ emacs -version
GNU Emacs 21.1.1

ruby-mode is from ruby-1.8.1 distribution plus patch from
ruby-talk:90977.

Guillaume.
 
Y

Yukihiro Matsumoto

Hi,

In message "Emacs ruby-mode hanging"

|There must be an endless loop in ruby mode on Emacs. I enter the
|following text:
|
|case toto
|when 1 ||
|
|Then the cursor is on the line after 'when ...', I press Tab and it
|hangs showing me an hour glass forever, eating up 100% of CPU!

Hmm, Emacs 21.3.1 with ruby-mode.el from CVS HEAD works fine for me.

matz.
 
G

Guillaume Marcais

I just installed Emacs 21.3.1 and ruby-mode.el from CVS HEAD, it still
crashes for me.

Let me rephrase my original message as I realize it can be confusing.
The cursor has to be on the next line, on line 3 in the little example.
Then, when I press tab, it hangs. (With cursor on line 2, it is OK).

Can anybody reproduce this behavior?

Guillaume.
 
Y

Yukihiro Matsumoto

Hi,

In message "Re: Emacs ruby-mode hanging"

|Can anybody reproduce this behavior?

can you try this patch?

matz.

--- ruby-mode.el 27 Jan 2004 06:05:04 -0000 1.76
+++ ruby-mode.el 12 Feb 2004 21:16:04 -0000
@@ -804,3 +806,3 @@ An end of a defun is found by moving for
(if done
- (progn
+ (save-excursion
(back-to-indentation)
 
G

Guillaume Marcais

Hi,

In message "Re: Emacs ruby-mode hanging"

|Can anybody reproduce this behavior?

can you try this patch?

You are the man! It works!

Guillaume.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top