[Enhancement] Update syntax automatically

2010-02-19 Thread Dénes Harmath
There should be an option in lilypond to invoke convert-ly on the files before
compiling. This way, the user doesn't have to care with updating the syntax of
her files manually; when updating LilyPond, files will be up to date
automatically when compiled.



___
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: [Enhancement] Update syntax automatically

2010-02-19 Thread Graham Percival
2010/2/19 Dénes Harmath :
> There should be an option in lilypond to invoke convert-ly on the files before
> compiling. This way, the user doesn't have to care with updating the syntax of
> her files manually; when updating LilyPond, files will be up to date
> automatically when compiled.

convert-ly is not sufficiently automatic / foolproof to be worth doing
this.  Feel free to write a script that runs convert-ly -e before
calling lilypond, but this will not be added to the LilyPond project
itself.

Cheers,
- Graham


___
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: [Enhancement] Update syntax automatically

2010-02-21 Thread Valentin Villenave
2010/2/19 Graham Percival :
> convert-ly is not sufficiently automatic / foolproof to be worth doing
> this.  Feel free to write a script that runs convert-ly -e before
> calling lilypond, but this will not be added to the LilyPond project
> itself.

Yes, this is something I've been dreaming about for quite some time as
well... But Graham is probably right here.

(Another thing I'd like to do is rewrite convert-ly in Scheme, but
that's just for the fun of it :)

Cheers,
Valentin


___
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: [Enhancement] Update syntax automatically

2010-02-22 Thread Mats Bengtsson

Graham Percival wrote:

2010/2/19 Dénes Harmath :
  

There should be an option in lilypond to invoke convert-ly on the files before
compiling. This way, the user doesn't have to care with updating the syntax of
her files manually; when updating LilyPond, files will be up to date
automatically when compiled.



convert-ly is not sufficiently automatic / foolproof to be worth doing
this.  Feel free to write a script that runs convert-ly -e before
calling lilypond, but this will not be added to the LilyPond project
itself.
  
Also, since the main LilyPond programmers work primarily with UNIX, they 
follow the UNIX paradigm of letting separate programs be responsible for 
separate tasks. As Graham said, combining the two into a single command 
is easily done using a script or could be included as an option into a 
"development environment" (such as LilypondTool, or the LilyPond mode of 
editors like Emacs or VIM).
Finally, I see several risks of confusions when using such an option. If 
it did "convert-ly -e", then the file would have to be reloaded in the 
text editor, manually or automatically depending on what editor you use. 
If it instead kept the original file and let LilyPond process a 
temporary copy with updated syntax, then the warning/error messages 
would not point to relevant lines in the original file.


 /Mats

  /Mats

Cheers,
- Graham


___
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond
  



--
=
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: mats.bengts...@ee.kth.se
WWW: http://www.s3.kth.se/~mabe
=



___
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: [Enhancement] Update syntax automatically

2010-02-22 Thread Bernard Hurley
On Mon, Feb 22, 2010 at 09:37:14AM +0100, Mats Bengtsson wrote:
> Graham Percival wrote:
>> 2010/2/19 Dénes Harmath :
>>   
>>> There should be an option in lilypond to invoke convert-ly on the files 
>>> before
>>> compiling. This way, the user doesn't have to care with updating the syntax 
>>> of
>>> her files manually; when updating LilyPond, files will be up to date
>>> automatically when compiled.
>>> 

>>   
> Also, since the main LilyPond programmers work primarily with UNIX, they  
> follow the UNIX paradigm of letting separate programs be responsible for  
> separate tasks. As Graham said, combining the two into a single command  
> is easily done using a script or could be included as an option into a  
> "development environment" (such as LilypondTool, or the LilyPond mode of  
> editors like Emacs or VIM).

This can already be done with Frescobaldi - One of it's menu options is "update 
with convert-ly"

Bernard



___
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond