From: Eric B. <er...@go...> - 2001-05-27 22:22:21
|
Andreas Leitner wrote: > > The same argument can be made for spaces only. Except that only people using Emacs put spaces instead of tabs. So I think this is a problem with people using Emacs, not people using the others text editors. > What are you using? CodeWright and Vim. > That was actually a point I forgot to mention. We _should_ come up with > a standard (and be it spaces only) and we _should_ come up with tools > (as part of GOBO) that automate as much of the bookkeeping work as > possible. Indentation can be done completly automatic and we should > strive for this goal. We may not archive this in the short term, but we > can start with little scripts as yours. OK, I'll try to put together such little scripts and let you know when they are ready. I'll try to make them configurable so that we can specify the size of the tabs, and have two modes to convert tabs back and forth. Hmmm, we need something OS-independent to write these scripts. I think the best choice for platform independent language in the context of the development of Gobo Eiffel package is ... Eiffel. What do you think? > In the long term, I think your gelint effort could be used as a basis > for a GOBO style pretty printer. Yes, a pretty-printer can be written re-using the same code as 'gelint'. The only problem with pretty-printers is that they usually do not handle free comments properly in a nice way. > Then before a checkin I run the pretty > printer and before opening a file, I run the Emacs indentation command > to get my preferred indentation. I think we will already be able to do that with the little scripts described above. -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |