From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: Re: Org-babel-lilypond always renders full pages Date: Thu, 02 Apr 2020 16:35:05 +0800 Message-ID: <87wo6ymgjq.fsf@gmail.com> References: <3891f510-f05e-103b-6deb-a8db8a741a83@posteo.de> <87mu7y7lyb.fsf@autistici.org> <914ed623-88fc-7d93-6df6-408297c3086d@posteo.de> <871rpaievd.fsf@gmail.com> <87y2rigz8y.fsf@gmail.com> <87h7y463eu.fsf@autistici.org> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43742) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJvT7-0008Az-Rd for emacs-orgmode@gnu.org; Thu, 02 Apr 2020 04:44:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJvT6-000306-Hn for emacs-orgmode@gnu.org; Thu, 02 Apr 2020 04:44:57 -0400 Received: from [183.249.132.193] (port=4959 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jJvT5-0002yy-Dz for emacs-orgmode@gnu.org; Thu, 02 Apr 2020 04:44:56 -0400 In-reply-to: <87h7y463eu.fsf@autistici.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Jonathan Gregory Cc: Oliver Heck , emacs-orgmode@gnu.org =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jonathan Gregory writes: > Hi > > On 30 Mar 2020, stardiviner wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA256 >> >> >> stardiviner writes: >> >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA256 >>> >>> >>> You might want to try this: >>> >>> #+begin_src emacs-lisp >>> (add-to-list 'org-babel-default-header-args:lilypond >>> '((:prologue . "\paper{ >>> indent=3D0\mm >>> line-width=3D120\mm >>> oddFooterMarkup=3D##f >>> oddHeaderMarkup=3D##f >>> bookTitleMarkup =3D ##f >>> scoreTitleMarkup =3D ##f >>> }"))) >>> #+end_src >>> >> >> I found this custom setting lilypond header arguments will not work. Bec= ause this code function: >> >> #+begin_src emacs-lisp >> (defun org-babel-lilypond-get-header-args (mode) >> "Default arguments to use when evaluating a lilypond source block. >> These depend upon whether we are in Arrange mode i.e. MODE is t." >> (cond (mode >> '((:tangle . "yes") >> (:noweb . "yes") >> (:results . "silent") >> (:cache . "yes") >> (:comments . "yes"))) >> (t >> '((:results . "file") >> (:exports . "results"))))) >> >> (defun org-babel-lilypond-set-header-args (mode) >> "Set org-babel-default-header-args:lilypond >> dependent on ORG-BABEL-LILYPOND-ARRANGE-MODE." >> (setq org-babel-default-header-args:lilypond >> (org-babel-lilypond-get-header-args mode))) >> #+end_src >> >> It always reset and return one result of two conditions. >> >> I think this is a bug. > > So are all org-babel-default-header-args:LANG custom variables? In the > ob-lilypond.el library the headers are hard-coded. > > [...] Yes, it's hard-coded in that function definition. So setting that header arguments variable will not work at all. =2D --=20 [ stardiviner ] I try to make every word tell the meaning what I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 =20=20=20=20=20=20 =2D----BEGIN PGP SIGNATURE----- iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl6Fo7oUHG51bWJjaGls ZEBnbWFpbC5jb20ACgkQG13xyVromsP2cQf7Bj8/dS+k/P5Hu5sF9gccS8mzrIWL aLrJ/lFtkkwP7IbAUTYxW3zNAISHSa285oCha2gWzqT8Vc2Vv/NIhpwVKOvq5Ifg L9FRQuftP3hHekdVAcSwPFMV0ejXPI3vItCzgDhk1+G3BcMwphW37LfOT5v0Sj0D 47cGBhgobPhX4Q3vtPonCdtSgt+bhEsi0Xxa+uNmfhOEEhVflEgvcSLcXtPs5cuv zkUZhJXCmPx/qFlMT0DphsGk/KLX/NXTfLFQvZ0lA30Vl2Hypnsa6L32MIlZZJOU rIRgYOwGsFxCCSZfRm6SosVhSApZmJCR9BbjPwVYOlnScJJr8uXsw9ofTA=3D=3D =3DcyEM =2D----END PGP SIGNATURE-----