GOP2-4 - C++ and scheme indentation (probable decision 2)

2012-08-20 Thread Graham Percival
http://lilypond.org/~graham/gop/gop_5.html ** Proposal summary C++ will remain as-is, using astyle 2.02 (not astyle2.02.1) with scripts/auxiliar/fixcc.py Scheme will be indented with emacs --batch mode. There should be no tabs in any C++ or scheme files. ** Motivation It would be nice if we

Re: GOP2-4 - C++ and scheme indentation (probable decision)

2012-08-19 Thread Jan Nieuwenhuizen
Graham Percival writes: > I'm sorry, but I am quite confused. Ah, good. > If I understand this paragraph correctly, then there has been a > large communication problem. I am not proposing that we document > manual procedures. Instead, I am proposing that we use automatic > formatting for schem

Re: GOP2-4 - C++ and scheme indentation (probable decision)

2012-08-17 Thread Graham Percival
I'm sorry, but I am quite confused. On Fri, Aug 17, 2012 at 10:02:19AM +0200, Jan Nieuwenhuizen wrote: > Anything that can be automated, that otherwise would require manual > intervention or attention, should be automated. I definitely agree with this. > I do not care if the tool is 50MB to ins

Re: GOP2-4 - C++ and scheme indentation (probable decision)

2012-08-17 Thread David Kastrup
Jan Nieuwenhuizen writes: > Graham Percival writes: > > We do not use tabs for indentation in source code. Because this is an > additional requirement that would mess-up the indentation of most other > GNU projects, we will add a .dir-locals.el file holding > > ((nil . ((indent-tabs-mod

Re: GOP2-4 - C++ and scheme indentation (probable decision)

2012-08-17 Thread Jan Nieuwenhuizen
Graham Percival writes: > ** Proposal summary I would like to see it something like this, and have something like this added to the documentation/archive: All code is indented and formatted to the GNU coding standards, See *(Standards)Formatting: . This means that Emacs' indent-region leaves i

GOP2-4 - C++ and scheme indentation (probable decision)

2012-08-16 Thread Graham Percival
Two developers didn't seem fond of this idea, but other people liked it, so it's not changed significantly. http://lilypond.org/~graham/gop/gop_5.html ** Proposal summary C++ will remain as-is, using astyle 2.02 (not astyle2.02.1) with scripts/auxiliar/fixcc.py Scheme will be indented with a ye

Re: GOP2-4 - C++ and scheme indentation

2012-08-10 Thread Graham Percival
On Fri, Aug 10, 2012 at 08:32:04AM +0100, Trevor Daniels wrote: > Graham Percival wrote Thursday, August 09, 2012 10:01 AM > > > Scheme will be indented with a yet-to-be written > > scripts/auxiliar/fix-scheme.sh, which does the same thing as > > emacs. > > This will certainly be useful to ensure

Re: GOP2-4 - C++ and scheme indentation

2012-08-10 Thread Bernard Hurley
On Fri, Aug 10, 2012 at 12:28:35PM +0200, Jan Nieuwenhuizen wrote: > David Kastrup writes: > > > Keith OHara writes: > > > >> But beware that this uses mixed tabs and spaces, unless you have > >> configured emacs to use spaces only, as most people prefer today, > > > > Should we put up directory-

Re: GOP2-4 - C++ and scheme indentation

2012-08-10 Thread Jan Nieuwenhuizen
David Kastrup writes: > Keith OHara writes: > >> But beware that this uses mixed tabs and spaces, unless you have >> configured emacs to use spaces only, as most people prefer today, > > Should we put up directory-local variables to promote this and a few > other conventions? Please do! Jan --

Re: GOP2-4 - C++ and scheme indentation

2012-08-10 Thread David Kastrup
Keith OHara writes: > But beware that this uses mixed tabs and spaces, unless you have > configured emacs to use spaces only, as most people prefer today, Should we put up directory-local variables to promote this and a few other conventions? File: emacs.info, Node: Directory Variables, P

Re: GOP2-4 - C++ and scheme indentation

2012-08-10 Thread Keith OHara
Graham Percival percival-music.ca> writes: > On Thu, Aug 09, 2012 at 12:21:06PM +0200, Jan Nieuwenhuizen wrote: > > > Do we explain that we're a GNU project and as > > such use GNU coding style? Together with a pointer to the info > > node *(standards)Formatting, that could help. > > Given that

Re: GOP2-4 - C++ and scheme indentation

2012-08-10 Thread Trevor Daniels
Graham Percival wrote Thursday, August 09, 2012 10:01 AM > http://lilypond.org/~graham/gop/gop_5.html > > ** Proposal summary > > Speaking academically, scheme code style is a “solved problem”. > Let’s pick one of the existing solutions, and let a computer deal > with this. Humans should not was

Re: GOP2-4 - C++ and scheme indentation

2012-08-09 Thread David Kastrup
Graham Percival writes: > On Thu, Aug 09, 2012 at 01:08:42PM +0200, David Kastrup wrote: >> Graham Percival writes: >> >> > Do you want to tell me (and them) that we shouldn't be editing >> > .scm files in lilypond? >> >> This is not satisfactorily solved by first writing everything and >> run

Re: GOP2-4 - C++ and scheme indentation

2012-08-09 Thread David Kastrup
Graham Percival writes: > On Thu, Aug 09, 2012 at 01:08:42PM +0200, David Kastrup wrote: >> >> The stumbling block is _writing_ the Scheme code, not submitting it. >> When is the last time a code review complained about Scheme code >> formatting? > > I gave URLs in the proposal, but here you go:

Re: GOP2-4 - C++ and scheme indentation

2012-08-09 Thread Graham Percival
On Thu, Aug 09, 2012 at 01:08:42PM +0200, David Kastrup wrote: > Graham Percival writes: > > > Do you want to tell me (and them) that we shouldn't be editing > > .scm files in lilypond? > > This is not satisfactorily solved by first writing everything and > running an indenter afterwards. You'l

Re: GOP2-4 - C++ and scheme indentation

2012-08-09 Thread David Kastrup
Graham Percival writes: > I do not have emacs installed. I *WILL NOT* have Emacs installed. > Carl has gone on record as saying that he will not use Emacs. > IIRC Reinhold has also gone on record. We could conduct a poll if > you want to see other people who do not, and *WILL NOT*, install > em

Re: GOP2-4 - C++ and scheme indentation

2012-08-09 Thread Marc Hohl
Am 09.08.2012 11:01, schrieb Graham Percival: http://lilypond.org/~graham/gop/gop_5.html ** Proposal summary Speaking academically, scheme code style is a “solved problem”. Let’s pick one of the existing solutions, and let a computer deal with this. Humans should not waste their time, energy, a

Re: GOP2-4 - C++ and scheme indentation

2012-08-09 Thread Ian Hulin
Hi Jan, I'm don't mean to be snarky here but please look at the comments below. Cheers, Ian Hulin On 09/08/12 11:21, Jan Nieuwenhuizen wrote: > Graham Percival writes: > >> ** Motivation >> >> New contributors sometimes struggle to follow our indentation and >> code style > > Yes, that's bad.

Re: GOP2-4 - C++ and scheme indentation

2012-08-09 Thread Graham Percival
On Thu, Aug 09, 2012 at 12:21:06PM +0200, Jan Nieuwenhuizen wrote: > Graham Percival writes: > > > New contributors sometimes struggle to follow our indentation and > > code style > > Yes, that's bad. Do we explain that we're a GNU project and as > such use GNU coding style? Together with a poi

Re: GOP2-4 - C++ and scheme indentation

2012-08-09 Thread Jan Nieuwenhuizen
Graham Percival writes: > ** Motivation > > New contributors sometimes struggle to follow our indentation and > code style Yes, that's bad. Do we explain that we're a GNU project and as such use GNU coding style? Together with a pointer to the info node *(standards)Formatting, that could help.

GOP2-4 - C++ and scheme indentation

2012-08-09 Thread Graham Percival
http://lilypond.org/~graham/gop/gop_5.html ** Proposal summary Speaking academically, scheme code style is a “solved problem”. Let’s pick one of the existing solutions, and let a computer deal with this. Humans should not waste their time, energy, and creativity manually adding tabs or spaces to