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 KLoqG0SFZWfryAAAqHPOHw:P1 (envelope-from ) for ; Fri, 20 Dec 2024 14:55:00 +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 KLoqG0SFZWfryAAAqHPOHw (envelope-from ) for ; Fri, 20 Dec 2024 15:55:00 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Z4mCrdyB; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734706500; h=from:from:sender:sender: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=pNcXDKR93IZW0ahoEOX7tqy+St/NGZhYs+Au7ieSZ5I=; b=iyol62p79Q3Ig1/bsAjp7BRiTDgWcQaIP3zSchc4o3KOLcuU2vCL8g6J4VzjUZbHQXJnc2 0+1U+fu+/zxATUBwmLgeMo+ikQ2JQrhAFt2s8fpZxxCFiiPkJdYcI2tKwlcU0vJofIiwn0 3ogri26eoKNI232IXhnMLb7KaONW86hY/w6v8ULFevb2DRWVhYXdpMDbVDR4GkRZnVdgOD 7fjr1jEezggM8H6dPanKSIL5qlhuML/gu2i8imy8/QeEiu8wKGWOhnAHrx7KmtXOA7iYjz B+I4KzOwwwArMQwKT4P3Tz94ZV6KPVOzvXKbmO6HgJEZxp/ocPY15GX5YZ+ExQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734706500; a=rsa-sha256; cv=none; b=MTfU+zuy/Z/ompC4pFMBcZP0vzfDhU+xDOFwq7r8cdIFlVpH6DTPNfj9pOZn8umlcxTdPk GhD4Zhha+PFwQaD7aTELkoxAJyqB/yYQPnhKC6Ai6HxVMep5nSILJSiBMwLFuLtroeByVS Gp2tTLAmuy5uWm19+uiTl3347PJWd72Qrb7lYwKdlMcFm62T/tXwHfWcriGVTcgowAr+vz 5pgKZJ/YNKfmKjot3Pi+lxTP6H3jLVWriLwRbu4Kwrm5p4IcXsQGDK2VqhjALD/b1NEN6+ NeeCpfm7dFfs+OUp4vKvhM9srcztEZpiCy/J8ZF3ZGUjhIS0qQabTMXPF8AI9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Z4mCrdyB; 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=gmail.com 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 1D1658A27B for ; Fri, 20 Dec 2024 15:55:00 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOeOE-0001ah-6u; Fri, 20 Dec 2024 09:54:06 -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 1tOeOC-0001aH-I3 for emacs-orgmode@gnu.org; Fri, 20 Dec 2024 09:54:04 -0500 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tOeOA-0006la-JO for emacs-orgmode@gnu.org; Fri, 20 Dec 2024 09:54:04 -0500 Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-820b825cbfcso2593270a12.1 for ; Fri, 20 Dec 2024 06:54:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734706441; x=1735311241; darn=gnu.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pNcXDKR93IZW0ahoEOX7tqy+St/NGZhYs+Au7ieSZ5I=; b=Z4mCrdyB4XjRja7GIkfJm8RakXzCdgnSHijY+8MKcJ8azXdprDJ7gIB+nuMQoit6kJ N2rixQnYQfeOfUQq31UXaiK/TY4Uzxc8Dnv4galUgUD/oYiEfHLfZzYnmzSCfcWxaz4A xPTcDXBrLwXrEfK2PTYPijSo70tWdGJdru9KQrEAonz9NQlEYlDEjImM2RGXiR2UDjS0 Wxf8re2DdITYvbd50I+0qwWhidrCTCBfrL8h+ooXYOgqXiazvedbhIsG7clQQwTrOQYA uFPihJnMQZnqU4p4hEo261fgtviISb2/WEf1MhMkWo0puD2niCSjkhRoMqsTy7HdiLAM Vz+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734706441; x=1735311241; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pNcXDKR93IZW0ahoEOX7tqy+St/NGZhYs+Au7ieSZ5I=; b=xB96gD+Hhva1ayylqb6d+KQLwXQwFGQLcgIwhykNaYdCpS9F3Z8ESGU4lrEL/ZMx5v ly3bJfSQ92BgTCTQM2pOjbCLqYcOl/Jm4RFCQCR0Tbm+yuyTj347XJbru3zKasN8hKPl NAwZe/aFFEb7FPUv30Q7mGLyjIT27Ma1xFtcZgNKV3Ba/ompcyKzZB4sclqZCy/FRUbA ZauoHWmDMVCtGdJm/kTDVhMEnnLIIjCeLkE3zEthJ4uzqsDY+2sLVUxEccHKiU5pgfmQ wXpwX7j/psiMewEENHWdTeDYRke7uP/VOhuvFJfl+E4cFErPEa/BeFXVCFy0J2fNUaNl 3rMQ== X-Forwarded-Encrypted: i=1; AJvYcCVuGY1pvPm9Fdw9f3JJ3iv/VqaFs4MvKLVjdnlGUS82Loai88T6rp2jJgeE77WwM3wMGTSGoJZWoYg4s2+s@gnu.org X-Gm-Message-State: AOJu0Yx8XAjMqDElk/Sa1A7gwmDqWcjmTMvAZVZZfJQVVanWTwE7IIjx ToyMBBIyaF5rOiAnVjtJqJW9Rc2EjlOJVZ7d6BYNk4tpRFvzCkNrOLr75YuBE2JdytNpL+Ole23 ADN8aP+mUxrp8ptIy9JxNi/7pBMWXJ5mD X-Gm-Gg: ASbGnctUvBH/luVSvwLy6sF9jOX47RYHTKFSn/eLsmaXMWQ/c94edwY/J38Tnjgq8H7 LhGkOwDN/bbAuBvDL3/yp5rkhT4Dbyp+ATMo= X-Google-Smtp-Source: AGHT+IHmHWSuotmxhPt0jPOjL7jhrGtoV6ttVofYEWKz1ZXi5zFcAHY/8ZewS6bicdw6CvfddwJrD7+GgIw5jjF+DLI= X-Received: by 2002:a17:903:2ac3:b0:215:9eac:1857 with SMTP id d9443c01a7336-219da5b9caemr103865305ad.5.1734706440938; Fri, 20 Dec 2024 06:54:00 -0800 (PST) MIME-Version: 1.0 References: <87ldwdeih6.fsf@breatheoutbreathe.in> <87zfkr4amw.fsf@breatheoutbreathe.in> In-Reply-To: From: Nikolaos Chatzikonstantinou Date: Fri, 20 Dec 2024 09:53:49 -0500 Message-ID: Subject: Re: Ignore Local Variables list in source blocks To: Joseph Turner , emacs-orgmode@gnu.org, bohonghuang@qq.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::52c; envelope-from=nchatz314@gmail.com; helo=mail-pg1-x52c.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -9.49 X-Spam-Score: -9.49 X-Migadu-Queue-Id: 1D1658A27B X-TUID: VwSNdoHmQw0A On Fri, Dec 20, 2024 at 9:46=E2=80=AFAM Max Nikulin w= rote: > > On 20/12/2024 04:37, Joseph Turner wrote: > > Max Nikulin writes: > >> Have you tried to create a comment block below? > >> > >> #+begin_comment > >> Deactivate local variables above in the example block: > >> Local Variables: > >> End: > >> #+end_comment > > > > In my testing, in order to make Emacs ignore the `foo: bar' binding, th= e > > empty Local Variables list actually needs to go first. > > Then it is more fragile in the case of complex documents, but still may > be viable for simple ones with single example. > > > Splitting the example into two parts results in "File mode specificatio= n > > error: (user-error Local variables entry is missing the prefix) " upon > > opening the file. > > I expected that the code looking up for local variables is reasonably shy= . > > > You can test with this: > > #+BEGIN_SRC org > > # Local Variables: > > #+END_SRC > > > > #+BEGIN_SRC org > > # org-srs-review-new-items-per-day: 30 > > # org-srs-review-max-reviews-per-day: 100 > > # End: > > #+END_SRC > > Unfortunately > > : # Local Variables: > #+BEGIN_EXAMPLE > # org-srs-review-new-items-per-day: 30 > # org-srs-review-max-reviews-per-day: 100 > # End: > #+END_EXAMPLE > > Causes a warning as well: > "Local variables list is not properly terminated" > > >> (info "(emacs) Specifying File Variables") > > > > By the way, is there a built-in command to copy that (info ...) sexp > > when viewing that info page? > > A short answer "C-0 c" or "C-0 w". Maybe I will send a longer one, > dropping bohonghuang from Cc. > > >> > > > > Thanks, I just re-read that page more carefully, and I see this: > > > > If some unrelated text might look to Emacs as a local variables > > list, you can countermand that by inserting a form-feed character = (a > > page delimiter, *note Pages::) after that text. Emacs only looks = for > > file-local variables in the last page of a file, after the last pa= ge > > delimiter. > > I do not like non-printable characters. E.g. Thunderbird rendered your > message with confusingly large vertical space in the middle. Outside of > Emacs, kludges like ";;; org.el ends here" are not common. I would not > be surprised by some issues on attempt to edit the README.org file on > the GitHub site directly. 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. Regards, Nikolaos Chatzikonstantinou