From: bbense+comp.lang.ruby.Aug.19.02@... Date: 2002-08-19T23:28:28+09:00 Subject: Re: IDE vs. editor -----BEGIN PGP SIGNED MESSAGE----- In article <20020818183052.GA4757@prism.localnet>, Massimiliano Mirra wrote: >On Mon, Aug 19, 2002 at 02:44:06AM +0900, bbense+comp.lang.ruby.Aug.18.02@telemark.stanford.edu wrote: >> >> - - I can do all this in Emacs and have a powerful editor. Is it >> >Same questions to you: how do you have a method's renaming propagate, >> - - You need a ruby version of etags. Then it's just a simple >> matter of using tags-query-replace. The hard bit is a ruby >> version of etags. > >I heard about etags supporting ruby, but never managed to get it work, >probably because I never used etags with any other language and I >don't know how it is supposed to work when it does. Sounds like it's >time for another try. > >I wonder, though, what tags-query-replace does. If I modify `class >MyClass; def meth; end; end' into `class MyClass; def new_meth; end; >end', will the various my_instance.meth throughout the code be changed >into my_instance.new_meth? It doesn't seem very likely -- for one >thing, how would Emacs know that my_instance is an instance of MyClass >and not anything else? > - - You've got me there. I was extrapolating my C refactoring experience, there tags-query-replace rules. However, I can see the problems with doing that in ruby. It would depend on how smart the tag program was, I suspect you'd have to have a full blown ruby parser to fully support this kind of refactoring. But since we have one handy, I don't think it would be impossible. - - Booker C. Bense -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBPWD9BmTWTAjn5N/lAQFQygQAntH6drlHp+LBHQCf1kMNBNGPdsKYpFQr p9KJxfpEKZyOuJC+lKry69Uw41pmju4dBfEl1KeOgkJb4jRQOdwa3itN4ZMn2mX3 MSqQcTht+Sz3pE9y5vg0jAWqChnTiZBP9sY6970UeYzBTdEvb59WDr09i9HOL8xL K92S++05ACA= =N+LE -----END PGP SIGNATURE-----