From: matz@... (Yukihiro Matsumoto) Date: 1997-08-25T13:43:01+09:00 Subject: [ruby-list:3792] Re: ruby-mode auto-indent problem まつもと ゆきひろです In message "[ruby-list:3791] ruby-mode auto-indent problem" on 97/08/25, Eiji-usagi-MATSUmoto writes: |うさぎです。 |『\』を含む行があると、次の行でTABを押してもインデントされな |い場合があるというものです。 簡単に言うとruby-modeのバグです."の直前がバックスラッシュで あると,それが\\であっても"のエスケープであるとみなしてしま うのが原因です. パッチを付けておきます. --- sample/ruby-mode.el~ Fri Aug 22 18:17:53 1997 +++ sample/ruby-mode.el Mon Aug 25 13:33:37 1997 @@ -215,13 +215,12 @@ (looking-at "'") (looking-at "`")) (setq w (char-after (point))) - (cond - ((and (not (eobp)) - (re-search-forward (format "[^\\]%c" w) indent-point t)) - nil) - (t + (if (and (not (eobp)) + (or (re-search-forward (format "[^\\]%c" w) indent-point t) + (re-search-forward (format "\\\\\\\\%c" w) indent-point t))) + nil (setq in-string (point)) - (goto-char indent-point)))) + (goto-char indent-point))) ((looking-at "/") (cond ((and (not (eobp)) (ruby-expr-beg))