From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UDQ4DArnbGKWGAEAbAwnHQ (envelope-from ) for ; Sat, 30 Apr 2022 09:36:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OM06CwrnbGIjawEAG6o9tA (envelope-from ) for ; Sat, 30 Apr 2022 09:36:42 +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 73BB3149E7 for ; Sat, 30 Apr 2022 09:36:41 +0200 (CEST) Received: from localhost ([::1]:60634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkhei-00005h-Fy for larch@yhetil.org; Sat, 30 Apr 2022 03:36:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkhdh-00005R-En for emacs-orgmode@gnu.org; Sat, 30 Apr 2022 03:35:40 -0400 Received: from mout02.posteo.de ([185.67.36.66]:59195) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkhdd-0005Qh-Mr for emacs-orgmode@gnu.org; Sat, 30 Apr 2022 03:35:36 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2779A240108 for ; Sat, 30 Apr 2022 09:35:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1651304130; bh=t7xPQfMExzL+yEBLA1t4tribxwdCBvvgwu5MP/Q1o+I=; h=Date:Subject:To:Cc:From:From; b=Db4RufWj8vrrtC3bfW1q6wZChK0jjeanvFJqXam9enY2dopbqooazKKZswrBuXynI A9HH6eqqNB2pWkJs1rdv+G/FoAyombEHLjPv0N0eZTLrWL3Sa4eOtcd799obRvXC0L +MGPhtNo3H+oC1eIO9SLD6kJ8WVTnhqNKUbz/cWMzVw5u8M6bulNLKNrVbSqrBh/Xd xN6GtCd8Awtp6Y5CZhnrUTNL98TT3T/svTCEaS+K6na4iHyaVPI2VtWOQJs4qhs4aT aUgS9rjXVfIB45GvEmCDxz2xksaGy2HQb8XaPZCao8+glH5J88W4OY0yUDelWT7wLC D/tXwuh4M2fNQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Kr1Nd1pGJz6tpC; Sat, 30 Apr 2022 09:35:29 +0200 (CEST) Content-Type: multipart/mixed; boundary="------------PbEwmujl7s9dsDXKryJVg07G" Message-ID: <23bfe2e1-afe8-e329-0703-1d8d83a5796c@posteo.eu> Date: Sat, 30 Apr 2022 07:35:29 +0000 MIME-Version: 1.0 Subject: Re: [PATCH] Add :noweb-prefix and :noweb-trans babel header arguments Content-Language: fr To: Ihor Radchenko References: <2dd9630a-c584-0702-62aa-393ad56c621e@posteo.eu> <875ymt8goc.fsf@localhost> <87v8urt8bu.fsf@localhost> From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= In-Reply-To: <87v8urt8bu.fsf@localhost> Received-SPF: pass client-ip=185.67.36.66; envelope-from=sebastien.miquel@posteo.eu; 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, 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: , Reply-To: sebastien.miquel@posteo.eu Cc: emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651304201; h=from:from:sender:sender:reply-to: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=E61caPjBQBXhMqmrtJSmJkGzMyZnqtVjKDXrcaCmD5I=; b=DQ6tdmfdHl0trlbA+mrWDQPJoi8svI0jVnD8kuZ2FEg16s6SD4tqOIvKro9pia5+pdVpRE Jgm0oCubHhHbfc5syCirymStOKgm/3xRt8D9/91g5g8wTpEMcks7lZAqnGVAB1zVd0fxhr WBm8+l92+Boep9SCFz6p1DQ5l0vN6WFXFs654vsxiMuDIMEW+a3lyotnq+++L+OFx9Moac oUUHYpJOpKGLkNotDOLpn4AybWUXkfh+AhWE9Cq4sZCf+INoCF30PZSgsr6Yfe1suaarPj ZsOS5dFWo5cUZNhRH7PP3KNQtexju9auAyMs0XcmzN6VnrwixWrSZaGMIp/+uw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651304201; a=rsa-sha256; cv=none; b=g8rUEbkyCRucI5fI/0n6/kopnVTUbWeC8uAHpAfBeeOYUpT7jDCWqTTMSWnd1e2npdI1tS WmWJnihgyoPiUT1CoMfz+F/clSI1VUySt8DyRgtnNZ11ldSuf1Ai5FvLdSUSv2iPsPJBM+ vZUC5Y08czVSwmGQhhr64n8JbfKRy+NPG+SzUbi9CGIIku1tPXCW+Q1+kgW3orWuP8BWYd vGwus+sQYZLqYwwEBgOZjbldfTHe0xQeWAWRGsF0O6CoI1j+B+V0K6489tf8qjT7w5gGZ8 fWh5pMys5oE47gSHLlSEZBCyJnOItDNbBAxAIcV4IxCoSU4rVaoN0tINgO1Ucw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=Db4RufWj; dmarc=pass (policy=none) header.from=posteo.eu; 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" X-Migadu-Spam-Score: -8.69 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=Db4RufWj; dmarc=pass (policy=none) header.from=posteo.eu; 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" X-Migadu-Queue-Id: 73BB3149E7 X-Spam-Score: -8.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4YJUlRMTWXec This is a multi-part message in MIME format. --------------PbEwmujl7s9dsDXKryJVg07G Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Ihor Radchenko writes: > #+name: documentation > This is a sample function documentation. > Because there are "quotes", it must be escaped and cannot be directly > used as noweb-reference. > > #+name: doc-escape > #+begin_src emacs-lisp :var str="" :tangle no > (prin1-to-string (string-trim-right str)) > #+end_src > > #+begin_src emacs-lisp :tangle yes > (defun test () > <> > t) > #+end_src Nice ! Quite obscure and brittle (doesn't work if documentation is a text src block) but I can use it nonetheless. > Other than :noweb-trans, the patch looks good for me. Here's a patch with only the :noweb-prefix part. If applied, we can mark this thread resolved. Thanks, -- Sébastien Miquel --------------PbEwmujl7s9dsDXKryJVg07G Content-Type: text/x-patch; charset=UTF-8; name="0001-ob-core.el-Add-noweb-prefix-babel-header-argument.patch" Content-Disposition: attachment; filename*0="0001-ob-core.el-Add-noweb-prefix-babel-header-argument.patch" Content-Transfer-Encoding: base64 RnJvbSAzZmMzYzM1NTdiMjcwMjZlMmNmZGIyYTE5NzM5MjFjMWJhZjM3NThhIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiA9P1VURi04P3E/Uz1DMz1BOWJhc3RpZW49MjBNaXF1 ZWw/PSA8c2ViYXN0aWVuLm1pcXVlbEBwb3N0ZW8uZXU+CkRhdGU6IE1vbiwgNiBTZXAgMjAy MSAxODo0NTo0MiArMDIwMApTdWJqZWN0OiBbUEFUQ0hdIG9iLWNvcmUuZWw6IEFkZCBgOm5v d2ViLXByZWZpeGAgYmFiZWwgaGVhZGVyIGFyZ3VtZW50CgoqIGxpc3Avb2ItY29yZS5lbCAo b3JnLWJhYmVsLWV4cGFuZC1ub3dlYi1yZWZlcmVuY2VzKTogQWRkIHN1cHBvcnQgZm9yCmBu b3dlYi1wcmVmaXgnIGhlYWRlciBhcmd1bWVudCwgdG8gbm90IHJlcGVhdCB0aGUgcHJlZml4 IGNoYXJhY3RlcnMKd2hlbiBleHBhbmRpbmcgYSBub3dlYiByZWZlcmVuY2UuCihvcmctYmFi ZWwtY29tbW9uLWhlYWRlci1hcmdzLXctdmFsdWVzKToKKG9yZy1iYWJlbC1zYWZlLWhlYWRl ci1hcmdzKTogQWRkIGBub3dlYi1wcmVmaXgnIHZhbHVlLgoqIGRvYy9vcmctbWFudWFsLm9y ZzogRG9jdW1lbnQgYG5vd2ViLXByZWZpeCcgYmFiZWwgaGVhZGVyIGFyZ3VtZW50LgoqIGV0 Yy9PUkctTkVXUzogRG9jdW1lbnQgYDpub3dlYi1wcmVmaXgnLgotLS0KIGRvYy9vcmctbWFu dWFsLm9yZyB8IDE3ICsrKysrKysrKysrKysrKysrCiB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ICAgICAgICAgIChub3QgKGVxdWFsIChjZHIgdikgIm5vIikpKSkp KQogCSAobm93ZWItcmUgKGZvcm1hdCAiXFwoLio/XFwpXFwoJXNcXCkiCiAJCQkgICAod2l0 aC1jdXJyZW50LWJ1ZmZlciBwYXJlbnQtYnVmZmVyCiAJCQkgICAgIChvcmctYmFiZWwtbm93 ZWItd3JhcCkpKSkKQEAgLTI5MjMsOSArMjkyOCwxMSBAQCBibG9jayBidXQgYXJlIHBhc3Nl ZCBsaXRlcmFsbHkgdG8gdGhlIFwiZXhhbXBsZS1ibG9ja1wiLiIKIAkJCSAgICAocHVzaCBp bmZvIChnZXRoYXNoIHJlZiBjYWNoZSkpKSkpKQogCQkgICAgIChmdW5jYWxsIGV4cGFuZC1y ZWZlcmVuY2VzIGlkIGNhY2hlKSkpKSkKIAkgICAgIDs7IEludGVycG9zZSBQUkVGSVggYmV0 d2VlbiBldmVyeSBsaW5lLgotCSAgICAgKG1hcGNvbmNhdCAjJ2lkZW50aXR5Ci0JCQkoc3Bs aXQtc3RyaW5nIGV4cGFuc2lvbiAiW1xuXHJdIikKLQkJCShjb25jYXQgIlxuIiBwcmVmaXgp KSkpKSkKKwkgICAgIChpZiBub3dlYi1wcmVmaXgKKyAgICAgICAgICAgICAgICAgKG1hcGNv bmNhdCAjJ2lkZW50aXR5CisJCQkgICAgKHNwbGl0LXN0cmluZyBleHBhbnNpb24gIltcblxy XSIpCisJCQkgICAgKGNvbmNhdCAiXG4iIHByZWZpeCkpCisgICAgICAgICAgICAgICBleHBh bnNpb24pKSkpKQogICAgICBib2R5IHQgdCAyKSkpCiAKIChkZWZ1biBvcmctYmFiZWwtLXNj cmlwdC1lc2NhcGUtaW5uZXIgKHN0cikKLS0gCjIuMzYuMAoK --------------PbEwmujl7s9dsDXKryJVg07G--