]> git.eshelyaron.com Git - emacs.git/commit
ruby-method-params-indent: New user option
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 19 Dec 2022 19:01:27 +0000 (21:01 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 19 Dec 2022 19:06:07 +0000 (21:06 +0200)
commit2b1fdbffcb595bcd72fa9aa3db674c6985042bcb
treed096889d882ed2d06cf548bbadb4bdea294440f4
parentb9e813f79f2d7afb5f14caad17a865e66af17f15
ruby-method-params-indent: New user option

* lisp/progmodes/ruby-mode.el (ruby-method-params-indent):
New option (bug#60110).

(ruby-smie-rules): Use it.

* etc/NEWS: Mention it.

* test/lisp/progmodes/ruby-mode-resources/ruby.rb:
Ensure the var's value is default.

* test/lisp/progmodes/ruby-mode-resources/ruby-method-params-indent.rb:
New file.

* test/lisp/progmodes/ruby-mode-tests.el (ruby-deftest-indent):
New macro, use it to run the indentation test using the new file.
Disable the :expensive-test tag, because neither runs for "longer
than some few seconds", both take significantly below 1s.
etc/NEWS
lisp/progmodes/ruby-mode.el
test/lisp/progmodes/ruby-mode-resources/ruby-method-params-indent.rb [new file with mode: 0644]
test/lisp/progmodes/ruby-mode-resources/ruby.rb
test/lisp/progmodes/ruby-mode-tests.el