From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id wBYZJHskZmd8NwEAqHPOHw:P1 (envelope-from ) for ; Sat, 21 Dec 2024 02:14:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id wBYZJHskZmd8NwEAqHPOHw (envelope-from ) for ; Sat, 21 Dec 2024 03:14:19 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=breatheoutbreathe.in header.s=key1 header.b=Y5OUDgi8; 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=quarantine) header.from=breatheoutbreathe.in ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734747258; 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=nTGnLnLKz3HnYx0NsCjOBtVszeh1jhcSzInQiFiviFw=; b=V4+48SRZZuPX5/uN2vYfmQgMfDwCnGkzs5N/2Kji5Y0WKN0T1BV+kxGLPtanKduuUuUcv7 BacgpHiHj7ZxGtCv7wC8aKrgyawY3Eubo87DQUHGnoW1w2I24fILNyYkuuffvcHNp5r3wm jXEifkXHLvaGgeuUrfsblr3kjFFhxbedUlNEpG0N2kfMiiVhfinWKW4eVcLHV7nXC/oOec eAcO3s9jNvdNSs/AaE6+kfVj0jiwvLmgogTG8SEOKadE7KSq13YpZ9ghuLPQI1VC56+B8S 0EaZT7f75Tw5UgsZ8MVd+jN5Qeavd0AZJs0NxUwv+Jz3YVFUpcPBg8PbNX5/mA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=breatheoutbreathe.in header.s=key1 header.b=Y5OUDgi8; 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=quarantine) header.from=breatheoutbreathe.in ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734747258; a=rsa-sha256; cv=none; b=JJYE0Ow59wnSa8yDNWJbpdsFjaZcphVgRu9wBL7UJ16ISCuL6itMWrt8eIyzhwa9tdt6yg GBAuzyEYTY9jNQoLkm3qhHOuPF872cgalhNQTNH87okgCrb325waZPmxSOV3mYLokvUMSb 8hf5S+igahGUf9WWMgSODx7YRU9kZqXa/lptDbIv0PpdIdV44ZYZwXtQwQLOu9rnkFysZZ bLsN6D5QJcXxZGBHXYl2WovrxjpRBJ3momBv9jSAkGNtCmHgaAQYZ3aXwyx6h1OnX9Xr/s 9PaD8i1hr5S1fWMgRenAb0LOIaeqyJnz158jIa+EKDSxBnQes15JTnhRQHU1Zg== 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 02E6C97749 for ; Sat, 21 Dec 2024 03:14:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOp01-0000hG-VJ; Fri, 20 Dec 2024 21:13:50 -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 1tOozz-0000gh-3w for emacs-orgmode@gnu.org; Fri, 20 Dec 2024 21:13:47 -0500 Received: from out-185.mta0.migadu.com ([2001:41d0:1004:224b::b9]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tOozu-0004NU-Qc for emacs-orgmode@gnu.org; Fri, 20 Dec 2024 21:13:45 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=breatheoutbreathe.in; s=key1; t=1734747220; h=from:from: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; bh=nTGnLnLKz3HnYx0NsCjOBtVszeh1jhcSzInQiFiviFw=; b=Y5OUDgi8lxvfTU7BaXV/6Px2YjXIDhT6FwaROv+STrrF8qj6fFd6mpUrKEVERtUFL+8TND 07UtfeAR29AjjV55jijwjmHBE/zFxIeYsA0PvEQgOJJXohx+5Q8GgKMOi7S73Mve1f3hbo 5nt8TCRrRO/Ft2nAM4oQ0OsBV++Tyok= From: Joseph Turner To: Nikolaos Chatzikonstantinou Cc: emacs-orgmode@gnu.org, bohonghuang@qq.com Subject: Re: Ignore Local Variables list in source blocks In-Reply-To: (Nikolaos Chatzikonstantinou's message of "Fri, 20 Dec 2024 09:53:49 -0500") References: <87ldwdeih6.fsf@breatheoutbreathe.in> <87zfkr4amw.fsf@breatheoutbreathe.in> Date: Fri, 20 Dec 2024 18:13:37 -0800 Message-ID: <871py1hjfy.fsf@breatheoutbreathe.in> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2001:41d0:1004:224b::b9; envelope-from=joseph@breatheoutbreathe.in; helo=out-185.mta0.migadu.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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-Spam-Score: -9.34 X-Spam-Score: -9.34 X-Migadu-Queue-Id: 02E6C97749 X-Migadu-Scanner: mx10.migadu.com X-TUID: UHoHP/SRBqwF Nikolaos Chatzikonstantinou writes: [...] > If I do something like > > #+begin_comment > Local Variables: > End: > #+end_comment > > #+begin_src > Local Variables: > foo: 40 > End: > #+end_src > > Then the variable is not set, as Emacs does not look for a Local > Variables list more than once. Thanks! This approach is a bit fragile, since Emacs only looks at the last 3000 characters for "Local Variables:". Joseph