emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [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/)]
@ 2023-09-13  2:43 Vladimir Nikishkin
  2023-09-13  4:15 ` note meta
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Nikishkin @ 2023-09-13  2:43 UTC (permalink / raw)
  To: emacs-orgmode

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)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* 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/)]
  2023-09-13  2:43 [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/)] Vladimir Nikishkin
@ 2023-09-13  4:15 ` note meta
  2023-09-13  8:01   ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: note meta @ 2023-09-13  4:15 UTC (permalink / raw)
  To: Vladimir Nikishkin; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1254 bytes --]

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 <lockywolf@gmail.com> 于2023年9月13日周三 11:59写道:

> 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)
>
>

[-- Attachment #2: Type: text/html, Size: 1753 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* 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/)]
  2023-09-13  4:15 ` note meta
@ 2023-09-13  8:01   ` Ihor Radchenko
  0 siblings, 0 replies; 3+ messages in thread
From: Ihor Radchenko @ 2023-09-13  8:01 UTC (permalink / raw)
  To: note meta; +Cc: Vladimir Nikishkin, emacs-orgmode

note meta <metanote.team@gmail.com> writes:

> 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 (,*, ,#+).

Exactly. Closing.
Canceled.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-09-13  8:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-13  2:43 [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/)] Vladimir Nikishkin
2023-09-13  4:15 ` note meta
2023-09-13  8:01   ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).