[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: script for auto-indenting .scm files.
From: |
Carl Sorensen |
Subject: |
Re: script for auto-indenting .scm files. |
Date: |
Thu, 11 Aug 2011 18:17:44 -0600 |
On 8/11/11 6:07 PM, "Carl Sorensen" <address@hidden> 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
> changes the indentation we have in lily.scm where the
> scheme-options-definition is defined.
>
> 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.
>
> But I thought I'd pass it out for some third-party review. It handled the
> tabs->spaces conversion of scm/lily.scm perfectly, as near as I can tell.
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.
BTW, usage is
./scmindent.scm < input-file > output-file
Thanks,
Carl
- script for auto-indenting .scm files., Carl Sorensen, 2011/08/11
- Re: script for auto-indenting .scm files.,
Carl Sorensen <=
- Re: script for auto-indenting .scm files., Carl Sorensen, 2011/08/11
- Re: script for auto-indenting .scm files., Neil Puttock, 2011/08/13
- Re: script for auto-indenting .scm files., Reinhold Kainhofer, 2011/08/13
- Re: script for auto-indenting .scm files., Carl Sorensen, 2011/08/13
- Re: script for auto-indenting .scm files., Neil Puttock, 2011/08/13
Re: script for auto-indenting .scm files., Graham Percival, 2011/08/11