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 wMbYInfUw2RMmwAASxT56A (envelope-from ) for ; Fri, 28 Jul 2023 16:45:11 +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 MHaWInfUw2QdfgEAauVa8A (envelope-from ) for ; Fri, 28 Jul 2023 16:45:11 +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 2F9385776C for ; Fri, 28 Jul 2023 16:45:11 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=autistici.org header.s=stigmate header.b=dSnMqkLj; 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=reject) header.from=autistici.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690555511; 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=boo72S8I/4W+nRXopLORlthjhUtaoE41ThXwBZQ1MRw=; b=EEwrUk/nuRBu9xjMxAh11EPtz3hwg8Ahh8/c/kPkl2xCC3BuQge5dT9KFkYlWcYB7qCXZs 1QkPB3Kf113TEnstrrP/UT9wA6txWS6VdtMuAZ2+fYSEJZKApBolxlrqrFIAV39F+KkxDF ApLw0vf3fN6lN6s5sfguScw2qO0S+xZKeIwiBy0OWeEoT9Viw2i9hAkVtjoE6KHyiI+OtQ EYRIzMEEptEfkUiQIE/oDDo/dddHO0I/7Y0kbM5ObvuvbynMYBz2e4EiwX0rachHOvvhBs FkfAathIkHnGtcfJSBPg8DIxZJRBZRlyOTBxsNV7RLpdtVJVDkRYYuN05fVIfg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=autistici.org header.s=stigmate header.b=dSnMqkLj; 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=reject) header.from=autistici.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690555511; a=rsa-sha256; cv=none; b=PpRV/LogRLuIp9pTvsU0n4FQzXMVwqp5aPafAaQ+7jtbhHVfezNINzSiBGXAs/VOjxerLY InB+jqXPuVlcwQknQP5BPT028/VxtkjA9XjMGP3pIDvnKuq+8GPJS5eMLfU4WTDMiWaJDU pjgkL+J9M8/4B7wW9zhkaml7OAsZDLR8wDK2vH973rAKpNz1Y4Pg8xyoc0H9T65jDfk+K6 oD+puaBhTdfxSp8dx96d6M0m6keBfY2Qm9afcR6LqM2Qoz8FRxUSm9rtbq05+ZqWejqtaw lmMUvHluMbkKyW+p0FODugdCDrsWk24RKjFGJ8rrmDh7s669WclxWveHAZZUDw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPOIc-0000F1-Vi; Fri, 28 Jul 2023 10:18:35 -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 1qPOIb-0000Ee-4C for emacs-orgmode@gnu.org; Fri, 28 Jul 2023 10:18:33 -0400 Received: from devianza.investici.org ([2c0f:f930:0:4::108]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPOIY-0002Qf-Q2 for emacs-orgmode@gnu.org; Fri, 28 Jul 2023 10:18:32 -0400 Received: from mx2.investici.org (unknown [127.0.0.1]) by devianza.investici.org (Postfix) with ESMTP id 4RC8qs2f1Nz6vHK; Fri, 28 Jul 2023 14:18:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1690553897; bh=boo72S8I/4W+nRXopLORlthjhUtaoE41ThXwBZQ1MRw=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=dSnMqkLjWFn3bu+SNtt4Ff/q/HFJcqk078S7UlU1PNFWNELyd0Mz8NEeAT+fsDP1q 0POEfGmksDO2qt0L9X/aSXkFGWNM7waoQg8C0UbwiC6zgjxM9EfVIkVmfW0rUBFLhA 38DR0QbjvVkqxIqANYte+alKDjlHLzc7Z+k173jE= Received: from [198.167.222.108] (mx2.investici.org [198.167.222.108]) (Authenticated sender: jgregory@autistici.org) by localhost (Postfix) with ESMTPSA id 4RC8qq4SfCz6vGs; Fri, 28 Jul 2023 14:18:15 +0000 (UTC) References: <87bl9rq29m.fsf@gnu.org> <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> <87a5vh95wg.fsf@localhost> <875y65cy0r.fsf@autistici.org> <87ila4fpw5.fsf@localhost> User-agent: mu4e 1.9.0; emacs 28.1 From: Jonathan Gregory To: Ihor Radchenko 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?) Date: Fri, 28 Jul 2023 11:02:58 -0300 In-reply-to: <87ila4fpw5.fsf@localhost> Message-ID: <87o7jwazmn.fsf@autistici.org> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2c0f:f930:0:4::108; envelope-from=jgrg@autistici.org; helo=devianza.investici.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-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: -6.88 X-Migadu-Queue-Id: 2F9385776C X-Migadu-Spam-Score: -6.88 X-Migadu-Scanner: mx0.migadu.com X-TUID: a19O56JhQNOQ On 28 Jul 2023, Ihor Radchenko wrote: > I am slightly confused because there seems to be a need to > define some page settings manually to get "embedded" images. In > the examples in > https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html#org2c29903, > there is no mention that we need to define page geometry. Yet, > the section is claiming that base mode "can embed LilyPond > snippets into an Org-mode file". It is confusing, I agree, and I'm still learning as we move forward. I guess the question is should basic mode *always* generate cropped images? If the answer is yes, and it looks like it is, then maybe we should include paper settings in the ob-lilypond file. The basic-mode term is not very helpful. Perhaps [inline/cropped/embedded]-mode would have been more descriptive in terms of what it does. Anyway, hard-coding paper settings would simplify things a bit, but I'm not sure that hard-coding the version is a good idea and may produce errors with older installations. >>> Noweb and babel references are not allowed in header args. And >>> ob-emacs-lisp also does not support :prologue. >> >> I see, so there's no built-in way to auto-insert a boilerplate >> without using the <<>> reference *inside* source blocks. >> Anyway, let's not worry about this for now. > > There is, but you will have to use direct Elisp to get :prologue > string: > > #+name: test > #+begin_src emacs-lisp > > (message "This is test") > #+end_src > > #+begin_src emacs-lisp :prologue (org-sbe test) > (+ 1 2) > #+end_src Interesting. I didn't know about org-sbe. Looks useful. I'll look into it when I find time. In the meantime, we can use: #+PROPERTY: header-args:lilypond :noweb yes :exports results :prologue (org-sbe version-and-paper) if we replace "lilypond" with "org" in the version-and-paper block. Prologue is useful also for those of us who keep their settings in a separate file: #+PROPERTY: header-args:lilypond :exports results :prologue "\\include \"settings.ly\"" Thanks! -- Jonathan