From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qLBIGHj2bGLHOgAAbAwnHQ (envelope-from ) for ; Sat, 30 Apr 2022 10:42:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oJspGHj2bGLMiAAA9RJhRA (envelope-from ) for ; Sat, 30 Apr 2022 10:42:32 +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 EE26626DE9 for ; Sat, 30 Apr 2022 10:42:31 +0200 (CEST) Received: from localhost ([::1]:47226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkigQ-0004XO-Bo for larch@yhetil.org; Sat, 30 Apr 2022 04:42:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkier-0004XF-OM for emacs-orgmode@gnu.org; Sat, 30 Apr 2022 04:40:53 -0400 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]:51047) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkieq-0005XW-51 for emacs-orgmode@gnu.org; Sat, 30 Apr 2022 04:40:53 -0400 Received: by mail-pj1-x1036.google.com with SMTP id iq10so8964431pjb.0 for ; Sat, 30 Apr 2022 01:40:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=wBoExC55WOP7PTbcJNKGsWs3lZQgrhyc8xy7MCX4a/Q=; b=JsZmIvO6+jF/MEpxhawnSGw24MMxlSfI7OZgV6LRRhqE+2q4n9njP1sdNzIi2tS4CY tFRWCCY5+SRvNVtk0y2F6aVhtyiH9wLWcqKwcV+56vvsp7/WHHRmeIMt9IvdVnVHtC+M W0Ivr4kD5Rq8DSD87aHkhmv2Cu+IGyQS7M5RQ8H3cZ2B6wWDctVAAxDkWzqzBueV4i7C SorGsXyMmcp8G5fxyakkjFDkCrEAl0tajqwkr+/OG8YwLpyHpUUC6qFhbNckulUD28ov +DddHD1m8oZrKuXENfWxJPSEGck0XZvz2MKUbDoeJuHFDsWsVfMR2oKv3ZsYH22KJ4pp zXVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=wBoExC55WOP7PTbcJNKGsWs3lZQgrhyc8xy7MCX4a/Q=; b=ANS/x+r9VVAJMPjo1wA9CzXUXS+uoClhL5uNR90rcHdH/SixNEACG717klstVCcbi5 nn+/NEzU99D6xe2Kr+eqrVYzQz9/1hSIcqiP2pPVLp7Z0pcPwy0y45Opnn5BfRoLdMeD kGWQyvrS4z+UaEFm/mTWUfbM6f45rlhd0OMQHL6b9n3gcoTukPqsUtGUJgiRyxBzOzxC rmtVizPiX6MJFLgkEADRfrTQPajzxGh2gHrmOPOdoIfQEJ6djyCk8MIM5DJLwieYFxx8 SlWAeAkAKsSD6+DflJjHov2+5eg396MFb2izftpnofbZCYNeTnihYbnx7SNe4y38z990 pV8Q== X-Gm-Message-State: AOAM533UHLsbjd2rTebGQm0uJa+EOG4knlMmeWp1U55kMGT8+tC7rG7O i6PLUDlmJKay8XBXQCuuCXLYuG2Q6NZbxg== X-Google-Smtp-Source: ABdhPJzVI96ZDJJjJXaRSpvwrAw1lx0poUOYQiTxZ6id3n5UC2iWVQuELHuK79Ic1tXw09XXaNdr6g== X-Received: by 2002:a17:90a:c797:b0:1d9:2764:a83b with SMTP id gn23-20020a17090ac79700b001d92764a83bmr8077549pjb.5.1651308049808; Sat, 30 Apr 2022 01:40:49 -0700 (PDT) Received: from localhost ([45.83.130.130]) by smtp.gmail.com with ESMTPSA id b9-20020a170902e94900b0015e8d4eb263sm939451pll.173.2022.04.30.01.40.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Apr 2022 01:40:48 -0700 (PDT) From: Ihor Radchenko To: sebastien.miquel@posteo.eu Subject: Re: [PATCH] Add :noweb-prefix and :noweb-trans babel header arguments In-Reply-To: <23bfe2e1-afe8-e329-0703-1d8d83a5796c@posteo.eu> References: <2dd9630a-c584-0702-62aa-393ad56c621e@posteo.eu> <875ymt8goc.fsf@localhost> <87v8urt8bu.fsf@localhost> <23bfe2e1-afe8-e329-0703-1d8d83a5796c@posteo.eu> Date: Sat, 30 Apr 2022 16:41:35 +0800 Message-ID: <87y1znm08w.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::1036; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1036.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , 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=1651308152; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=wBoExC55WOP7PTbcJNKGsWs3lZQgrhyc8xy7MCX4a/Q=; b=ueOCPWRpptCcyXdwtxzlJQ/75RY82QgsiAP0nrif+hJ23Lsz+wXeSmB+SK2as0/lJtbP6U RBvNjd+gTe1/CVaZSVwnc6lFJEg32bL0gCPNBkG0VGMeBldfIdo/w3PKhXuGDTKVzxrQhx eA1EwSdko2OIk5yGRCE20OAyJplriUWZvPq7zRgMfYL7f6HNH4M4wXghFe4WCYgHtymBYY /sS/1cxkjl2Ou+triwzTNugXoCallWzxyLpWnsZc3rwOYznDfv2yYjitcuthBhW31oDQtP 2T4rEvVBJb0a1mWFRjdKmAVjkCa9scJ5wxshNf/DuOXSbXWP6U8qAm0MUugtlA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651308152; a=rsa-sha256; cv=none; b=mBLvVxsxsOl9jUM9kblP+lmmU/WdIgAc2a3QTZDBrO5Qb4DybwGA/UPQaXHIm859MQKS9O V2idHYEDj1T1sG7Y1P9afKy9Iz72cfBDutTDKDGaX8O9oSD0CUybEjyTTLVp6mu7y0gqSc oLyCGGMlUtA2nQCbv8eEMb6X1bwaFa+0aQpBBL3V4IInTlNFjnlgXAAVaH2C3GUkhC/tr5 VnleWOhM74tApKlNBqvJTE+73uv2hT25F1BqwpE6Jy6YkjFei79C5eAT5XaoQSm/P0ImD4 4v1bktD5C0B6W2wodXe95bGDzynnxMCPKNAFmXWOwaSnDH4P7FsQce3FLwtkuQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=JsZmIvO6; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=JsZmIvO6; dmarc=pass (policy=none) header.from=gmail.com; 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: EE26626DE9 X-Spam-Score: -3.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: WFpRwxa7fWT/ S=C3=A9bastien Miquel writes: >> Other than :noweb-trans, the patch looks good for me.=20 > Here's a patch with only the :noweb-prefix part. If applied, we can mark= =20 > this thread resolved. Thanks! Applied on main as 2063596b9. > 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=3D"" :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=20 > text src block) but I can use it nonetheless. Well. It looks natural for me. Depends on what you are used to when working with org babel. Things are a bit more tricky for latex source blocks, but you can still do #+name: nw #+BEGIN_SRC latex :tangle no \usepackage{=E2=80=A6} \usepackage{=E2=80=A6} #+END_SRC #+BEGIN_SRC emacs-lisp :noweb yes :tangle yes :noweb-prefix no (setq latex-header <>) #+END_SRC Of course, it would only work for source blocks with corresponding ob-*.el library. But then again, why would you need to wrap things into text source block when a simple paragraph is enough. Best, Ihor Applied.