From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1 with LMTPS id mDPkMU9MiV75DQAAk0OIDg (envelope-from ) for ; Sun, 05 Apr 2020 03:11:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 0AyiEk5MiV6eRAAA1q6Kng (envelope-from ) for ; Sun, 05 Apr 2020 03:11:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2DC09941D1F for ; Sun, 5 Apr 2020 03:11:08 +0000 (UTC) Received: from localhost ([::1]:44096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKvgf-0007CV-KD for larch@yhetil.org; Sat, 04 Apr 2020 23:11:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33389) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKvgH-0007CB-3F for emacs-orgmode@gnu.org; Sat, 04 Apr 2020 23:10:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKvgF-0003tn-Le for emacs-orgmode@gnu.org; Sat, 04 Apr 2020 23:10:40 -0400 Received: from [183.249.128.207] (port=6716 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jKvgD-0003m6-Rq for emacs-orgmode@gnu.org; Sat, 04 Apr 2020 23:10:39 -0400 Received: by dark.localdomain (Postfix, from userid 1000) id 35484243DBE; Sun, 5 Apr 2020 11:10:30 +0800 (HKT) 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> <87wo6ymgjq.fsf@gmail.com> <87zhbt4hux.fsf@autistici.org> User-agent: mu4e 1.3.8; emacs 28.0.50 From: stardiviner To: Jonathan Gregory Subject: Re: Org-babel-lilypond always renders full pages In-reply-to: <87zhbt4hux.fsf@autistici.org> Date: Sun, 05 Apr 2020 11:10:29 +0800 Message-ID: <87blo68w62.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 183.249.128.207 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: numbchild@gmail.com Cc: Oliver Heck , emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=default; t=1586056269; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Ch27Q7WfpYEY4BbH/c+QUYj8+yt+5khj2cO4c72lOVM=; b=Q2m9CeXlaLdspJgJzyROwjv8Jma56XJnxZVOzJz3MGtrMzX8q3/6pEeZiWSsyfaUZc9sc/ qbUb06a8z/GtW162WCSqX15kwF1+fnjMf2RUVG3Dv520JKBI8G2++o1PQqzmSwk5fBDfMO XdmddsMRuc/8JS9RrIDhj/Kq2z5TfMQ= ARC-Seal: i=1; s=default; d=yhetil.org; t=1586056269; a=rsa-sha256; cv=none; b=qtGsaom5dmOIklF5x7T5VolDKhmzapyXMs49VJNpvw3OLwWWftLGD7PLUvEw6AXGr+SqKB lbZrIIODyXk8hAqpqQ9J2YklZXxqJWDSZrLbS06L/70PF7AgtdYtDI68iLcFoU4ELp2TpV Oj3xelEJKI1z23Hgvbivi4168nGxfPM= ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scanner: scn0 X-Spam-Score: 1.59 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scan-Result: default: False [1.59 / 13.00]; HAS_REPLYTO(0.00)[numbchild@gmail.com]; GENERIC_REPUTATION(0.00)[-0.58619605981185]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; FREEMAIL_FROM(0.00)[gmail.com]; REPLYTO_ADDR_EQ_FROM(0.00)[]; ARC_SIGNED(0.00)[i=1]; R_MISSING_CHARSET(2.50)[]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.33), country: US(-0.01), ip: 209.51.188.17(-0.59)]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; FROM_NEQ_ENVFROM(0.00)[numbchild@gmail.com,emacs-orgmode-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[gmail.com]; HAS_LIST_UNSUB(-0.01)[]; MIME_TRACE(0.00)[0:+]; FORGED_SENDER_MAILLIST(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : SPF not aligned (relaxed), No valid DKIM,none] X-TUID: FnqXgTQ/WbYG =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jonathan Gregory writes: > Hi > > On 02 Apr 2020, stardiviner wrote: > >> -----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. B= ecause 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. > > OK, I had a closer look and none of the other libraries set > org-babel-default-header-args:LANG in the file itself. IOW ob-lilypond > is the only one that does this, and it does this to allow toggling > between two modes (basic and arrange) and setting the header args > relative to the mode used. But there's a cost to resetting > org-babel-default-header-args:lilypond which is it prevents users from > making modifications to it. > > I'm not sure how to deal with this. Maybe others can chime in. Can report this bug to ob-lilypond.el maintainer. I have not found any cont= act info like email in source code file. Does anyone can get in touch with the maintainer? =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----- iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl6JTCUUHG51bWJjaGls ZEBnbWFpbC5jb20ACgkQG13xyVromsPRbAf6Al3017uS7rUl7qNyOJ1PBxVGvzlL vxtM5yaa3N+zuDgiHpQHKtXGyTqPrkWLQDrg1ncogPr/P+AV2oGu0uoE797Fn3lI mCKj6dJXRnnX3g88ag7A0zKb/8LWoZxHh1aKKdMJ88jkS0Kqw2pnAKbYBQkOnAWq Ymd2/i2G/ZN5dR+DRmotbed8eUt5uMRGdwZR7EPFtlWcB7/i6d/thJLmNbGqyYTI gB16b9gxr8D+h27Wb7tX+7NhSLzkRsaQuGORm0f6aRzBWEydZK3QUSLwDqQ3wYjX hMT7aIuzFeZs8fTyX1/QFE69I7iGIRpvFdygm/+smAxxvkbURSQZyvQnew=3D=3D =3DJx8T =2D----END PGP SIGNATURE-----