From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id ePhOMWMiwmRMHgAASxT56A (envelope-from ) for ; Thu, 27 Jul 2023 09:53:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qJgzMWMiwmSvPwEAauVa8A (envelope-from ) for ; Thu, 27 Jul 2023 09:53:07 +0200 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 560856193C for ; Thu, 27 Jul 2023 09:53:07 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=dH9p6vX0; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690444387; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=nI37cRG7NxGjYHP+w5ePC879J7mmhXVB/ylfjUMV9J0=; b=CJ4CmpZGrBdIwYSg7vcx3HCSUx2VYYwHymd1D24lSf6Kyr2lZ7T3HuTLpnhEI5q6eEBT90 xZdlkCNR/M27S+e10qVaAPgk/otscEt319u1d/0SfeMOEWR4julF2mCdCWVuavX1fOySSZ ZR+T2a2+tjkMUMRELniiEvD6Cm2k44t4o27lvmJ1H/A5G3u7UlVEyPsCIEv8EZAs76omdt yey68osaIWLiFbG3NsvF+PGkqd8CtfGnWLwqxNZk5byuwhGcgQ5qzHdG1M/8Dd/8E6lAyv n2uCEdseDVcn6Zp0e1QX8/PDU1U7p6hUE/j7JQf2JGsO6XBgdVCLu58kJ6RK+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=dH9p6vX0; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690444387; a=rsa-sha256; cv=none; b=ScXUsfE5cgxA8Ectb9agU29ste4LB8XEbQoTVGsHZNywbTVsKDb0cmuSViSUr2zxqecUXZ 3ZbX3e6quXxu+ecgcep95zTOrwFQtph/O6NKQ6NWiCnsklTRgKr0vjFneWa98a0GPdSZuO tD+z8LlBZw3TuwElS1CB9P8ndRdlgSe0GEdzoGiPKdV2ptN/qoMLJeMNrP2tiuYdQ6Gb1+ yqMOA2fExKU+89uJoaLmJp/CEiNm8FkpfluZR2AX1DdwGspEDy3iVp4pz47QAcAfO9uteA Y6LzxCsyY4ZxspFpxo2nsyvT/O+HDNU8pByNxxpX+lmgDB8/fo7BERBue9YTVw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOvJ2-0004Lf-9B; Thu, 27 Jul 2023 03:21:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOvJ0-0004KH-50 for emacs-orgmode@gnu.org; Thu, 27 Jul 2023 03:21:02 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOvIy-0001MC-0I for emacs-orgmode@gnu.org; Thu, 27 Jul 2023 03:21:01 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9AB6D240103 for ; Thu, 27 Jul 2023 09:20:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1690442456; bh=dGoJ/Bznck7E9gzHZCBQFf1lMIyo3cPBndAaQghVVsk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=dH9p6vX0QDTUwfB861T3ejDlLEoJ6I7Aj7YNQxzDsbZYjdd9hI9Ffco5Px5nzdMOa b8f8GI3nJpQt1e497NGhIzoVkfnuqYG8xmkzq8TwKVShm/IVxQ+lbBs1RQY/3XPnVz d6hitvskBoA5GAEYi1W4lHdSFVlvxUgileVvSjzjdIsHQp9mztY8XJTcc/085Dw+Jo 6z/RdHeYE5hgVZh+TeePAQ9GXkTp6snOsVe63Vzhet+0psZpSdHLreRwLoh3oBWh5o iBPiWaWNRJh79V7B2QjviGuHn9hyVEiKephrQ1+KEPZXgwbPD19/wGqKCi9w9rePp8 iFh7Tedp5aktg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RBMcl68Zyz6tw8; Thu, 27 Jul 2023 09:20:55 +0200 (CEST) From: Ihor Radchenko To: Jonathan Gregory Cc: "Dr. Arne Babenhauserheide" , "Victor A. Stoichita" , emacs-orgmode@gnu.org Subject: Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?) In-Reply-To: <87ila696wu.fsf@autistici.org> References: <87bl9rq29m.fsf@gnu.org> <875yzzilq0.fsf@cnrs.fr> <871ram4x83.fsf@web.de> <87a5w15jur.fsf@localhost> <87fs5svjqb.fsf@autistici.org> <87a5w0yvhf.fsf@localhost> <87ilam3bv1.fsf@autistici.org> <877cr2id09.fsf@localhost> <87zg3uxyba.fsf@autistici.org> <87sf9lv9ta.fsf@localhost> <878rbchyt9.fsf@autistici.org> <87edl3xdhe.fsf@localhost> <87tttyjw6b.fsf@autistici.org> <878rb990n5.fsf@localhost> <87r0p1pk2y.fsf@autistici.org> <87jzus8ive.fsf@localhost> <87mszj99n0.fsf@autistici.org> <87edkvm6kv.fsf@localhost> <87ila696wu.fsf@autistici.org> Date: Thu, 27 Jul 2023 07:21:03 +0000 Message-ID: <87a5vh95wg.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -5.21 X-Migadu-Queue-Id: 560856193C X-Migadu-Spam-Score: -5.21 X-Migadu-Scanner: mx0.migadu.com X-TUID: ZFb8nV73WQUK Jonathan Gregory writes: >> Ok. That fix has been already installed. >> https://git.sr.ht/~bzg/worg/commit/6f69d212f41bc372426dc9b4df286638fe8f2a92 > > To the extent of the lilypond.org file, yes, but only if the > output is a PDF. My suggestion is to revert that commit and > incorporate the changes into ob-lilypond. Then, may you elaborate what purpose the changes are going to serve? Automatic page sizing? Automatic page settings? > The purpose of the patch was to fix the problem described in > https://masto.ai/@rfc1149/110674961710491363. I wasn't trying to > introduce anything new. If we want to add boilerplate code to ob-lilypond, it does sound like introducing something new. Again, I feel confused. Please, explain in more details what you want to archive in terms of functionality. > No, the ob-lilypond patch is needed. It allows users to generate > music fragments (as opposed to a full page) in basic mode using > pdf, eps, and png. May your please explain what is "basic mode". And what about users who do want a full page? >> There is :prologue standard header argument. However, it is >> currently not supported by ob-lilypond. (which is a bug) > > Can you show me how that's done in elisp? I would expect the last > block to output "foobar". > > #+begin_src elisp :noweb-ref test > (setq x "foo" y "bar") > #+end_src > > #+begin_src elisp :prologue <> :noweb yes > (concat x y) > #+end_src Noweb and babel references are not allowed in header args. And ob-emacs-lisp also does not support :prologue. You can try #+begin_src gnuplot :prologue set xrange [0:1] plot x #+end_src or #+begin_src gnuplot :prologue (format "set xrange [0:%d]" 11) plot x #+end_src -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at