[#955] Ruby 1.4.3 — Yukihiro Matsumoto <matz@...>
Ruby 1.4.3 is out, check out:
1 message
1999/12/07
[#961] Ruby compileable by C++ compiler? — Clemens Hintze <c.hintze@...>
Hi,
8 messages
1999/12/10
[#962] Re: Ruby compileable by C++ compiler?
— matz@... (Yukihiro Matsumoto)
1999/12/10
Hi,
[#963] Re: Ruby compileable by C++ compiler?
— Clemens Hintze <clemens.hintze@...>
1999/12/10
Wei,
[#964] Bastion or SecurityManager for Ruby? — Clemens Hintze <clemens.hintze@...>
Hi,
15 messages
1999/12/10
[#966] Re: Bastion or SecurityManager for Ruby?
— nakajima kengo<ringo@...>
1999/12/10
Hello Clemens,
[#967] Re: Bastion or SecurityManager for Ruby?
— matz@... (Yukihiro Matsumoto)
1999/12/10
Hi,
[#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:00958] Re: ruby-mode
From:
Yasushi Shoji <yashi@...>
Date:
1999-12-08 22:32:52 UTC
List:
ruby-talk #958
From: Yasushi Shoji <yashi@yashi.com>
Subject: [ruby-talk:00957] ruby-mode
Date: Wed, 08 Dec 1999 14:39:50 -0500
> 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.
oops, it was broken here too.
following code is working for me. (i didn't know how to fix the
original code, so i re-wrote a portion of it. ;p but i still have a
problem. when the indentation level is 8, function 'indent-to' seems
to insert a tab, not white spaces. is this considered a bug?
--
yashi
(defun ruby-indent-to (x)
(if x
(let (shift top beg offset)
(and (< x 0) (error "invalid nest"))
(setq shift (current-column))
(beginning-of-line)
(setq beg (point))
(back-to-indentation)
(setq top (current-column))
(skip-chars-backward " \t")
(setq offset (- shift top))
(if (not (= top x))
(progn
(move-to-column top)
(delete-region beg (point))
(beginning-of-line)
(indent-to x)))
(if (> offset 0)
(move-to-column (+ offset x))
(move-to-column x)))))