From: Moritz Bunkus Date: 2004-06-17T20:18:15+09:00 Subject: Re: Emacs Ruby mode & indentation with the tab key wish/bug --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, > I think there's an already option for what you want, I think; the=20 > option's called ruby-deep-arglist, which you'll want to switch OFF to=20 > use your preferred style. Doesn't help. In fact I don't see a difference with these three cases whatever I set that variable to: mylist =3D ["1", "2", "3", "4"] if (("a" =3D=3D "b") and ("c" =3D=3D "d")) then end myvar =3D 3 + 4 + 1 + 5 So I guess that either it's not working correctly or it's not supposed to change these cases in which case I'd still wish for it to be implemented :) > Um, the case is broken, but I don't think it's the syntax highlighter=20 > :). You don't enclose conditional blocks in { } in Ruby Ok. I'm obviously a Ruby n00b ;) Anyway, it's kinda confusing to be able to use { } for blocks in one case but not the other. What's the reason behind that? > You also don't usually need parens round the conditional statement, > unlike Perl. That's just a matter of style / preference. I'll probably continue using them 'cause I'd like to keep my programming style at least partially equal no matter if I code in C/C++, Perl or Ruby. > if i =3D=3D 2 > puts "foo" > end >=20 > Aah ... isn't that lovely and readable? Sure it is. It's just nice having Emacs highlight the brace the current one corresponds to. A kind of 'visual theres-the-start-of-this-block marker'. Anyway, thanks for the help. Mosu --=20 If Darl McBride was in charge, he'd probably make marriage unconstitutional too, since clearly it de-emphasizes the commercial nature of normal human interaction, and probably is a major impediment to the commercial growth of prostitution. - Linus Torvalds --/9DWx/yDrRhgMJTb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA0X3qTJ9OsraNuaERAqvhAJ4puD68GAzshvPOh9Uw++gloRJobgCglALo IdvoyDuqRg9SCJH/+Wyhsek= =Vou+ -----END PGP SIGNATURE----- --/9DWx/yDrRhgMJTb--