From 724da28763c25f5dcd210b70e71f98bf5cbf5023 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Sat, 31 Dec 2022 00:12:51 +0200 Subject: [PATCH] Add version tags and mention the new options in NEWS * etc/NEWS: Mention the new options (bug#60186). * lisp/progmodes/ruby-mode.el (ruby-block-indent) (ruby-after-operator-indent, ruby-method-call-indent) (ruby-parenless-call-arguments-indent): Add version tags. --- etc/NEWS | 6 +++++- lisp/progmodes/ruby-mode.el | 12 ++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index d2e11e5adf4..38b7865626d 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -2832,7 +2832,11 @@ project-dedicated or global) is specified by the new *** Support for endless methods. --- -*** New user option 'ruby-method-params-indent'. +*** New user options that determine indentation logic. +'ruby-method-params-indent', 'ruby-block-indent', +'ruby-after-operator-indent', 'ruby-method-call-indent', +'ruby-parenless-call-arguments-indent'. See the docstrings for +explanations and examples. ** Eshell diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 021dda1a3e1..3a86093941b 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -306,7 +306,8 @@ containing the block's opener: Only has effect when `ruby-use-smie' is t." :type 'boolean - :safe 'booleanp) + :safe 'booleanp + :version "29.1") (defcustom ruby-after-operator-indent t "Non-nil to use structural indentation after binary operators. @@ -326,7 +327,8 @@ Set it to nil to align to the beginning of the statement: Only has effect when `ruby-use-smie' is t." :type 'boolean - :safe 'booleanp) + :safe 'booleanp + :version "29.1") (defcustom ruby-method-call-indent t "Non-nil to use the structural indentation algorithm. @@ -348,7 +350,8 @@ Set it to nil to align to the beginning of the statement: Only has effect when `ruby-use-smie' is t." :type 'boolean - :safe 'booleanp) + :safe 'booleanp + :version "29.1") (defcustom ruby-parenless-call-arguments-indent t "Non-nil to align arguments in a parenless call vertically. @@ -369,7 +372,8 @@ Set it to nil to align to the beginning of the statement: Only has effect when `ruby-use-smie' is t." :type 'boolean - :safe 'booleanp) + :safe 'booleanp + :version "29.1") (defcustom ruby-deep-arglist t "Deep indent lists in parenthesis when non-nil. -- 2.39.5