From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id kOHqGwWVMWUa3QAAauVa8A:P1 (envelope-from ) for ; Thu, 19 Oct 2023 22:43:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kOHqGwWVMWUa3QAAauVa8A (envelope-from ) for ; Thu, 19 Oct 2023 22:43:49 +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 369B15CF4B for ; Thu, 19 Oct 2023 22:43:48 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=att.net header.s=s1024 header.b=jsjBjelX; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697748229; 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=5HwWp5tn9RVcWJ0KO+cA37WJJ0geirSVzAZOuklSsJ8=; b=YHwngnn7X2ntzfCJ3aLcRTqV/LrPgWBcic4aYG8lKLeQT4qygL/zrfN997DlesUHgebTvm nGTFVhiRk8LWK+dpQniD51JezI+3QBd1F2laGOLsWqyIMApfYP0qo7xSyxURf9fYavv3dS SydRiu4giVnPsqwp58ABvDPYI7B/3lvuJ1SJXpTekiAR5uBGgo9Ebc59ueTX+tkxd9OuO0 OF4HI1t+1RxdbWPNAMfoBGXFLORXNbjnIXoUNUo+TkllIygTJ+X+DGC7k8/ncRJcg4Rv2Z Lkj++EW7SowNWuelHgouZvn+K8fritR057YITAYwbJNCWPsrO7nHAd2ERLG/hQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=att.net header.s=s1024 header.b=jsjBjelX; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697748229; a=rsa-sha256; cv=none; b=fE+bE5j8NNANxlzJ/jaRL3TW5NQtfF6NoVAqvXIs/F+IycEXbbCzjoxNBvTPxut/qLy9iv xW44tdF2SpX2J5/xW826p1+XNvn7304vlPUPm5ymF50OJ3W6RSwbeSQT2LpmXWmGfMtkIe MTSjWsUsTF2S/SwFPjAvtkjqerHTPtCFv64iydnbq3px1Nr5lTLvpZjWZ6EoA5Ty6eqyf8 IbN/6oqGl0OiuJffAf7UQ/Li2SwB8DoYDRvO8n+ILoDmNLcl8pv3EDkHDwRS/Stj+M9Cpn dh6bjqdu/5NuqI30bGTGXDwe+DWQpg5zt5xuizzUsFsAEuOD/fs6LU9FZtsj4w== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtZqk-0005Xd-2u; Thu, 19 Oct 2023 16:42:34 -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 1qtZqh-0005VM-BZ for emacs-orgmode@gnu.org; Thu, 19 Oct 2023 16:42:31 -0400 Received: from sonic312-27.consmr.mail.ne1.yahoo.com ([66.163.191.208]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtZqd-00019s-QN for emacs-orgmode@gnu.org; Thu, 19 Oct 2023 16:42:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=att.net; s=s1024; t=1697748145; bh=5HwWp5tn9RVcWJ0KO+cA37WJJ0geirSVzAZOuklSsJ8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From:Subject:Reply-To; b=jsjBjelX1keU7vvE/aQ6v/mhg8UsAgaaVuJQapZGCuzHfoeNnlfqkoiOg5U/HhMnx0vRuOjr8TLcz2KQtg2JFpKv/AaNphAKUzEzG5X59kwGg+mCztdoBSIKycCYkguDWHvyWgij0ayCL1CNzhMf1jJJdcqbUmqeCYED6RE/+Vs= X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1697748145; bh=bmWAvpnsgSS8M5yzjnweTm6S53LlD5FRWzpgGhRCkNL=; h=X-Sonic-MF:From:Date:Subject:To:From:Subject; b=NF/MJ/TOHTjW0YsV1ihZzfiqtpH11Pn+Tp6+RACYTBbs4kmF3mYKEMJxYT1DBRYg54AUgZNltG5o9aYoC89kINr0HPZtRsxTz36C2cuanMAe0XIHW/zk9eQRWPX+KjiCe4XIp9OtAcigEGThqYY04offcRc/CxxwQvfXMwa5H+QgLnH1Bl3ZgW19S87nvtfX73TtLqx/dQIRJkZ1hvJJ1MaG1u2l0izBEnswjckWehbbvynu4x8RChwsYr1hsp56/OEULp9uw2A4e+5Rt62pmRrXBX8EWV4l4eioRH8VcNGr7bxTBDI1nGix4uk8s7e/iDk8Nz1Ih/YWE/Qx4ejUzA== X-YMail-OSG: AIXhYaIVM1m9FB9jKtejtvLaDKq8ypES1ahk0BZQkacV5JUKtQyNQR398oCMtve riDofKKoDcfDS81mx4fqvO0gqF1OJGlQwIBLuqFRSGxhabXAb.TegyZpcuq0pZUN7S_nxu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4kcPXk4f7Gk7.YS6AhfRdpfjOt2QS X-Sonic-MF: X-Sonic-ID: 05a99b41-0c56-48e6-9fe7-6bebb7462201 Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ne1.yahoo.com with HTTP; Thu, 19 Oct 2023 20:42:25 +0000 Received: by hermes--production-ir2-57dc7b564-t8zkb (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 0f40948206347748ac707368108536b5; Thu, 19 Oct 2023 20:42:19 +0000 (UTC) Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-3226cc3e324so86698f8f.3 for ; Thu, 19 Oct 2023 13:42:19 -0700 (PDT) X-Gm-Message-State: AOJu0YwWNtqgfHYr5bJUcGYsLc0Haz15N1b3nQuXvenWm/WAJFOYzl3Y LX0J1jgS56cJI+wH8maZ55Gk75n9lUy7CCeM8fU= X-Google-Smtp-Source: AGHT+IFl9fOxFfIGfnO+MOLrV6IatENOrG1mNOjza+/r/0SW9avsZcZ+IzARii6LQpfyLWHZGsLGoRbMuQuvxyqi24Q= X-Received: by 2002:adf:fc52:0:b0:32d:a310:cc2e with SMTP id e18-20020adffc52000000b0032da310cc2emr2543374wrs.34.1697748138220; Thu, 19 Oct 2023 13:42:18 -0700 (PDT) MIME-Version: 1.0 References: <87lebzdlvd.fsf@localhost> In-Reply-To: <87lebzdlvd.fsf@localhost> From: Jeff Trull Date: Thu, 19 Oct 2023 13:42:06 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [BUG] emacs-lisp source blocks do not implement :prologue and :epilogue [9.6.9 ( @ /home/jet/.config/emacs/elpa/org-9.6.9/)] To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000b2634f060817ca9e" X-Mailer: WebService/1.1.21797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: none client-ip=66.163.191.208; envelope-from=edaskel@att.net; helo=sonic312-27.consmr.mail.ne1.yahoo.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 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.20 X-Spam-Score: -7.20 X-Migadu-Queue-Id: 369B15CF4B X-Migadu-Scanner: mx2.migadu.com X-TUID: NdmVsdK97hkK --000000000000b2634f060817ca9e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for the quick fix! If my bash one-liner is right there are another 12: grep -L :prologue `fgrep -Rl --include=3D\*.el '(defun org-babel-expand-body:' ~/.config/emacs/elpa/org-9.6.9/` | xargs -n 1 basename ob-C.el ob-awk.el ob-lilypond.el ob-sqlite.el ob-java.el ob-org.el ob-calc.el ob-latex.el ob-dot.el ob-fortran.el ob-emacs-lisp.el ob-lisp.el ob-clojure.el On Thu, Oct 19, 2023 at 2:04=E2=80=AFAM Ihor Radchenko wrote: > Jeff Trull writes: > > > The manual page "Environment of a Code Block" describes :prologue and > > :epilogue header arguments, which are useful for applications like unit > > tests and boilerplate code. No suggestion is made that these arguments > > are only available for some languages. > > If they are not available, it is a bug. > > > In fact, any language that provides its own org-babel-expand-body needs > > special code to handle these arguments - and emacs-lisp lacks it. > > Fixed, on main. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3D936290f= e1 > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --000000000000b2634f060817ca9e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for the quick fix! If my bash one-liner is right th= ere are another 12:

grep -L :prologue `fgrep -Rl --include= =3D\*.el '(defun org-babel-expand-body:' ~/.config/emacs/elpa/org-9= .6.9/` | xargs -n 1 basename
ob-C.el
ob-awk.el
ob-lilypond.el
ob-sqlite.el
ob-java.el
ob-org.el
ob-calc.el
ob-latex.el
ob-dot.el
ob-fortran.el
ob-emacs-lisp.el
ob-lisp.el
ob-clojure.el


On Thu, Oct 19, 2023 at 2:04=E2=80=AFAM Ihor Radchenko <= ;yantar92@posteo.net> wrote:<= br>
Jeff Trull <<= a href=3D"mailto:edaskel@att.net" target=3D"_blank">edaskel@att.net>= writes:

> The manual page "Environment of a Code Block" describes :pro= logue and
> :epilogue header arguments, which are useful for applications like uni= t
> tests and boilerplate code. No suggestion is made that these arguments=
> are only available for some languages.

If they are not available, it is a bug.

> In fact, any language that provides its own org-babel-expand-body need= s
> special code to handle these arguments - and emacs-lisp lacks it.

Fixed, on main.
https://git.savannah.gnu= .org/cgit/emacs/org-mode.git/commit/?id=3D936290fe1

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>
--000000000000b2634f060817ca9e--