From: Tom Gillespie <tgbugs@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: headlines escape blocks [9.3 (9.3-elpaplus @ /home/tom/.emacs.d/elpa/org-plus-contrib-20191203/)]
Date: Fri, 6 Dec 2019 21:20:38 -0800 [thread overview]
Message-ID: <CA+G3_PPKS1Weywov1RR5U4EMJ5nyH-v8q1Aa-iu9v+upRgjopg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1721 bytes --]
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See
https://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------
* Description
Headlines are not ignored inside of blocks when the headline is not indented.
* Affected versions
9.1.9, 9.3
* Observed behavior
Lines starting with any headline pattern =*=, =**= etc. are treated as
headlines inside all block types. Example and source blocks highlight
as if the text is escaped, diverging from the behavior of org-mode.
Verse blocks highlight as a headline, in agreement with the behavior.
* Expected behavior
I would expect the behavior implied by the highlighting in the example
and source blocks. Blocks should take precedence over the headline
behavior.
* Reproduction
See example below (attached as a standalone file as well).
---------------
To reproduce =emacs -q --load org -- org-bug-1.org=
#+BEGIN_EXAMPLE
* This should not be treated as a header
but for some reason it is
#+END_EXAMPLE
#+BEGIN_SRC
* Neither should this be treated as a header
but for some reason it is
** And so is this
#+END_SRC
#+BEGIN_VERSE
* Ode to a left aligned headline
this one colors correctly
#+END_VERSE
#+BEGIN_SRC
* This one does not highlight correctly
hrm
#+END_SRC
---------------
Emacs : GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, X toolkit)
of 2019-09-27
Package: Org mode version 9.3 (9.3-elpaplus @
/home/tom/.emacs.d/elpa/org-plus-contrib-20191203/)
Package: Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @
/usr/share/emacs/26.3/lisp/org/)
[-- Attachment #2: org-bug-1.org --]
[-- Type: application/vnd.lotus-organizer, Size: 420 bytes --]
next reply other threads:[~2019-12-07 5:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-07 5:20 Tom Gillespie [this message]
2019-12-07 11:12 ` Bug: headlines escape blocks [9.3 (9.3-elpaplus @ /home/tom/.emacs.d/elpa/org-plus-contrib-20191203/)] Nicolas Goaziou
2019-12-07 20:31 ` Tom Gillespie
2019-12-08 8:05 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA+G3_PPKS1Weywov1RR5U4EMJ5nyH-v8q1Aa-iu9v+upRgjopg@mail.gmail.com \
--to=tgbugs@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).