Professional Web Applications Themes

Emacs ruby-mode hanging - Ruby

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....

  1. #1

    Default 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!

    $ emacs -version
    GNU Emacs 21.1.1

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

    Guillaume.



    Guillaume Guest

  2. #2

    Default Re: Emacs ruby-mode hanging

    Hi,

    In message "Emacs ruby-mode hanging"
    on 04/02/12, Guillaume Marcais <fr> writes:

    |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.


    Yukihiro Guest

  3. #3

    Default Re: Emacs ruby-mode hanging

    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.

    On Wed, 2004-02-11 at 19:34, Yukihiro Matsumoto wrote: 




    Guillaume Guest

  4. #4

    Default Re: Emacs ruby-mode hanging

    Hi,

    In message "Re: Emacs ruby-mode hanging"
    on 04/02/13, Guillaume Marcais <fr> writes:

    |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)


    Yukihiro Guest

  5. #5

    Default Re: Emacs ruby-mode hanging

    On Thu, 2004-02-12 at 18:24, Yukihiro Matsumoto wrote: 

    You are the man! It works!

    Guillaume.




    Guillaume Guest

Similar Threads

  1. emacs startup/wordstar-mode
    By Thomas Bartkus in forum Ubuntu
    Replies: 0
    Last Post: April 11th, 03:49 PM
  2. Replies: 5
    Last Post: December 28th, 08:01 AM
  3. Python indentation for Ruby under Emacs
    By Xavier Noria in forum Ruby
    Replies: 2
    Last Post: August 24th, 08:39 PM
  4. emacs, speedbar, php-mode
    By Spencer Thiel in forum PHP Development
    Replies: 0
    Last Post: July 30th, 06:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139