فهرست منبع

ob-lilypond.el (ly-process-basic): Don't use `ly-gen-png'

* ob-lilypond.el (ly-process-basic): Don't use `ly-gen-png'
and friends, rely on the extension of the output file.

Thanks to Florian Beck for suggesting this.
Bastien Guerry 12 سال پیش
والد
کامیت
f518bc8f81
1فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  1. 5 4
      lisp/ob-lilypond.el

+ 5 - 4
lisp/ob-lilypond.el

@@ -152,10 +152,11 @@ specific arguments to =org-babel-tangle="
       " -dbackend=eps "
       "-dno-gs-load-fonts "
       "-dinclude-eps-fonts "
-      (cond (ly-gen-png  "--png ")
-	    (ly-gen-pdf  "--pdf ")
-	    (ly-use-eps  "--ps ")
-	    (t "--png "))
+      (pcase (file-name-extension out-file)
+        ("pdf" "--pdf ")
+        ("ps" "--ps ")
+        ("png" "--png ")
+        (t "--png "))
       "--output="
       (file-name-sans-extension out-file)
       " "