Re: Bug: headlines escape blocks [9.3 (9.3-elpaplus @ /home/tom/.emacs.d/elpa/org-plus-contrib-20191203/)]

2019-12-08 Thread Nicolas Goaziou
Hello,

Tom Gillespie  writes:

> Thanks for the reply and pointer to the docs. Given that the
> headlines are working as expected, is there the possibility to
> change how the syntax highlighting for source and example
> blocks works so that it matches the behavior for the verse blocks?

I do not understand. Source and example blocks are verbatim blocks,
whereas verse blocks are not. There is nothing to match, is there?

Regards,

-- 
Nicolas Goaziou



Re: Bug: headlines escape blocks [9.3 (9.3-elpaplus @ /home/tom/.emacs.d/elpa/org-plus-contrib-20191203/)]

2019-12-07 Thread Tom Gillespie
Hi Nicolas,
Thanks for the reply and pointer to the docs. Given that the
headlines are working as expected, is there the possibility to
change how the syntax highlighting for source and example
blocks works so that it matches the behavior for the verse blocks?
Best,
Tom


On Sat, Dec 7, 2019 at 3:12 AM Nicolas Goaziou  wrote:
>
> Hello,
>
> Tom Gillespie  writes:
>
> > * 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.
>
> This is the expected behaviour. See (info "(org) Literal Examples")
>
> Regards,
>
> --
> Nicolas Goaziou



Re: Bug: headlines escape blocks [9.3 (9.3-elpaplus @ /home/tom/.emacs.d/elpa/org-plus-contrib-20191203/)]

2019-12-07 Thread Nicolas Goaziou
Hello,

Tom Gillespie  writes:

> * 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.

This is the expected behaviour. See (info "(org) Literal Examples")

Regards,

-- 
Nicolas Goaziou



Bug: headlines escape blocks [9.3 (9.3-elpaplus @ /home/tom/.emacs.d/elpa/org-plus-contrib-20191203/)]

2019-12-07 Thread Tom Gillespie
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/)


org-bug-1.org
Description: Lotus Organizer