GNU bug report logs - #16182
24.3.50; ruby-mode: Indentation style of multiline literals with hanging open paren inside other parens

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dgutov <at> yandex.ru>

Date: Wed, 18 Dec 2013 03:56:02 UTC

Severity: minor

Found in version 24.3.50

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Steve Purcell <steve <at> sanityinc.com>
Cc: Adam Sokolnicki <adam.sokolnicki <at> gmail.com>, 16182 <at> debbugs.gnu.org, Adam Doppelt <amd <at> gurge.com>, Bozhidar Batsov <bozhidar <at> batsov.com>
Subject: bug#16182: Acknowledgement (24.3.50; ruby-mode: Indentation style of multiline literals with hanging open paren inside other parens)
Date: Sat, 21 Dec 2013 17:53:59 +0200
On 21.12.2013 17:38, Steve Purcell wrote:
> I wouldn’t personally consider as reasonable *any* scheme which placed related “if”, “else” and “end” keywords at differing levels of indentation.

You're not the target audience, then. :) Not to worry, this won't be the 
default.

But this style or all over the Rails codebase. And, personally, I quite 
like this usage of `begin' (basically, one of Adam's examples):

a ||= begin
  perform_long_lookup
end

Indenting `if' and friends similarly might be good for consistency, at 
least.

(Again, this example is indented differently by default in ruby-mode.)




This bug report was last modified 11 years and 247 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.