From: matz@... (Yukihiro Matsumoto) Date: 1999-12-09T17:04:59+09:00 Subject: [ruby-list:19329] Re: emacs の ruby モードについて まつもと ゆきひろです In message "[ruby-list:19297] Re: emacs の ruby モードについて" on 99/12/08, GOTO Kentaro writes: |最近ひっっかかったのだと、do で始まるブロック内に a % で始ま |る行を書くと次の行でインデントしてくれません(%の左が一文字変 |数というのが条件)。気持ちは分かるので #% をその行の末尾に付 |加してしのいでます。 こういうパッチで対応できると思います。 耐えられないほど遅くなってないと良いんだけど。 --- ../ruby1.4/misc/ruby-mode.el Mon Nov 29 15:31:06 1999 +++ misc/ruby-mode.el Thu Dec 9 16:41:39 1999 @@ -205,5 +204,10 @@ (and (not modifier) (looking-at "[!?]")) (and (looking-at ruby-symbol-re) - (forward-word -1) + (save-restriction + (let ((p (point))) + (beginning-of-line) + (narrow-to-region (point) p) + (goto-char p) + (forward-word -1))) (if (and (not modifier) (bolp)) t