From: George Ogata Date: 2004-05-05T03:51:14+09:00 Subject: [PATCH] ruby-mode.el indentation fix (another one) This fixes this scenario: "#{x}" if x =~ /x/ "#{x}" if x =~ /x/ (Second line was wrongly indented.) Please check carefully. I don't really understand the rationale behind the statement I commented out; I'm thinking it was used in the other commented-out-code a few lines below. diff -Naur ruby/misc/ruby-mode.el ruby.mod/misc/ruby-mode.el --- ruby/misc/ruby-mode.el 2004-04-02 09:13:39.000000000 +1000 +++ ruby.mod/misc/ruby-mode.el 2004-05-05 03:06:15.000000000 +1000 @@ -655,7 +655,8 @@ (setq end nil)) (goto-char (or end pos)) (skip-chars-backward " \t") - (setq begin (if (nth 0 state) pos (cdr (nth 1 state)))) +;; (setq begin (if (nth 0 state) pos (cdr (nth 1 state)))) + (setq begin nil) (setq state (ruby-parse-region parse-start (point)))) (or (bobp) (forward-char -1)) (and