emacs-orgmode
[Top][All Lists]
Advanced

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

Re: behavior of (org-insert-heading-respect-content)


From: Marco Wahl
Subject: Re: behavior of (org-insert-heading-respect-content)
Date: Thu, 09 Sep 2021 20:54:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Hi!

"Victor A. Stoichita" <victor@svictor.net> writes:

> I see the following behavior which seems erroneous to me :
> - When I issue (org-insert-heading-respect-content) in a brand new org
>   buffer, with point at point-min I get the error "Beginning of buffer"
>   and no heading is inserted.
> - If I write something on the 1st line, say "test", but no newline, and
>   then issue (org-insert-heading-respect-content), the result is :
>   "test  * " which is not a properly formatted heading
> - Only if there is a newline before point does
>   (org-insert-heading-respect-content) insert a proper heading. 
>
> Am I getting something wrong or is this a bug ?

I think so.

My impression is that org-insert-heading-respect-content should be
called only with point in a subtree.

The fix would be to signal an error when point is not located in a
subtree.

Does this sound reasonable?










reply via email to

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