From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id WMB8BuhyVWemVgAAqHPOHw:P1 (envelope-from ) for ; Sun, 08 Dec 2024 10:20:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id WMB8BuhyVWemVgAAqHPOHw (envelope-from ) for ; Sun, 08 Dec 2024 11:20:24 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KttySioi; 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=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733653224; 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=txWFps5ELYPHSu8lCHaTBvN+GkfYy4gpK2WgTJK6dXs=; b=OdiOp/cA6q9j9k507mh8tyjTJiVSWjcHn25ma402V+vIx8Vrr4owHv+xGFinZ65BZuUDer gaBcsIovtntIqMCqEFkG3FIQ7HFpN95jrkuexaly0G4imhZy9mJwVU3nKD6EeqNpj8n66f 61ygGi+NZM2Cp06nucr1O8/ieMxXZM1NpG8GodNydZIHDvOezd0wlDDTpZatk+WnPbOgL6 dR536Qyh+bcSFacMtxdb8qQSzTdiKMASV2Chs7/DsgEput5rbyPT3Gsf/Pe9b0/piPFAep 63JbLFS7qGwbVBqlL9TdIfrzkVQbJXHdCrdHm8kH9y3/Mrkwf+s004ET3FPnKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KttySioi; 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=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733653224; a=rsa-sha256; cv=none; b=fh4MGV1HQvt4xw3/fCocB4wzuqLZbVYQzw44qTKVLakSogXNAw3jH/+wQrTRbWu40uddV0 hK0qRfNlUA9tWO5UFJySVFmKYq21oo2nQ6RfV91V5bkLOWTVccXGJ+JVpLJgG0mOmF51Ql m4hGYNzpIJfhUs8fXVi0sSXA3xP7aemxZQ1xCs7Lzs6IY2R2BfkBiZ0VUTAbe2/v+A8Uvz mHNmR4meOMM90q75EHrFi6UkjOd/Xgas9idcaVqeBB5rGmXxy/7wiKFsK4Qwljr1zP1s3G 7f3aK3IK+igTV8ncQkY+cs/TIs2El4dDVwnQvKrOSHNXxOYcbrGdBYBidOtutw== 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 E2F054123D for ; Sun, 08 Dec 2024 11:20:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKENx-0001a8-3R; Sun, 08 Dec 2024 05:19:33 -0500 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 1tKENu-0001Zj-Oa for emacs-orgmode@gnu.org; Sun, 08 Dec 2024 05:19:30 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tKENr-00014R-Qc for emacs-orgmode@gnu.org; Sun, 08 Dec 2024 05:19:30 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6AA87240027 for ; Sun, 8 Dec 2024 11:19:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1733653163; bh=dysJCOd4qQkNHBxbvmv+9q7FW+jyOe1M7IcXL7UM55U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=KttySioif3riqYU8ZITeFW/6Ylg+hRf9FteRkxdmlOc7rpz52ruFIVZmX8PEQzuxb qi1DTFmSbSsuCYQ4BVOQ0Ci5BhtZuw5F23FN9Mh+74KbDNkyWbQYfhdwi+da2TZO// bcNgazoEbB7ZA6DUY2o1g3Itg1hNIJVh+MlTtZdb/fDHHp8gISCORQ7SV9SI80fWrm Ryt6zD7XI3p8eCzbFSBFHd+A09rdeEjh/5sj+YnnXW7JLHl71KrHT3tdk9ZZv01kZu A8O+py2yMOGIgxzAz4p+SQDBTDlmgw7ooJsWBYEyVcexil6v88Wv1aWdjNkYwUv4Mf GuFO80VFZCKtg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Y5gvt5tLyz6txs; Sun, 8 Dec 2024 11:19:22 +0100 (CET) From: Ihor Radchenko To: Amy Grinn Cc: emacs-orgmode@gnu.org Subject: Re: [FR] :noweb-wrap header arg In-Reply-To: <87ikz4ydhd.fsf@localhost> References: <87h6hixhnw.fsf@localhost> <85wmp82boq.fsf_-_@gmail.com> <87y19kxagi.fsf@localhost> <85wmo0l4m1.fsf@gmail.com> <87r0e7s3uo.fsf@localhost> <85r0dt77xf.fsf@gmail.com> <87ikz4ydhd.fsf@localhost> Date: Sun, 08 Dec 2024 10:20:53 +0000 Message-ID: <87seqyeare.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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.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-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -4.88 X-Spam-Score: -4.88 X-Migadu-Queue-Id: E2F054123D X-TUID: iRPAEF73oSkH Ihor Radchenko writes: > Amy Grinn writes: > >>> I recommend the following: >>> >>> If the value starts from ", use Elisp's `read': >>> |"# <<" ">>" >>> (read (current-buffer)) ; => "# <<" >>> otherwise, consider read until the first whitespace. >>> |#<<; >>; >>> (re-search-forward (rx (1+ (not whitespace)))) >>> #<<;| >>> >>> However, there may be edge cases like > ... Thinking about this more in the context of the past meetup discussion, maybe we can just go with two header arguments? :noweb-start :noweb-end? Or, alternatively, we can use a single string and a placeholder for the noweb reference name. Something like :noweb-wrap "# <<%s>>" -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at