emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Tiny change in ob-lilypond.el
@ 2013-02-07  0:59 Thorsten Jolitz
  2013-02-07  8:45 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Jolitz @ 2013-02-07  0:59 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 130 bytes --]


Hi, 

A tiny change to make ob-lilypond export the results in the format
specified for the ':file' in the source-block header. 


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch for correct lilypond output format --]
[-- Type: text/x-patch, Size: 823 bytes --]

From 4d5c79ed1607c3d0263bcde33fc1d795a96aad5f Mon Sep 17 00:00:00 2001
From: tj <tj@data-driven.de>
Date: Thu, 7 Feb 2013 01:51:14 +0100
Subject: [PATCH] "test.pdf" replaced with 'out-file' in ly-process-basic
 (otherwise all output-files are in pdf format).

---
 lisp/ob-lilypond.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ob-lilypond.el b/lisp/ob-lilypond.el
index 07ea184..6080a5a 100644
--- a/lisp/ob-lilypond.el
+++ b/lisp/ob-lilypond.el
@@ -152,7 +152,7 @@ specific arguments to =org-babel-tangle="
       " -dbackend=eps "
       "-dno-gs-load-fonts "
       "-dinclude-eps-fonts "
-      (or (cdr (assoc (file-name-extension "test.pdf")
+      (or (cdr (assoc (file-name-extension out-file)
 		      '(("pdf" . "--pdf ")
 			("ps" . "--ps ")
 			("png" . "--png "))))
-- 
1.8.1.2


[-- Attachment #3: Type: text/plain, Size: 24 bytes --]



-- 
cheers,
Thorsten


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Tiny change in ob-lilypond.el
  2013-02-07  0:59 [PATCH] Tiny change in ob-lilypond.el Thorsten Jolitz
@ 2013-02-07  8:45 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2013-02-07  8:45 UTC (permalink / raw)
  To: Thorsten Jolitz; +Cc: emacs-orgmode

Hi Thorsten,

Thorsten Jolitz <tjolitz@gmail.com> writes:

> A tiny change to make ob-lilypond export the results in the format
> specified for the ':file' in the source-block header. 

Uh, silly me.  Applied, thanks!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-07  9:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-07  0:59 [PATCH] Tiny change in ob-lilypond.el Thorsten Jolitz
2013-02-07  8:45 ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).