* lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): New
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 20 Dec 2013 05:20:33 +0000 (07:20 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 20 Dec 2013 05:20:33 +0000 (07:20 +0200)
commitb520f210b12911b747cd7cd725c310bef4790a48
tree77e79dd61f417764f4e32a0baa2c8a35548b35bc
parent26b75b456e536c1fb2d3979e07e82455b2d9c1ca
* lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): New
option.
(ruby-smie--indent-to-stmt-p): Use it.
(ruby-smie-rules): Revert the logic in the handling of `when'.
Expand the `begin' clause to handle `ruby-align-to-stmt-keywords'.
(ruby-deep-arglist, ruby-deep-indent-paren)
(ruby-deep-indent-paren-style): Update docstrings to note that the
vars don't have any effect with SMIE.

* test/automated/ruby-mode-tests.el: Add tests for
`ruby-align-to-stmt-keywords'.

* test/indent/ruby.rb: Update examples to reflect the lack of change in
default indentation of `begin' blocks.

Fixes: debbugs:16182
etc/NEWS
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/ChangeLog
test/automated/ruby-mode-tests.el
test/indent/ruby.rb