From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eAZ3IyvYjmC6NAEAgWs5BA (envelope-from ) for ; Sun, 02 May 2021 18:49:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2DAyHyvYjmDWJQAA1q6Kng (envelope-from ) for ; Sun, 02 May 2021 16:49:47 +0000 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 E944727D03 for ; Sun, 2 May 2021 18:49:46 +0200 (CEST) Received: from localhost ([::1]:45792 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldFHt-00075W-Mn for larch@yhetil.org; Sun, 02 May 2021 12:49:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldEtl-0005Or-6h for emacs-orgmode@gnu.org; Sun, 02 May 2021 12:24:49 -0400 Received: from mout02.posteo.de ([185.67.36.66]:35221) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldEth-0001WG-GL for emacs-orgmode@gnu.org; Sun, 02 May 2021 12:24:48 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 1B87B2400E5 for ; Sun, 2 May 2021 18:24:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1619972682; bh=udQZIah6FL46deTqxeHw8bJljUXRAOnrHZzxTNohxWk=; h=To:From:Subject:Date:From; b=QJuUe1N2ab6Pkdo51Ee0sp8QWgZKoaKMUbRsySlpzDoR2o2VwWJAW/o+B5IosCEaL pywL/xpEzA79/5ztMn3czn+E8IyxcMLnkJ92M0pTUGSXRr/PN2aJnzU5phbeuUFUOD 0Lw+6jh4bCwoykvBl0wOP25YlK0+GkwbzGQMe9zqXm+7buOQVaHCS540Nxyeel7zh1 9iDe2vztMMsJ1118EtbkCq24pAGQ5ddchT64Mld/RSUeNwvTOSGxGPLnFj47EhR9VV RkW2X/KxqnHwruy3hc0yDY5ARb0R048Sv3cTiBmPrBAYeej1NNbHwLwXAmvdGAQwBb zd6Ir2oFaQwgw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FYBJn4jNfz9rxj for ; Sun, 2 May 2021 18:24:41 +0200 (CEST) To: emacs-orgmode From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= Subject: [Feature request] String escaped noweb expansion Message-ID: <82897e7d-f987-11f4-f7f5-fa1b8e462c0c@posteo.eu> Date: Sun, 2 May 2021 16:24:41 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: fr 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, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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 Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619974187; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=/DfFN9UitTE0m2tWhPDiv+VzIWho4ZlBXNE44Auk8Mc=; b=T+V3cSBxtZPDoLfJ66eaWPyAOseEe6Tu55ZZIqgrIcSmjaybyRW+ipNukKfUBfKS5euu3h 3WkaDIJPyy9uA/xkU89JXLL5H7707OE0n00RVCttyVyTnR1ddmLg1L+i1AOwRr1on6K9V+ ivPH5sa4CnXa/ThvBrQEQKrh8u2JWek6/FC0UUUZcMInRMuMIUVbppXlVLNGwLpgBJJuiW ms7PFmjD3AMwvOt1uC5NKi4T3HCUtcOGpzyvPXrAYAVewNiUySG0DwW9g/TNOTTQeDaJGW M1RknOT3/qbs/rQrW+tzRJVidkD+x7QgknVMNRaaQ8wGlRTYwHq6iIHDxuIn6A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619974187; a=rsa-sha256; cv=none; b=H/iwDPZNHTU5qAMSwS6wQbdWObxeOOstQuTZTgvOYg7K7FPiwoYfPCw6tB/ieXPiukm+O0 siR63WYrXl+d8K2IogSkB78aFtsHUAdqbk4YZvPLYLzddtmaRSbDBJYnz5HGQeAwKl3mBs uFVtTK8Pba+iOfyuMx9LLpo7ZFhGzZU/19c9XyjmmNXzXMXFPYa9vPoEyuG+q9gjg4Z30Q laixLVaCGcn5FRBX6G6TWsCRW9vmtBIXbasovovK6AdsR/B35dXeuT7L2OuhlcsjI7DM6H s6ouT5WAhgdLJVShDR0XyuRjt5qwam9vRPhqVKOuzJuEzTKslSGkKJk+QHUEDw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=QJuUe1N2; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.66 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=QJuUe1N2; dmarc=pass (policy=none) header.from=posteo.eu; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: E944727D03 X-Spam-Score: -1.66 X-Migadu-Scanner: scn0.migadu.com X-TUID: VkDtf7wuBMlV Hi, Would there be some interest in extending the noweb syntax to allow for string escaped expansion ? I've modified my setup so that if the noweb delimiter `<<` is preceded by a quote `"` then the expansion is string escaped (and the prefix isn't duplicated for each line). This allows the following. #+BEGIN_SRC latex :noweb-ref latex-ref \some \multiline \unescaped \latex \code #+END_SRC #+BEGIN_SRC emacs-lisp :noweb yes (setq my-latex-code "<>\n") #+END_SRC I don't think there's any way to achieve such functionality currently. -- Sébastien Miquel