Re: CG 2 working with source code

2010-02-11 Thread Mark Polesky
Graham Percival wrote: > Mark, are you still working on CG 2? Not really. The bulk of the changes that I wanted to make are done, so nobody should feel afraid to touch it. However, out of the 11 (not 13) FIXME's in source-code.itexi, I am responsible for 10 of them. I think I can take care of th

Re: Solution for including a file only once

2010-02-11 Thread Carl Sorensen
On 2/11/10 1:54 PM, "Michael J. O'Donnell" wrote: > Carl, > > includeIfAbsent is indeed the sort of void music function that you > mention. I gave myself a \voidMusic utility function to help me remember > it when I need it. Now, I realize that for other purposes I would also > like a \nullMu

Re: Solution for including a file only once

2010-02-11 Thread Michael J. O'Donnell
Thanks, Carl. I was hunting for a music void before, and missed it. I have several uses for it. I'm very fuzzy on using parser vs. (ly:parser-clone parser). I have a pretty good guess what it means technically at the low level (presumably parser is an object with state, and the clone gives a separ

Re: Solution for including a file only once

2010-02-11 Thread Hans Aberg
On 11 Feb 2010, at 18:18, Michael J. O'Donnell wrote: At present, I am seeking an add-on solution, involving a definition that I can put in a utility file to include. I think I am near finding that. I am not ready to hack the lexical analyzer, and I think that should be pondered carefully,

Re: Solution for including a file only once

2010-02-11 Thread Carl Sorensen
On 2/11/10 11:05 AM, "Michael J. O'Donnell" wrote: > Here's what I *now think* is correct code O:-) : > > includeIfAbsent = > > #(define-music-function (parser location fileName) (string?) > > (let ((guardName (string-append "Already Got " fileName))) > > (if (not (defined? (string->symbol

Re: Solution for including a file only once

2010-02-11 Thread Reinhold Kainhofer
Am Donnerstag, 11. Februar 2010 19:05:26 schrieb Michael J. O'Donnell: > Here's what I *now think* is correct code O:-) : > > includeIfAbsent = > > #(define-music-function (parser location fileName) (string?) > > (let ((guardName (string-append "Already Got " fileName))) > (if (not (defined? (st

Re: Solution for including a file only once

2010-02-11 Thread Michael J. O'Donnell
Here's what I *now think* is correct code O:-) : includeIfAbsent = #(define-music-function (parser location fileName) (string?) (let ((guardName (string-append "Already Got " fileName))) (if (not (defined? (string->symbol guardName))) (begin (primitive-eval (list 'define (string->symbol guardN

Re: Solution for including a file only once

2010-02-11 Thread Michael J. O'Donnell
Hans and Carl (and the list, which I neglected first time), At present, I am seeking an add-on solution, involving a definition that I can put in a utility file to include. I think I am near finding that. I am not ready to hack the lexical analyzer, and I think that should be pondered carefully, p

Re: Solution for including a file only once

2010-02-11 Thread Reinhold Kainhofer
Am Donnerstag, 11. Februar 2010 18:18:52 schrieb Michael J. O'Donnell: > For the very short term, I expect that "\includeIfAbsent", or whatever > we call it, will be most useful if it duplicates the current behavior of > "\include" as much as possible, except when it does nothing due to a > previou

Re: Solution for including a file only once

2010-02-11 Thread Michael J. O'Donnell
Hans and Carl, At present, I am seeking an add-on solution, involving a definition that I can put in a utility file to include. I think I am near finding that. I am not ready to hack the lexical analyzer, and I think that should be pondered carefully, particularly when a global reconsideration of

new essay vs. automated-engraving

2010-02-11 Thread Graham Percival
Does the new essay contain all the info we want to save from automated-engraving ? I don't care about the formatting, lack of sections, or whatever. I just want to delete the old .texi files which were extracted from the old website. If Andrew thinks that the new essay fulfils this condition, th

CG 2 working with source code

2010-02-11 Thread Graham Percival
We're down to 13 FIXMEs in the docs. More to the point, there's 2 in automated-engraving (which is old, not compiled, and should be removed as soon as somebody's reviewed the new essay), and 13 in contributor/source-code.itexi. Mark, are you still working on CG 2? Cheers, - Graham

Re: FIXMEs in Documentation/included/chord-names-jazz.ly

2010-02-11 Thread Graham Percival
I'm working on 921, since apparently nobody else is interested in working on stuff like: -FIXME add fluff +This chapter presents a quick overview of ways that people can +help LilyPond. Not the most efficient use of my time, but if that's how things are going, that's what I'll work on. I do not

Re: FIXMEs in Documentation/included/chord-names-jazz.ly

2010-02-11 Thread Francisco Vila
2010/2/11 Graham Percival : > If these must be fixed before 2.14, please fix them now. If this means that 2.14 is imminent, please remember that the docs have been a moving target until just now. There are some broken links in the new webpage, to PDF manuals. Given the deep modifications that the

Re: FIXMEs in Documentation/included/chord-names-jazz.ly

2010-02-11 Thread Carl Sorensen
On 2/11/10 8:48 AM, "Graham Percival" wrote: > Could anybody who cares about chord names look at this file: > Documentation/included/chord-names-jazz.ly > > It contains these comments: > %% This is the Banter (1987) style. It gives exceedingly > %% verbose (wide) names, m

FIXMEs in Documentation/included/chord-names-jazz.ly

2010-02-11 Thread Graham Percival
Could anybody who cares about chord names look at this file: Documentation/included/chord-names-jazz.ly It contains these comments: %% This is the Banter (1987) style. It gives exceedingly %% verbose (wide) names, making the output file take up to 4 pages. %% (FIXME: h

Re: env-fold for Guile?

2010-02-11 Thread Han-Wen Nienhuys
On Thu, Feb 11, 2010 at 2:35 AM, Carl Sorensen wrote: > I'm trying to look through all the bindings in a top-level environment and > pull out any that include "-tuning" in their name. > > It appears to me that the bindings are stored in a hash table, and I ought > to be able to do a fold procedure

Re: Solution for including a file only once

2010-02-11 Thread Hans Aberg
On 11 Feb 2010, at 05:32, Carl Sorensen wrote: I have been hunting, so far in vain, for the code implementing \include, in the hope that I can tweak that code to get the right behavior. It appears to me that \include is implemented in two places: 1) lily/lexer.ll, lines 304-336 2) lily/lil

Re: Solution for including a file only once

2010-02-11 Thread Hans Aberg
On 7 Feb 2010, at 04:51, Michael J. O'Donnell wrote: I *think* that I have the essential solution to include a file exactly once, no matter how many times it is mentioned. That is, with the following definition, \includeIfAbsent "MyFile.ly" should copy in MyFile.ly, just as though you had w

Re: problem with right-edge extra-space after \stopStaff

2010-02-11 Thread Marc Hohl
Neil Puttock schrieb: On 9 February 2010 09:20, Marc Hohl wrote: So \stopStaff does currently not end the line prematurely, but simply tells lilypond not to draw the staff lines any further, right? Yes. If it did the former, you'd get an automatic line break, and you'd never be able