From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 8EVCLUiklWLVrQAAbAwnHQ (envelope-from ) for ; Tue, 31 May 2022 07:14:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id IAUNLUiklWLLSgEAauVa8A (envelope-from ) for ; Tue, 31 May 2022 07:14:48 +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 64E8B3F66F for ; Tue, 31 May 2022 07:14:48 +0200 (CEST) Received: from localhost ([::1]:55622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvuDP-0006sm-HT for larch@yhetil.org; Tue, 31 May 2022 01:14:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvuCo-0006sY-5T for emacs-orgmode@gnu.org; Tue, 31 May 2022 01:14:10 -0400 Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]:45721) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvuCm-0003mM-IZ for emacs-orgmode@gnu.org; Tue, 31 May 2022 01:14:09 -0400 Received: by mail-qk1-x72f.google.com with SMTP id c197so3261558qke.12 for ; Mon, 30 May 2022 22:14:08 -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=gwXV36vrl/NO/Fc/GfDVo9kmwOzVWlQXshhmxY0GGX4=; b=GEi5aycW3dHxE8OtGjb/RoxWWdK0H6+eEsf7W3ptNJSeCludmmqNGjBY7QQ85V41q8 TNskuEJSrB9NWaMwFLOOG6BRVdyjYUqdXTQmLnrhVWhYOYuwZdDTXNGctZaCa3hLBgXH vPCJptjuXOnI6lDRKJhPbxpONGnb3xDQ1kgcPBM33vZIf6e715xCGxHNVUxdNFyQqYM7 ue8VvFtkJCuKirPQxmOD8xkJqTTAg2RjE7gWKSLZpAAjVCa1L7pcGYgkm71Fe0kDIRvF pDkChyroiDIAesGzTrgKAasWcSn+qYJT+HKWHvVqM6Z34cgj98+2PoxzDah3js3bx8lb gz5w== 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=gwXV36vrl/NO/Fc/GfDVo9kmwOzVWlQXshhmxY0GGX4=; b=LVQcx1wKo2PSZ9MPy9opN7Z5JLHPv84l8We1jOKLssoAh60fKVh4hES4XruDY/agR5 vU4QZ61/y458PWiS7ILeX49E0SY+SxEp5g3N6TW/lI3atWGQPBoEe0JrCRZZsbvak9/G pERM399kPolalmm8CQ6iHn5GE2BGi7NKcIcfUimuXBpsPxQi7c33m8tpgdp3zVJvJtvz VmZ9plVxbeLWzCkxkbsrgh7jmn7rkL21ZYZPspYgmxZ0FlvlvZ4BvR/vlBLG2xvTXgod LXyho93SRrgJw6nVCwJV+hqCHzmnrDZTqJjhUdBuK51m9Zq31n8MeF2WTk/Fs/lKWCKE /VNA== X-Gm-Message-State: AOAM532s1KJdHDofasbtwPRGB4AU1py/Xfd21ufeA5I/q3SgsBMC9dqt iaiTF75B+InAyy0YwNJJEzf914Yh8wA= X-Google-Smtp-Source: ABdhPJyHyl+ElhSfs2bT2qa8vVUqzUzoptUdiU/QVDo/rSDn+dvEwgUiuSqHWrW3ERrcR1Xf1UOVmQ== X-Received: by 2002:a05:620a:4589:b0:6a4:2e05:9f50 with SMTP id bp9-20020a05620a458900b006a42e059f50mr26142986qkb.747.1653974047592; Mon, 30 May 2022 22:14:07 -0700 (PDT) Received: from localhost (22.b2.a86c.ip4.static.sl-reverse.com. [108.168.178.34]) by smtp.gmail.com with ESMTPSA id q12-20020ac8410c000000b002f3f062dbd5sm8924862qtl.43.2022.05.30.22.14.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 May 2022 22:14:07 -0700 (PDT) From: Ihor Radchenko To: sebastien.miquel@posteo.eu Cc: emacs-orgmode Subject: Re: [PATCH] Add :noweb-prefix and :noweb-trans babel header arguments In-Reply-To: <03eb4c66-ecaf-b5f5-c4cc-2195fb6c1a1a@posteo.eu> References: <2dd9630a-c584-0702-62aa-393ad56c621e@posteo.eu> <875ymt8goc.fsf@localhost> <87v8urt8bu.fsf@localhost> <03eb4c66-ecaf-b5f5-c4cc-2195fb6c1a1a@posteo.eu> Date: Tue, 31 May 2022 13:14:47 +0800 Message-ID: <87y1yiz3js.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::72f; envelope-from=yantar92@gmail.com; helo=mail-qk1-x72f.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: , 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=1653974088; 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=gwXV36vrl/NO/Fc/GfDVo9kmwOzVWlQXshhmxY0GGX4=; b=maNamXnTgCya6uhLkdSTBwdJU77u3s/c5W032GjSl1qkxEMZ4L9nWjGrQSwGXif466T53F 4NBlr4nUPaHye9z2NfcbvW0x4lsZddIEsoljev+Ou9KOvGxoFNBJO05Hwur1TrjJbqXdZT YPFjoTfJIC8qZqWo9yW8HQ2X2BFGAJWZcef8ECHO5Bz79aXQRyeLuc7XyOEUSJoWeOBeM6 CGxrOBOKHTapIovHGSHzr9NdTPNhUplNFdpbBY7YLl+m6FD0tewYMLDfJVg2OjOFIqYs9S jyq1NF1c4oysSuieSMilI/JQl3M0py76nc/vfxbj44nqmrmtKLlRl0PksUtQhw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653974088; a=rsa-sha256; cv=none; b=JcfOKxYSxLcVLOUA4KzBk6w7YmykNGSAsykt4BWB6L2Y+iqDtrKXrpJC1XhCdBuYedo0i8 XUXZEgjgvY+kaeuVlggv0liaqTnkCz1zZQa59fm4LBYdD00WJHVofHXL2rK0DSLd6Ng8Jt k16yC2u1W1FlmpSKmPLKT2VGtpAqEw0iFsvVWa1pwGPRRYUCo33FHazrDUTTb+dYRJpYAr gRnrlXdaWGftFQZMZlHEE0s8znq711a/IRbrCk24dhp1SXk+8H8yQyCBtruNaKzs3BOAM8 odlMQRtcVds/d8ipOb6MPEMhTYcf6OKcKlbWcaAV70T1S5v/XaH1viVioVE2NQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=GEi5aycW; 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: -7.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=GEi5aycW; 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: 64E8B3F66F X-Spam-Score: -7.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: cDaU3/8YZKpM S=C3=A9bastien Miquel 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 > I had converted my uses (tangling code, not text/documentation) to > this but I ended up reverting. Can you provide more concrete examples? > Some drawbacks: > =C2=A0+ doesn't work for all languages (does work for LaTeX) Which languages do not work? > =C2=A0+ the tangle gets very noisy: not only are the result of execution > =C2=A0=C2=A0 printed in the echo buffer, but emacs visits the tangling b= uffer > =C2=A0=C2=A0 and moves the point to each block. > =C2=A0=C2=A0 Perhaps this is a bug that can be fixed. Did you try to play with :results header argument to disable messages? What exactly went unexpected? > =C2=A0+ src block execution also resets the noweb cache, slowing down > =C2=A0=C2=A0 tangle, though I have not tried to measure the effect. I am not sure what you are referring to here. Can you elaborate? Best, Ihor