From: "rlipman (Reed Lipman)" Date: 2012-04-21T00:33:26+09:00 Subject: [ruby-core:44491] [ruby-trunk - Bug #5140] Emacs ruby-mode major indentation bug with Ruby 1.9 Issue #5140 has been updated by rlipman (Reed Lipman). File ruby-keyword-symbols-patch.diff added This bug has been fixed in the base ruby-mode.el included in Emacs http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10786 I attached a copy of the patch if ruby-mode.el is still being maintained outside of GNU ---------------------------------------- Bug #5140: Emacs ruby-mode major indentation bug with Ruby 1.9 https://bugs.ruby-lang.org/issues/5140#change-26048 Author: budu (Nicolas Buduroi) Status: Assigned Priority: Normal Assignee: nobu (Nobuyoshi Nakada) Category: Target version: ruby -v: HEAD When spreading the arguments of a method call on multiple lines using the new hash syntax from Ruby 1.9, the level of indentation is retained even after the closing parenthesis. Example: belongs_to(:foo, class_name: 'Foo', foreign_key: 'foo_id') # the indentation level is wrong! -- http://bugs.ruby-lang.org/