Re: [O] no pdf-output in lilypond code blocks

2013-01-31 Thread Achim Gratz
Florian Beck writes: > I cannot reproduce this. The code works for me and byte compiling > doesn't generate any warning. > > GNU Emacs 24.3.50.7 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.0) of > 2013-01-28 on flo-laptop Fail: 24.2 (unknown upattern), 23.[34] (malformed function), 22

Re: [O] no pdf-output in lilypond code blocks

2013-01-31 Thread Florian Beck
Achim Gratz writes: > Achim Gratz writes: >> Florian Beck writes: >>> I don't think so. The string evaluates to itself or am I missing >>> something? >> >> If it would fall under "SELFQUOTING" then yes (but I really don't >> understand what the doc string is trying to tell me there and what would

Re: [O] no pdf-output in lilypond code blocks

2013-01-31 Thread Achim Gratz
Achim Gratz writes: > Florian Beck writes: >> I don't think so. The string evaluates to itself or am I missing >> something? > > If it would fall under "SELFQUOTING" then yes (but I really don't > understand what the doc string is trying to tell me there and what would > be used for comparison). I

Re: [O] no pdf-output in lilypond code blocks

2013-01-31 Thread Bastien
Hi Achim, Achim Gratz writes: > (or (cdr (assoc (file-name-extension out-file) > '(("pdf" . "--pdf ") > ("ps" . "--ps ") > ("png" . "--png " > "--png ") > > work just as well? Yes, I've committed this change, thanks. -- Bastien

Re: [O] no pdf-output in lilypond code blocks

2013-01-30 Thread Achim Gratz
Florian Beck writes: > I don't think so. The string evaluates to itself or am I missing > something? If it would fall under "SELFQUOTING" then yes (but I really don't understand what the doc string is trying to tell me there and what would be used for comparison). It seems that a string constant

Re: [O] no pdf-output in lilypond code blocks

2013-01-30 Thread Florian Beck
Achim Gratz writes: > This would be a bug, I believe you should use backquotes on the string > constants I don't think so. The string evaluates to itself or am I missing something? The real (but harmless) bug is > (t "--png ")) should be (_ "--png ")) -- Florian Beck

Re: [O] no pdf-output in lilypond code blocks

2013-01-30 Thread Achim Gratz
Bastien writes: > Hi Florian, > > Florian Beck writes: > >> I can live with setting `ly-gen-pdf', but maybe something like >> >> (pcase (file-name-extension out-file) >> ("pdf" "--pdf ") >> ("ps" "--ps ") >> ("png" "--png ") >> (t "--png ")) >> >> would be even bett

Re: [O] no pdf-output in lilypond code blocks

2013-01-30 Thread Bastien
Hi Florian, Florian Beck writes: > I can live with setting `ly-gen-pdf', but maybe something like > > (pcase (file-name-extension out-file) > ("pdf" "--pdf ") > ("ps" "--ps ") > ("png" "--png ") > (t "--png ")) > > would be even better? Indeed. This is now the c

Re: [O] no pdf-output in lilypond code blocks

2013-01-26 Thread Florian Beck
Bastien writes: > Hi Florian, > > Florian Beck writes: > >>> If so, I'll fix ly-process-basic so that it depends on >>> ly-gen-png/pdf/html/svg. >>> >>> Thanks for confirming, >> >> Thanks for fixing. > > Done -- please have a try and let me know. Minor hitch: the variable is called `ly-use-eps

Re: [O] no pdf-output in lilypond code blocks

2013-01-26 Thread Bastien
Hi Florian, Florian Beck writes: >> If so, I'll fix ly-process-basic so that it depends on >> ly-gen-png/pdf/html/svg. >> >> Thanks for confirming, > > Thanks for fixing. Done -- please have a try and let me know. -- Bastien

Re: [O] no pdf-output in lilypond code blocks

2013-01-25 Thread Florian Beck
Hi Bastien, > Line 155 in ob-lilypond.el use --png. > > Is it okay to use --pdf --html and --svg here too? The only choices are --pdf, --png, and --ps. See: http://www.lilypond.org/doc/v2.16/Documentation/usage/command_002dline-usage#invoking-lilypond > > If so, I'll fix ly-process-basic so tha

Re: [O] no pdf-output in lilypond code blocks

2013-01-23 Thread Bastien
Hi Florian, Florian Beck writes: > It seems `ly-process-basic' hardcodes a "--png" option. If I change it > to "--pdf" everything works fine (though it won't produce pngs any more, > I guess). Of course, it should really be set as appropriate for the > extension. Line 155 in ob-lilypond.el use

[O] no pdf-output in lilypond code blocks

2013-01-17 Thread Florian Beck
Hi, execute the following code block: #+begin_src lilypond :exports results :file 93bff287-036e-4129-8f17-fd6374f4ccdc.pdf \header { tagline = ##f } \score{ \relative c' { \key d \minor d2 a'2 f2 d2 }} #+END_src This will create a results block: #+RESULTS: [[file:93bff287-036e-4129-8f17-fd6374