From: gga Date: 2007-05-19T20:35:03+09:00 Subject: Re: Why not adopt "Python Style" indentation for Ruby? On May 18, 2:41 pm, Jeremy Henty wrote: > On 2007-05-18, gga wrote: > > > No editor I am aware knows how to match indentation yet or do/end > > contexts (not that it could not be coded, thou). > > Emacs + ruby-mode.el understands do/end just fine. > > Regards, > > Jeremy Henty No, it doesn't. When I type a close brace in emacs, I get the corresponding line where the matching brace matches (hilited if visible in the page, or in the modeline if not). When I position myself next to a brace, I get the same hiliting happening. Can't recall if that's a feature of hilite or the electric mode of emacs. However, whenever I type "end" to close a block, I have NO clue where the block begins. And if it is code I did not write, not knowing where the code begins is a killer. Being emacs, I *could* potentially hack the lisp code to handle do/end blocks properly (or indentation too). I haven't seen anyone do it yet (and publically give it away).