emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [BUG] Convert heading with no content to item fails


From: Nicolas Goaziou
Subject: Re: [O] [BUG] Convert heading with no content to item fails
Date: Sat, 17 Mar 2018 14:57:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hello,

Adrian Bradd <address@hidden> writes:

> On master (commit: 51b339105), attempting to convert a blank headline to an 
> item with `org-ctrl-c-minus' removes the space after the * and org no longer 
> recognizes it as a heading.
>
> I believe this issue originated in commit 69c5b6c99. Some code was added to 
> strip metadata during the conversion in `org-toggle-item' with 
> `org-heading-delete-metadata'. '(org-set-tags-to nil)' is used to strip tags 
> which in the case of
> the blank heading results in `(delete-region (match-beginning 1) (match-end 
> 1))' being called.
>
> `delete-region' in this case removes the space immediately after the star/s 
> in the blank headline which puts the line in a state that org doesn't 
> consider a headline.
>
> Replacing the removed space following the * or preventing its removal
> would remedy the issue, but I wasn't sure where to implement this.
> Didn't want to make the change in `org-set-tags-to' for fear of
> downstream effects.

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



reply via email to

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