From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30728 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: Walk and deep copy in Lua filters Date: Sun, 12 Jun 2022 20:41:06 +0200 Message-ID: <87tu8pyaur.fsf@zeitkraut.de> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13675"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBFHLTCKQMGQERIT66RI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jun 12 20:51:05 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f58.google.com ([209.85.167.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o0Sfw-0003MX-Gs for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 12 Jun 2022 20:51:04 +0200 Original-Received: by mail-lf1-f58.google.com with SMTP id bi42-20020a0565120eaa00b0047dc53b46edsf1589609lfb.21 for ; Sun, 12 Jun 2022 11:51:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655059864; cv=pass; d=google.com; s=arc-20160816; b=ds2t4zirNGCp7watMSrgqpL4nk+KjdGjN1S5Yb1dxH5emB3QUkDKxk1xiN9Aimu0nl fB/zX0clz2aI6HBorbcUIYwcVPi9fJKXsBaanlRZFalQDOrTene3S/n8s8/7HAApK1xY I/qy23QID157TbuuN02UVn34F3NwGWpzVp2D6Tcfd2AW5wvW7RVrGA3TobspGCf9nQx/ 7KG0G/8S6+gjbmHeMZTkimw7hidNMohZ5rUf6jG8du2GFm5UmvPkEzAkF3sG5bbs2LzU QQvKotAPXyv6xOPSgmFFayVM3F4YsYeR/ZN9n8+JVMDrDEmQtQ9T/t4gMaZwPkEisIEs x2rg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:content-transfer-encoding :mime-version:message-id:in-reply-to:date:subject:to:from:references :sender:dkim-signature; bh=UOuId+rrotRxrO7wa7MPxF7TMhLYyTy/cDjQc3obMDA=; b=EKo0M5zktJfq+8926rmXgYDxdB//g4QS/+hzy8KJNxO7pKqYMOgUwSYlpoue55hEJ4 uxRg5WaU2KURZItfkqCwk6ln7/7hW9Cf1Yz8zAXCttLANTnnvDyHST/Jj5E7rCvUcT8N 2tUwmGFOXYwB7fgU8y2m8XJFCmhEb0NuWY1lRcvL7jNoBDpWAzwPnc1fdMMZj8kE698q miW3C0a2rDwGRsBbNSYYNVm7+73tv45ObBg6LW2IGVRe8We6dBmuQRuMSMoAhoAZqtpL tLdC6W824wGAPQ7tiUjFXFm/pxEZgmYI/SWCIX4ejjeSHZb0VCIeI2YtcB32DrtlIXY0 BXmg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::102 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:references:from:to:subject:date:in-reply-to:message-id :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=UOuId+rrotRxrO7wa7MPxF7TMhLYyTy/cDjQc3obMDA=; b=YS6vBXvcaxJ5XKTPqVpPHQGUEB93fSTAyaaFwuDiZc2+cf90+NgWUgspHxDC0axmHB rGjARZldItdkbxvmZA9vIIZeTD1Fw6csn5qya7JsYp6hL4OfOAXslhg9RrSWO6vdRwo+ OL7fdhQOfjxLoDwwSyc2Z1PZFlb4RyCkdudmRWz43IDl2W8LKeh+lNv4Ol4cJcFIKX5c 7FZPP6+1jW6pk7NeiH0Hk0nsbYJH0b0p8gJLBN/LDprj8SbIFVCzzYGr4i+nSe3fxQxD YSJ3q5VsPTiDzm2ed28QHxXqc4CmRYQCMmhY88pC2QtUboWL0LCbvn9jZ4UmPpW2vbnX LOAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:references:from:to:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=UOuId+rrotRxrO7wa7MPxF7TMhLYyTy/cDjQc3obMDA=; b=Eb94GP1fQKONzHSUsIzRZ3dP3excS43FI+MlsKJkE94O4PUItu8kDtJxf4LCbkNzuw TMCZE9YXcsRrUWNlDDt7pE7onkQuMazBXPO6JMJPIZqrSvCl3DX5KKdTyZjofJNfHInt /CY1vYU6+x0XDf5q/tl4TYwFIq8dzkwGz8oUutjbNcLiPHpv9C2EG82QshQrT1SYnVbw DszG2VLFKjeHCWhwIlTMXyFUpyilWMEKS3aKmkAfR6TeTplJNo7xkMJG1o1R/FzL5IXC w8AA1JVH9YNoGDLhCqAWMrFMkpRmi+tvCz1JdWRODrPcD/lwLTjJw3BTBfKp8hJxqfgy Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533mw3SfttreYIkVmmJonI6qfoJItrHTtQDHNf4nFxsCpOE1g0mQ IX2PmX0HbQqPKMFseeWzaps= X-Google-Smtp-Source: ABdhPJyaCjQVVa+6SfRE0DbICik9D0FL3dT/rWypDKFzX9Q2uilfxCOjBP8rHFUfpdtMgk5zs8azKA== X-Received: by 2002:a05:651c:2107:b0:255:beb0:9969 with SMTP id a7-20020a05651c210700b00255beb09969mr13217247ljq.157.1655059863832; Sun, 12 Jun 2022 11:51:03 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:1693:b0:448:3742:2320 with SMTP id bu19-20020a056512169300b0044837422320ls925304lfb.1.gmail; Sun, 12 Jun 2022 11:50:58 -0700 (PDT) X-Received: by 2002:ac2:42cc:0:b0:473:da69:5115 with SMTP id n12-20020ac242cc000000b00473da695115mr32807571lfl.61.1655059858783; Sun, 12 Jun 2022 11:50:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655059858; cv=none; d=google.com; s=arc-20160816; b=g5oTtb5L4Mbs0u3KF4nIavQHNQAYnG+cVPrMWVWUDRFuLadW/dNlLq+uWl+pCNPr/k xDmtHNel1O/OQAIwhxEd8TDDch6sQgbAlKfWpO/PtqPLeA2EjZZqcqEr/oNCnRNwc0Rl eT8YhDJg0aA8e0CEzMCMlR3EUzzkBSm9ZvSkV1DopeZ7aueC0RWSq7rmJWuq1lwTOGFG kl3smoXbNLvqHBqIGuK3MOiN2Mb6JLvEuOfhBGryRSDjdJ2h9z09sC2GboGwWQli627D 6gM19+MWBjzgKozM++v1VomoW5G9T1pSuU1sAkw32+MmP/9dHFV7gj/Mf2n9RvkE66VM 5MHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:references; bh=xk5ivf5Lk3SrSX0VLq3VIocgnEcahI/O1ACKX7algR4=; b=rbyF/cWqThJtU6cuuqNu8Lte0OL+E6OJVqTbeW+xE6cqkDPC4PoGevXp8de3Wsp4Of GlEAJRnMN+btt6nhutjjide2lEHZMFutYVlK2j5SWCVnIrdcVLLiEvtaOgxTjkVfTFvr ugrJm6HMAgSfuL9XytJOiqW0efYfKY+47tB3dAC2G+40DlJVVy40vtn+GZoKP59TtoOa J3wnt4/5yg8MA1cYhONxWa6MrbrDW3acHrwed51MUXkq2/NodJqTSDrcwypSped2Ccyw OhnZZAbkc++/EDdaqY8X5iaXYZ2tSeetT/31qQ0YTyjzta+uv5ijKuvTuEqW9YR/3tM8 80Cw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::102 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org. [2001:67c:2050:0:465::102]) by gmr-mx.google.com with ESMTPS id m24-20020a197118000000b00479071ed831si160087lfc.11.2022.06.12.11.50.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jun 2022 11:50:58 -0700 (PDT) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::102 as permitted sender) client-ip=2001:67c:2050:0:465::102; Original-Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4LLkL81fkbz9srL for ; Sun, 12 Jun 2022 20:50:56 +0200 (CEST) In-reply-to: X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::102 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:30728 Archived-At: Bastien DUMONT writes: > I just discovered by chance that the method walk returns a deep copy > of the passed object, leaving the original object untouched. [...] > > [...] Nevertheless, since it is not really documented, can it be > considered to be deliberate and stable? If this is the case, could it > be possible to make explicit in the documentation, under the header > =E2=80=9CResult=E2=80=9D, that the original block or inline element is le= ft unchanged? Yes, this is deliberate and won't change. A PR to improve the docs would be very welcome. --=20 Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/87tu8pyaur.fsf%40zeitkraut.de.