From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Gillespie 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 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0000000000004e4000059916533c" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54384) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idSWT-0004nT-UT for emacs-orgmode@gnu.org; Sat, 07 Dec 2019 00:20:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1idSWS-0008B1-GB for emacs-orgmode@gnu.org; Sat, 07 Dec 2019 00:20:53 -0500 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]:33269) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1idSWS-0007yN-4w for emacs-orgmode@gnu.org; Sat, 07 Dec 2019 00:20:52 -0500 Received: by mail-lj1-x243.google.com with SMTP id 21so9945153ljr.0 for ; Fri, 06 Dec 2019 21:20:51 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --0000000000004e4000059916533c Content-Type: text/plain; charset="UTF-8" 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/) --0000000000004e4000059916533c Content-Type: application/vnd.lotus-organizer; name="org-bug-1.org" Content-Disposition: attachment; filename="org-bug-1.org" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k3v4pohx0 VG8gcmVwcm9kdWNlID1lbWFjcyAtcSAtLWxvYWQgb3JnIC0tIG9yZy1idWctMS5vcmc9CiMrQkVH SU5fRVhBTVBMRQoqIFRoaXMgc2hvdWxkIG5vdCBiZSB0cmVhdGVkIGFzIGEgaGVhZGVyCmJ1dCBm b3Igc29tZSByZWFzb24gaXQgaXMKIytFTkRfRVhBTVBMRQoKIytCRUdJTl9TUkMKKiBOZWl0aGVy IHNob3VsZCB0aGlzIGJlIHRyZWF0ZWQgYXMgYSBoZWFkZXIKYnV0IGZvciBzb21lIHJlYXNvbiBp dCBpcwoqKiBBbmQgc28gaXMgdGhpcwojK0VORF9TUkMKCiMrQkVHSU5fVkVSU0UKKiBPZGUgdG8g YSBsZWZ0IGFsaWduZWQgaGVhZGxpbmUKdGhpcyBvbmUgaGlnaGxpZ2h0cyBjb3JyZWN0bHkKIytF TkRfVkVSU0UKCiAjK0JFR0lOX1NSQwoqIFRoaXMgb25lIGRvZXMgbm90IGhpZ2hsaWdodCBjb3Jy ZWN0bHkKaHJtCiAjK0VORF9TUkMK --0000000000004e4000059916533c--