[#964] Bastion or SecurityManager for Ruby? — Clemens Hintze <clemens.hintze@...>

Hi,

15 messages 1999/12/10

[#989] a question about to_i — Friedrich Dominicus <Friedrich.Dominicus@...>

Sorry, I'm quite new to ruby. But I encounterd the following problem. If

17 messages 1999/12/19

[ruby-talk:00957] ruby-mode

From: Yasushi Shoji <yashi@...>
Date: 1999-12-08 19:39:50 UTC
List: ruby-talk #957
hi all,

just found a bug in ruby-mode.el, but unfortunately I'm not an elisp
hacker so I'll just report what I found.

it has revision number 1.7.  it seems to me that it's the latest
version in the cvs, last time I checked (a few minute ago)

The problem is in indentation.  say you have following ruby source

def foo
  hoge = fuga + 1
 ^--- put your cursor here.

and hitting tab moves your cursor to the column 4, on the char 'o'.

Edebug shows me that around line 183 of ruby-mode.el: 

>(if (and (bolp)
>         (= x top))
>    (move-to-column (+ x shift))

x and shift is added, where 'shift' is the current column and 'x' is
the return value of the function 'ruby-calculate-indent'.

this is as far as I could go.  just replacing "(+ x shift)" to "x"
seems working here.  but not sure this is the right fix or not.

regards,
--
              yashi

In This Thread

Prev Next