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 aDyZOmkkZmd3KwAAqHPOHw:P1 (envelope-from ) for ; Sat, 21 Dec 2024 02:14:02 +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 aDyZOmkkZmd3KwAAqHPOHw (envelope-from ) for ; Sat, 21 Dec 2024 03:14:02 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=breatheoutbreathe.in header.s=key1 header.b=h+yTNi+T; 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=1734747241; 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=aK5bXzoIPz75BRyvhiaYiJyZ6uEjB+ilXt8yx9rNsJ4=; b=niyeGeTdRbIVXTzJUAovLxTsmzw7Pclot9qibbHtIZthpaT0pjje0MUpuhM2PEAza4kV6b qLqmyGjiriwhjkm61IKe6HrhGu4X5DWMT42U6bQVNttK6Z1Uynwkl6pUN1DrtZBV2TlX/b J8d0KF41HEmMJBiqlW+6mJVTD5LKXYsx72+0gFrpZ2F8iMO2rJVvjMr4wN1nxJnO9xVUGr B53q2V4/IZnSPtswo6TssAuMlPNxxnbcakN8HpOuX4uJ53UAgPYx/MYn3SF7PHY6Lc/Dnv huKUZRWlFRYIRj31PXDJhCt+sbb7q31jYtksEcAOZ0LpAUr4PmbuyjDQUIVncg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=breatheoutbreathe.in header.s=key1 header.b=h+yTNi+T; 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=1734747241; a=rsa-sha256; cv=none; b=o77S+LJLzWcq678BDOo/ayUPQWG4aTHmmcesOU5uWVaQ2LmPcc/VdMgW4NXhbn0X8i2oaV 9BgdQ1SpwAKf4Q8Xd2uZ+G+ImDO0e0Y2BgfLrMrbODJ6SdOiDnZM6SQXr3ybWp5WRabZ7A hgPMzbXasqarXwtO3DXo8yHs9LQKPvxRx3jDE6huIky8uAKvcXSqW++iPRGozLYdkYf4Vn xfiFUlB1m6cHdfnxvFxUd8QEBrknWRnGBN7pZT4tTVsbYo4+mkkjuTvoS97F1vzMgQvgb5 YpzlfFhHGvA2dgAiaZBdXd7AY9/OvwAMzQBVVNChsMwWnf9PHIQ+01NSIzthAw== 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 9A2407E8A8 for ; Sat, 21 Dec 2024 03:14:01 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOozx-0000gF-AF; Fri, 20 Dec 2024 21:13:45 -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 1tOozu-0000fw-Gk for emacs-orgmode@gnu.org; Fri, 20 Dec 2024 21:13:42 -0500 Received: from out-176.mta0.migadu.com ([91.218.175.176]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tOozn-0004MI-LV for emacs-orgmode@gnu.org; Fri, 20 Dec 2024 21:13:41 -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=1734747212; 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=aK5bXzoIPz75BRyvhiaYiJyZ6uEjB+ilXt8yx9rNsJ4=; b=h+yTNi+TsIY7XsMvPwGh4IjKOntKmiXe+bZTUg8f9+azihuEMUBAnTpGlrKczjEqK21ELy 3v/MGRsX7lALwYINxOxEDQzSpFKnW89DVXcWLlSVcZCXTCTf59fdQ6tZ+zX6M9rMy7EeCL 4gShpD8tu1vnwARGHl4eKh7Vh8Nsspo= 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:28 -0800 Message-ID: <8734ihhjg7.fsf@breatheoutbreathe.in> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=91.218.175.176; envelope-from=joseph@breatheoutbreathe.in; helo=out-176.mta0.migadu.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -9.14 X-Spam-Score: -9.14 X-Migadu-Queue-Id: 9A2407E8A8 X-TUID: mkGawkIVvKRf 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, though since Emacs only looks at the last 3000 characters for "Local Variables:". Joseph