From: Yasushi Abe Date: 2000-01-18T14:23:11+09:00 Subject: [ruby-list:20258] Re: ruby-mode.el: indent --Multipart_Tue_Jan_18_14:23:09_2000-1 Content-Type: text/plain; charset=ISO-2022-JP 阿部です。 ruby-mode.elのインデントで、ちょっと奇妙な動きをしていたので、修正して みました。 At Sat, 23 Oct 1999 02:03:33 +0900, Yukihiro Matsumoto wrote: > |def hoge > | while true > | if foo > | bar > |end たとえば、ifの行で、iのすぐ左(3カラム目)にポイントをおいて TABを押すとインデントはあっているのですが、ポイントはfooの fの位置に来てしまいます。 とりあえずc-modeのようにifの"i"の位置にポイントが来るように してみました。 ---- yasushi abe --Multipart_Tue_Jan_18_14:23:09_2000-1 Content-Type: text/plain; charset=US-ASCII --- ruby-mode.el.org Mon Nov 29 15:31:06 1999 +++ ruby-mode.el Tue Jan 18 14:00:59 2000 @@ -181,5 +181,6 @@ (setq top (current-column)) (skip-chars-backward " \t") - (if (>= shift top) (setq shift (- shift top))) + (if (>= shift top) (setq shift (- shift top)) + (setq shift 0)) (if (and (bolp) (= x top)) --Multipart_Tue_Jan_18_14:23:09_2000-1--