lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] music-functions-init.ly: Alphabetize music-function list.


From: Patrick McCarty
Subject: Re: [PATCH] music-functions-init.ly: Alphabetize music-function list.
Date: Wed, 19 Aug 2009 23:07:53 -0700
User-agent: Mutt/1.5.20 (2009-06-14)

On 2009-08-19, Mark Polesky wrote:
> Graham Percival wrote:
> 
> > Neil Puttock wrote:
> > > Since it's a .ly file it shouldn't have hard tabs.
> > 
> > Silly Mark, try to keep up here.  :P   .cc and .scm files should
> > have "whatever emacs does", for a certain version number of emacs,
> > unless there's any special exemptions that might be known to a few
> > people.  .ly files should use two-space indents, with no
> > particular specification as to when to indent (other than
> > "generally when you have a {").  All this information is clearly
> > not really specified in the 63-page Contributor Guide, so it
> > should be simple to realize what to do!
> 
> Well, the music-functions pose an interesting dilemma. They're
> in an .ly file but are mostly written in scheme. To me, it makes
> more sense to specify indentation-style based on the programming
> language being used at any moment, not based on the *file-type*.
> 
> What do you think?

IMO, indenting in the Scheme style for LY files that are mostly
written in Scheme is okay.  But there are relatively few LY files in
the source code that are like this (music-functions-init.ly being
one).

This would also mesh well with my (unannounced) plans to merge
LilyPond's syntax highlighting and indent files for Vim with the
default Scheme highlighting/indent files; this way, the Scheme
sections of an LY file will always be indented in the "Scheme" style.


Thanks,
-Patrick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]