From: "Brian Schröder" Date: 2005-04-19T05:43:41+09:00 Subject: Re: emacs ruby-mode statement modifier indent problem? On 4/18/05, Mike Shire wrote: > Greetings, > > New to the list, and relatively new to Ruby and loving it. > > After updating ruby-mode (ruby-elisp1.8.2 using Debian apt-get and > emacs21) recently I'm having a problem with emacs indenting incorrectly > with statement modifiers. E.g. > > puts "foo" if foo > puts "next line is indented waaay out here" > > An hours search revealed this fix from 2002: > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/32352 > > I changed out the the elisp ruby-expr-beg function and that seemed to > solve that particular problem. However, the function I replaced I am > sure had been updated since this referenced post and I'm sure replacing > it has broken something else (and my elisp knowledge is practically nil). > > Has anyone encountered this or has this been fixed elsewhere that I can > get it? > > Many thanks. > > mike! > > Hello Mike. The same has happened to me, and it even seems that this is not the only case where indentation is broken. I hope there will be a fix soon, because I have no time to investigate even which part of the system is broken. Good news that I'm not alone ;-/ best regards, Brian -- Brian Schr�der http://ruby.brian-schroeder.de/