Re: script for auto-indenting .scm files.

2011-08-13 Thread Neil Puttock
On 12 August 2011 01:44, Carl Sorensen c_soren...@byu.edu wrote: Yep.  Here it is, along with the change to /usr/bin/env guile. I had to change this to /usr/bin/guile to get the script to work: /usr/bin/env: guile -s: No such file or directory I think I'm really going to like having this,

Re: script for auto-indenting .scm files.

2011-08-13 Thread Reinhold Kainhofer
Am Saturday, 13. August 2011, 17:44:52 schrieb Neil Puttock: On 12 August 2011 01:44, Carl Sorensen c_soren...@byu.edu wrote: Yep. Here it is, along with the change to /usr/bin/env guile. I had to change this to /usr/bin/guile to get the script to work: /usr/bin/env: guile -s: No

Re: script for auto-indenting .scm files.

2011-08-13 Thread Carl Sorensen
On 8/13/11 9:44 AM, Neil Puttock n.putt...@gmail.com wrote: On 12 August 2011 01:44, Carl Sorensen c_soren...@byu.edu wrote: Yep.  Here it is, along with the change to /usr/bin/env guile. I had to change this to /usr/bin/guile to get the script to work: /usr/bin/env: guile -s: No

Re: script for auto-indenting .scm files.

2011-08-13 Thread Neil Puttock
On 13 August 2011 20:06, Carl Sorensen c_soren...@byu.edu wrote: De we have a standard for how much indentation we should have for each type of compound expression? define let begin all get two, apparently. I see some sources that show that list gets one. Are you aware of a

Re: script for auto-indenting .scm files.

2011-08-12 Thread Reinhold Kainhofer
Am Freitag, 12. August 2011, 02:44:11 schrieb Carl Sorensen: On 8/11/11 6:32 PM, Graham Percival gra...@percival-music.ca wrote: On Thu, Aug 11, 2011 at 06:28:09PM -0600, Carl Sorensen wrote: On 8/11/11 6:17 PM, Carl Sorensen c_soren...@byu.edu wrote: BTW, usage is ./scmindent.scm

Re: script for auto-indenting .scm files.

2011-08-12 Thread Carl Sorensen
On 8/12/11 5:39 AM, Reinhold Kainhofer reinh...@kainhofer.com wrote: Do you know anything about the license? Thanks for this reminder. I've renamed the file to guileindent.scm, making it clear that it's a derivative work, rather than just a copy. I've sent an email to Dorai asking if it's

script for auto-indenting .scm files.

2011-08-11 Thread Carl Sorensen
Having spent more time than I thought it would be necessary, I finally found something that could work as a stand-alone script for indenting scheme files. It appears to follow standard Scheme indenting rules, which means that it changes the indentation we have in lily.scm where the

Re: script for auto-indenting .scm files.

2011-08-11 Thread Carl Sorensen
On 8/11/11 6:07 PM, Carl Sorensen c_soren...@byu.edu wrote: Having spent more time than I thought it would be necessary, I finally found something that could work as a stand-alone script for indenting scheme files. It appears to follow standard Scheme indenting rules, which means that it

Re: script for auto-indenting .scm files.

2011-08-11 Thread Carl Sorensen
On 8/11/11 6:17 PM, Carl Sorensen c_soren...@byu.edu wrote: On 8/11/11 6:07 PM, Carl Sorensen c_soren...@byu.edu wrote: Oops -- I have now found a problem with it. The else part of an if doesn't line up with the then part. More work to do, I guess. New version fixes that problem.

Re: script for auto-indenting .scm files.

2011-08-11 Thread Graham Percival
On Thu, Aug 11, 2011 at 06:07:07PM -0600, Carl Sorensen wrote: The call to guile is hardcoded at the top of the file, and will need to be changed to use the appropriate lilypond environment variable that defines the location of guile. Change it to: #!/usr/bin/env guile and all should be well.

Re: script for auto-indenting .scm files.

2011-08-11 Thread Graham Percival
On Thu, Aug 11, 2011 at 06:28:09PM -0600, Carl Sorensen wrote: On 8/11/11 6:17 PM, Carl Sorensen c_soren...@byu.edu wrote: BTW, usage is ./scmindent.scm input-file output-file Could we get that in a comment at the top of the file ? Cheers, - Graham

Re: script for auto-indenting .scm files.

2011-08-11 Thread Carl Sorensen
On 8/11/11 6:32 PM, Graham Percival gra...@percival-music.ca wrote: On Thu, Aug 11, 2011 at 06:28:09PM -0600, Carl Sorensen wrote: On 8/11/11 6:17 PM, Carl Sorensen c_soren...@byu.edu wrote: BTW, usage is ./scmindent.scm input-file output-file Could we get that in a comment at the top