From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KACdDfbBxGSRygAASxT56A (envelope-from ) for ; Sat, 29 Jul 2023 09:38:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uMuMDfbBxGTkVwEAauVa8A (envelope-from ) for ; Sat, 29 Jul 2023 09:38:30 +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 9F3FB45D71 for ; Sat, 29 Jul 2023 09:38:29 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VTHIduu5; 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=1690616310; 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=5pNyTsQJ7dviI596FVDSGF1NyZEQTLLe9dJ/OZl1ByM=; b=TZFj12w9zNjEMqp5exuN0vXk1enzrqPWEEzEnpuy0j6PW+wWbFW0kS3/Fecfg0LM5pblQH A6Go7WaFLkm+eeiDDDKtryHF44PUipzdAxZnVLXCjuPIleuBtwUCBvMR2V6iMb2Xgwq6T8 TaTD9XvWL1BIc5keQ6OuxzR0MCVhS6+RKlqGO4g/tCbgFRNIhk4fA5aLcbb02txUkG2Hde TnuKC67RJB81vmZkT4q25QJxOypLeTxu6yZJLZNMkUud2yJpDWtfsCruX0LK2NbIYheUEO iJoIxQt16xIgaPB1UYpFqdb8vcNWPyF6+INB7jqAJhF437DHqRCae5NeqL3n9Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690616310; a=rsa-sha256; cv=none; b=TE258qYBClXfbWYyI4Os7YEUZ8mW85VFQyvknNrd37AxKbfgZaUOqH0B5rahU8uWJKR4ar 66qZWiPpRAXEjfGaCKYHIu+hOo/Vp/+w2JbEqpTnRFToGzrGKamiBVBhvH4G4hHQJ5KyeW YG4/d/YACkyep9JAnNm8LI519AYpFUCfmF9U2VgqUCiDGMHqhq/V6DWddtE7uASiCqPOf4 MCSebv+WkS7yRHGpdbtX56GRzBzhFS+NXd+V0Fp/F3SL1VNiCzOHepYsRm6VBPCfphBR9B DF97VnoS5Ah5oo8n5zVCOXA0ZMbo2CYNcyqQ/zS2vIz56JAa4gF38JtOsTD15w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VTHIduu5; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPeBE-00007m-3F; Sat, 29 Jul 2023 03:16:00 -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 1qPeBC-00007e-NS for emacs-orgmode@gnu.org; Sat, 29 Jul 2023 03:15:58 -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 1qPeBA-00047M-Rd for emacs-orgmode@gnu.org; Sat, 29 Jul 2023 03:15:58 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9D61E240101 for ; Sat, 29 Jul 2023 09:15:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1690614954; bh=cawX413dpa9mSMX72sXKVZH+f5v6GdePHDulnzWTUrw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=VTHIduu5oO/M8d2GiVV6LgEeR20nha75kDn6/JOA8oYtED7lUkTi8PSYs+BELA7KR m9dToVAlB2HOEdg0YVh+sxiroGt7suKv+jA9KKqP06so8D2CauwMzzEuxEjVi9AkPU 5TIBnTP5fdTHBbPCk7sOxro7Sv0v4hYRNuhK60lWFCDs/9ZRG7ZtECFJcn01eA3QIr PJdYInCG98hTMJPXcfaXcPZBunYod+Web+n05LC6OLrpmcmjJO2eFwzFaDZh1lOa9Z JOnkJLGE+g0daqwP4B53uH6m5EPDeKFFaQOncJAqR/BPkFu2UFgxFlpBZVsaPxh4rk 4eZfhjs/TzRrg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RCbQ16RXDz9rxK; Sat, 29 Jul 2023 09:15:53 +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: <87o7jwazmn.fsf@autistici.org> References: <87bl9rq29m.fsf@gnu.org> <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> <87o7jwazmn.fsf@autistici.org> Date: Sat, 29 Jul 2023 07:16:09 +0000 Message-ID: <87pm4bp4qu.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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -6.73 X-Spam-Score: -6.73 X-Migadu-Queue-Id: 9F3FB45D71 X-Migadu-Scanner: mx1.migadu.com X-TUID: esYPDj+pYwIN Jonathan Gregory writes: > The basic-mode term is not very helpful. Perhaps > [inline/cropped/embedded]-mode would have been more descriptive in > terms of what it does. Sounds reasonable. I like "inline-mode", although no strong opinion. > ... 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. Do people have reasons to use older versions even when they could use the newest? For example, python2/3 or MathJax4,4- were breaking and some people were relying on legacy code. So, we had to provide some extra versions checks and toggles on Org side as well. >> #+name: test >> #+begin_src emacs-lisp >> (message "This is test") >> #+end_src >> >> #+begin_src emacs-lisp :prologue (org-sbe test) >> (+ 1 2) >> #+end_src Correction: `org-sbe' will execute src block. So, my example is not completely accurate. Getting src block body is still doable, but a tiny bit more tricky: #+begin_src emacs-lisp :prologue (org-babel-ref-resolve "test[]") (+ 1 2) #+end_src It think that it will be logical to add reference resolution to :prologue/:epilogue. I will see what I can do. (I may need to look through which header args are resolved and which are not - there seems to be no consistency) > 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) (This will work because ob-org, by accident, produces body as result of evaluation, with default header args) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at