From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iP2bM8M3AWUlcwEAauVa8A:P1 (envelope-from ) for ; Wed, 13 Sep 2023 06:17:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iP2bM8M3AWUlcwEAauVa8A (envelope-from ) for ; Wed, 13 Sep 2023 06:17:07 +0200 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 5689B5EF3C for ; Wed, 13 Sep 2023 06:17:07 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=ZYYbC6hN; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694578627; 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=LsKJSdlAPbmcTopSyUcHJGleu8g2b58NsmYSm01ZiIw=; b=S/0pHquZxOIUk3wG/nJ5mE7JUF7xdAag4QbLeBliC/3ANDwzfkDWEgHo2WNP09l/cvRQJz /3YO3w4iewR5AZbXV8FQ/rcOFdQSo5Zs4av7+bU59KKNmNpAbIpQ7nWlDXszKyFmzwn/pN iKtAhOs8dLCCUELyp0mgnczIsqDp/TspwY89mYez3AgDNRBFFoZ1AdsKi8LkAeK7sxlNau onJE0x+oJRm3pOhiMu/0cKSPfD2eFrXtqLkbRlr9lqqt5w3JMr75YDK0qdAs7ysGE6XkG2 JQqeCCUBrkeMB/tELSAoiG+Ih18z0hFNfRBIGRE8QCOsO3xTcJuzkRnqozL7JQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694578627; a=rsa-sha256; cv=none; b=TRYUHXUj+VWaZsQnlXny3QpzkUnCk0ZTl4VuThMy5wdXnSm6BmdXOkuaJMLSykkjvpNq6P issrSqURI/uIp61FofuHF476afag+pdOCsMZcCwJBaYdGkPvp1J1HbAVsRNJXkr9Tb0JKE CPhayQduQwV4F+FQ1rTJULC4+Swx7wtc7uSwbU5i0dEji9xUPKlrBpb0KC58tuoMhPEnY4 SO5P08gBvAWmN5Vs1aRFGjC+5lWJCrFdIHL+G/LDd9zKyHhCvhqIpBBqXEahDRMlpP1sjs Y0Zgu69fbPFN+sE5cWS6Ln5+r7SiwkEA/del86k0sMDtd02Z5w3oXGrLRkFXSQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=ZYYbC6hN; dmarc=pass (policy=none) header.from=gmail.com; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgHIN-00045w-UT; Wed, 13 Sep 2023 00:16:07 -0400 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 1qgHIM-00042b-1f for emacs-orgmode@gnu.org; Wed, 13 Sep 2023 00:16:06 -0400 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgHIJ-0001JO-IY for emacs-orgmode@gnu.org; Wed, 13 Sep 2023 00:16:05 -0400 Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-64b8e1c739aso39434056d6.0 for ; Tue, 12 Sep 2023 21:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694578562; x=1695183362; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=LsKJSdlAPbmcTopSyUcHJGleu8g2b58NsmYSm01ZiIw=; b=ZYYbC6hNeej+g25/Ye4XSpbu+B5MpV04Wdel8u0JUBHsc/1rg2tlo38Ha635abbU8w 4ir0aPjSmJGoJb96/crj2tHwBFNjYZnOoyR9AIL9mb/EFKf8AK0HnwDjjyJDixW1qsbp vUbdBaiHhfjwfi+ysYSwRTsXE1yeOEONWEZN454s0deQoi2jlpqMj0Muw4g77S0SX9d4 zItASCk8P6TqAZN8YiAPr633uUAmAFjvO2v0qA9Agj3KDmYz5VsDgQhSprTJlmS/kJAT EjnOT1gTgtYdmtcw1GP9ofdprGHplFfIDY39dB1OwuNCYHmnPfcTeoySxG8r+MZ4t3sX 1ehw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694578562; x=1695183362; h=cc: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=LsKJSdlAPbmcTopSyUcHJGleu8g2b58NsmYSm01ZiIw=; b=uwMzlpBgrCqVaCQiL/awPIOtlvG8N5GuewinGN3UD/L/zxOngN9WpAbcu4cWkrMVpO OS40ueQzghgvJu0P8wfe/lfduY2c6Zq98U6tdRgkVZxvrzuIZ9HEzqNTSTuQZh9ysUgb 5qIXR5RIOL9xKyrhkDdPYr1k0zEiUzcbCvg0w0ndfC1F2Qj0DfMasKEE9DUJKieGIjyk dH1Y1tV598vpW3TWi3TILHT63lg3F69lcfgOdrg2g502uORLFrSW72FuHUvtcntvsvGA VeP1ydVgOSDeO+arAj/BI6jmmJCpKg3/yqGZ+hXjm0rBejoYCC9hys9IH3+7R+6kwwU/ iDoA== X-Gm-Message-State: AOJu0YyYWVV4ubwINC3XKCiBtPU4I4tGP8x/ws40hfBMlkzJle2f6/u5 8wzyMUxlmNkWioTLAn2C664plhIZGSDPU9qUPaE= X-Google-Smtp-Source: AGHT+IEOX51/IN9VeW1YiYFhRAZR591f6aqgz76EwwECwei9uM39P+0qTwymCbtiE1Ide2Mzr2oidpa4cHUkoYtONo8= X-Received: by 2002:a05:6214:140e:b0:651:75a4:75b0 with SMTP id pr14-20020a056214140e00b0065175a475b0mr1352413qvb.1.1694578562125; Tue, 12 Sep 2023 21:16:02 -0700 (PDT) MIME-Version: 1.0 References: <87r0n24wmm.fsf@laptop.lockywolf.net> In-Reply-To: <87r0n24wmm.fsf@laptop.lockywolf.net> From: note meta Date: Wed, 13 Sep 2023 12:15:50 +0800 Message-ID: Subject: Re: [BUG] src and example blocks do not properly escape headings [9.6.6 (release_9.6.6 @ /usr/share/emacs/30.0.50/lisp/org/)] To: Vladimir Nikishkin Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000003d53f3060535d1c8" Received-SPF: pass client-ip=2607:f8b0:4864:20::f2f; envelope-from=metanote.team@gmail.com; helo=mail-qv1-xf2f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, HTML_MESSAGE=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-Spam-Score: -4.48 X-Spam-Score: -4.48 X-Migadu-Queue-Id: 5689B5EF3C X-Migadu-Scanner: mx0.migadu.com X-TUID: YCc8v299nl6q --0000000000003d53f3060535d1c8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable hi, I think you might use a comma. See here https://orgmode.org/worg/org-syntax.html#Blocks Lines beginning with an asterisk or #+ must be quoted by a comma (,*, ,#+). Zhen Vladimir Nikishkin =E4=BA=8E2023=E5=B9=B49=E6=9C=8813= =E6=97=A5=E5=91=A8=E4=B8=89 11:59=E5=86=99=E9=81=93=EF=BC=9A > Hello, everyone, > > My MWE is the following: > > ``` > Hello, preamble. > > * Heading one > > body one > > #+begin_src org > * heading 2 > #+end_src > > #+begin_example > * heading 3 > #+end_example > > #+begin_verbatim > * heading 4 > #+end_verbatim > > > ``` > > Clearly, "heading 2", "heading 3", and of course, "heading 4" should not > be considered headings of the original document. However, here they are > treated as normal headings, in particular, they are not just breaking > the folding logic, they are even breaking the detection of begin_*/end_* > blocks. > > I have a feeling that this was not the case in the past...? > > Emacs : GNU Emacs 30.0.50 (build 1, x86_64-slackware-linux-gnu, GTK+ > Version 3.24.31, cairo version 1.16.0) > of 2023-07-31 > Package: Org mode version 9.6.6 (release_9.6.6 @ > /usr/share/emacs/30.0.50/lisp/org/) > -- > Your sincerely, > Vladimir Nikishkin (MiEr, lockywolf) > (Laptop) > > --0000000000003d53f3060535d1c8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
hi,

I think you might use a comma.

See here= =C2=A0https://o= rgmode.org/worg/org-syntax.html#Blocks

Lines beginning with an a= sterisk or #+ must be quoted by a comma (,*, ,#+).

Z= hen


Vladimir Nikishkin <= lockywolf@gmail.com> =E4=BA=8E2023=E5=B9=B49=E6=9C=8813=E6=97=A5=E5= =91=A8=E4=B8=89 11:59=E5=86=99=E9=81=93=EF=BC=9A
Hello, everyone,

My MWE is the following:

```
Hello, preamble.

* Heading one

body one

#+begin_src org
* heading 2
#+end_src

#+begin_example
* heading 3
#+end_example

#+begin_verbatim
* heading 4
#+end_verbatim


```

Clearly, "heading 2", "heading 3", and of course, "= ;heading 4" should not
be considered headings of the original document. However, here they are
treated as normal headings, in particular, they are not just breaking
the folding logic, they are even breaking the detection of begin_*/end_* blocks.

I have a feeling that this was not the case in the past...?

Emacs=C2=A0 : GNU Emacs 30.0.50 (build 1, x86_64-slackware-linux-gnu, GTK+ = Version 3.24.31, cairo version 1.16.0)
=C2=A0of 2023-07-31
Package: Org mode version 9.6.6 (release_9.6.6 @ /usr/share/emacs/30.0.50/l= isp/org/)
--
Your sincerely,
Vladimir Nikishkin (MiEr, lockywolf)
(Laptop)

--0000000000003d53f3060535d1c8--