[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Small improvements to ruby-mode
From: |
Dmitry Gutov |
Subject: |
Re: Small improvements to ruby-mode |
Date: |
Tue, 09 Jul 2013 04:40:32 +0400 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 |
On 08.07.2013 13:22, Stefan Monnier wrote:
a. Ruby trunk has some objectionable code, which I believe we shouldn't
merge, and noone seems to be interested in discussing or reverting it:
http://bugs.ruby-lang.org/issues/6854
"deep-indent", huh?
Yep. Cryptic name and docstring, plus no comments in the code. All par
for the course. :)
I don't give it a name in SMIE, but I use the
"hanging-p" name for the test to choose between doing it or not (which
seems to be pretty much the same test you use in the current
ruby-mode.el).
I'm not sure what piece of logic in ruby-mode you mean exactly, but if
SMIE does indentation similar to e.g. js-mode (indentation inside parens
depends on whether the opener is followed by a newline), then that's
behavior I prefer and have in my config via defadvice. ruby-mode
currently picks between "deep" and "not-so-deep" indent based on whether
the current opener is in `ruby-deep-indent-paren'.
In practice, with SMIE in ruby-mode enabled, I would expect
foo(
1,
2,
3)
to be indented as
foo(
1,
2,
3)
which doesn't happen.
b. They've had a bug about removing ruby-mode.el for months now:
http://bugs.ruby-lang.org/issues/6823 Again, no movement there.
Maybe making the trunk code work in 23.4 (for example) would help
convince people to drop it from ruby-lang. I encourage people to post
a "vote to remove as well" to this bug-tracker.
Maybe it would. I posted a "me too" there.
c. No ELPA repositories are tracking Ruby trunk anymore. We just have
some older versions uploaded to Marmalade and Tromey's archive a while
back.
That's good. So we should indeed upload a newer version (or better
yet, remove those out dated versions).
https://github.com/nicferrier/marmalade/issues/55
I'm not sure if I should Cc Tom Tromey, after all, his repository is
supposed to be completely out of use.
- Re: Small improvements to ruby-mode, (continued)
- Re: Small improvements to ruby-mode, Stefan Monnier, 2013/07/05
- Re: Small improvements to ruby-mode, Bozhidar Batsov, 2013/07/05
- Re: Small improvements to ruby-mode, Dmitry Gutov, 2013/07/05
- Re: Small improvements to ruby-mode, Bozhidar Batsov, 2013/07/06
- Re: Small improvements to ruby-mode, Dmitry Gutov, 2013/07/06
- Re: Small improvements to ruby-mode, Bozhidar Batsov, 2013/07/06
- Re: Small improvements to ruby-mode, Dmitry Gutov, 2013/07/06
- Re: Small improvements to ruby-mode, Stefan Monnier, 2013/07/07
- Re: Small improvements to ruby-mode, Dmitry Gutov, 2013/07/07
- Re: Small improvements to ruby-mode, Stefan Monnier, 2013/07/08
- Re: Small improvements to ruby-mode,
Dmitry Gutov <=
- Re: Small improvements to ruby-mode, Stefan Monnier, 2013/07/09
- Re: Small improvements to ruby-mode, Bozhidar Batsov, 2013/07/09
- Re: Small improvements to ruby-mode, Bozhidar Batsov, 2013/07/08
- Re: Small improvements to ruby-mode, Bozhidar Batsov, 2013/07/08
- Re: Small improvements to ruby-mode, Dmitry Gutov, 2013/07/08
- Re: Small improvements to ruby-mode, Bozhidar Batsov, 2013/07/09
- Re: Small improvements to ruby-mode, Bozhidar Batsov, 2013/07/09
- Re: Small improvements to ruby-mode, Bozhidar Batsov, 2013/07/09
- Re: Small improvements to ruby-mode, Dmitry Gutov, 2013/07/09
- Re: Small improvements to ruby-mode, Bozhidar Batsov, 2013/07/10