From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 OOulIoh7wmRqEAAASxT56A (envelope-from ) for ; Thu, 27 Jul 2023 16:13:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mOiUIYh7wmS1QgEAG6o9tA (envelope-from ) for ; Thu, 27 Jul 2023 16:13:28 +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 4340B45F74 for ; Thu, 27 Jul 2023 16:13:28 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=autistici.org header.s=stigmate header.b=uUedD88R; 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=1690467208; 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=NzSwbKH3iiS1WgfwR+uGphRjSkEwr9o68+64waPWz7A=; b=uMbT+ajUMmEOYH4kUOkyvnobDOqaRG7YFysHfkZX2a/47QhoxKYtykEUFcniKjI2PZpUUZ 21DfcwQybgr2xXGf4j4NwhY6wc8BXEhrDdUFsdb2+JccorVk54d0krTBGB/exaNndCcUj5 4hqc72uDxAY1kl9lo3jHIYM5nxGbLcdvb/+iA31I0qm6oDA5oln5KcrAziZ3n/bUMf5nAi E0HGi3ZrbrteTQwGKDeGr2O549xibgQjKvihC0VFL7dFIAM5ufe/t3qF0pyZI0GSYHPB0q 0c7j9htV8+rpmIjWnd31Bpw/9qli7UJMZoVTBpac6vwAMXJWJBEBJK69B0YAOg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690467208; a=rsa-sha256; cv=none; b=P+vIgorql018WASw+Y8umaLd9GUZIygb5gdsm1sQJklSNMOIZFJ4rHiKBC8mnJpvDhjkLo Isi1Hs9QUz1nZVfLDo07P4K6IAlWwYJyh8lf+k+3BG4y7U5dygSk/HN7mHUecNT6PjnEhF VjA/c/CnbNUMQV8S8A7czXWDKRHxZtFRL+6GxTJp48N4GSVLBBIyEPJycNp1TQAIxNSEMj l5afhrfM5YfFyhJPwFew1PYOGoTVerJNAHT6nTY5nMflN5e2JuWsJ1QfEphS9/ue6SAmeP ZunvKRgqQg25OAOrc0PnGItdVZfKh+hGPAzuXIg7TUovyHTGxqZWB8AeKs4qyw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=autistici.org header.s=stigmate header.b=uUedD88R; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qP0ZT-0000Ea-LP; Thu, 27 Jul 2023 08:58:23 -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 1qP0ZR-0000EE-HB for emacs-orgmode@gnu.org; Thu, 27 Jul 2023 08:58:21 -0400 Received: from confino.investici.org ([2a11:7980:1::2:0]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qP0ZO-0002Vo-9u for emacs-orgmode@gnu.org; Thu, 27 Jul 2023 08:58:21 -0400 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4RBW5h0R24z114c; Thu, 27 Jul 2023 12:58:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1690462680; bh=NzSwbKH3iiS1WgfwR+uGphRjSkEwr9o68+64waPWz7A=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=uUedD88Rv4G181GO97TPIjE7Twlrw6zsarr3QGfH/JCLzb231aDgtOEVQUuELJyH3 rUlFt6NSvAF8fB70Jbpgs+zSh1H7vbc3mAtDuIGJD2X3Fj5V+eLrFjyEty3wa6TArv cuDOzMFGiFoRyz+PWwgUkLkSdwyudJsRAai3pjME= Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: jgregory@autistici.org) by localhost (Postfix) with ESMTPSA id 4RBW5f1YNwz114M; Thu, 27 Jul 2023 12:57:57 +0000 (UTC) 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> <87a5vh95wg.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: Thu, 27 Jul 2023 09:42:51 -0300 In-reply-to: <87a5vh95wg.fsf@localhost> Message-ID: <875y65cy0r.fsf@autistici.org> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2a11:7980:1::2:0; envelope-from=jgrg@autistici.org; helo=confino.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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -7.68 X-Spam-Score: -7.68 X-Migadu-Queue-Id: 4340B45F74 X-Migadu-Scanner: mx1.migadu.com X-TUID: HSw7Rm0cvBoT On 27 Jul 2023, Ihor Radchenko wrote: > 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? Bug fix. >> 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 patch is a bug fix. There are no changes for the user. Prior to the bug, we were able generate a "cropped" image when running: #+begin_src lilypond :file myfile.pdf \version "2.20" \paper { tagline="" } { c' e' g' e' } #+end_src This is no longer the case, hence the patch. >> 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". Basic mode is explained in https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html. In summary: With basic-mode you can embed LilyPond snippets into an Org-mode file, compile and export them using typical Org-mode commands (such as C-c C-e l p for PDF export). This is useful if you want to mix blocks of LilyPond-generated score with text, and perhaps other images to export to LaTeX, Docbook, PDF, or HTML. > And what about users who do want a full page? In that case the user would use "arrange mode", which is also explained in the ob-doc-lilypond.html page. Try running the source block example above with arrange-mode enabled using M-x org-babel-lilypond-toggle-arrange-mode. To quote from that page: With arrange-mode you can develop complete pieces of score whilst organizing sections of the piece using typical literate programming techniques. This allows you to assemble scores programatically by using tables to store information among other methods. > 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. -- Jonathan