emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [BUG] Inserting new heading


From: Nicolas Goaziou
Subject: Re: [O] [BUG] Inserting new heading
Date: Thu, 16 Mar 2017 13:03:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Hello,

Rick Frankel <address@hidden> writes:

> There is a bug w/ inserting new headings after a collapsed heading (w/
> C-return, org-insert-heading-respect-content) if the last content under the
> heading (or a subhead) is a RESULTS: block. This occurs w/ the value of
> org-blank-before-new-entry as either '(heading . auto) or '(heading . nil).
>
> This started a few months ago, but I just figured out what actually causes the
> behavior.
>
>
> Given the following org file:
>
> --------------------------
> * C-return tests
> ** Results w/ ending blank line removed
>
> #+BEGIN_SRC sh
> echo 'foo'
> #+END_SRC
>
>
> #+RESULTS: : foo ** Results w/ ending blank line
>
> #+BEGIN_SRC sh
> echo 'foo'
> #+END_SRC
>
> #+RESULTS:
> : foo
>
> ** A heading
> ------------------------------
>
> Steps to reproduce:
>
>   For "Correct" (expected) results:
>     1. Collapse all the headings.
>     2. Place the cursor On the line "Results w/ ending blank line removed".
>     3. Hit <C-return> (org-insert-heading-respect-content)
>
>     A new heading is inserted just before the following heading.
>
>   For "Incorrect" results:
>     1. Collapse all the headings.
>     2. Place the cursor On the line "Results w/ ending blank line".
>     3. Hit <C-return> (org-insert-heading-respect-content)
>
>     The new heading characters ('**') are appended to the end of the result
>     block (the end of the heading line after the '...')
>
> BTW, if the heading containing the source block is expanded it works
> correctly.

Fixed. I couldn't reproduce it on maint tho, so the commit landed on
master branch.

Thank you.

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]