[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] Adding note to heading without newline at the end
From: |
Tor Kringeland |
Subject: |
Re: [BUG] Adding note to heading without newline at the end |
Date: |
Mon, 20 Jun 2022 15:11:54 +0000 |
Ihor Radchenko <yantar92@gmail.com> writes:
> Can you reproduce the problem starting from emacs -Q?
I did. The bug only occurs if there is no newline at the end. So for
example if you open a new buffer and don't save it, the bug should
occur.
Similarly, in my own config (where I have enabled org-log-into-drawer),
the note gets inserted below as is correct but the last letter of the
heading gets inserted at the end, like:
#+begin_example
* tes
:LOGBOOK:
- Note taken on [2022-06-20 Mon 17:07]
:END:
t
#+end_example
(it doesn't seem to matter /where/ in the heading you are when you
insert the note --- it's always the last letter falling down).
I haven't been able to reproduce this with emacs -Q yet, though, but I
suspect the source of the error is the same. Anyway, running Emacs as
before with -Q and inserting a note, the result is:
#+begin_example
- Note taken on [2022-06-20 Mon 17:07]
* test
#+end_example
Again, if there is a newline at the end (as would happen if you first
save the file) the bug doesn't occur.
I'm using a recent build of Emacs 29.
- [BUG] Adding note to heading without newline at the end, Tor Kringeland, 2022/06/19
- Re: [BUG] Adding note to heading without newline at the end, Ihor Radchenko, 2022/06/20
- Re: [BUG] Adding note to heading without newline at the end,
Tor Kringeland <=
- [PATCH] Re: [BUG] Adding note to heading without newline at the end, Ihor Radchenko, 2022/06/20
- Re: [PATCH] Re: [BUG] Adding note to heading without newline at the end, Tor Kringeland, 2022/06/21
- Re: [PATCH] Re: [BUG] Adding note to heading without newline at the end, Tim Cross, 2022/06/21
- Re: [PATCH] Re: [BUG] Adding note to heading without newline at the end, Ihor Radchenko, 2022/06/21
- Re: [PATCH] Re: [BUG] Adding note to heading without newline at the end, Tor Kringeland, 2022/06/22
- Re: [PATCH] Re: [BUG] Adding note to heading without newline at the end, Samuel Banya, 2022/06/23
- Re: [PATCH] Re: [BUG] Adding note to heading without newline at the end, Samuel Banya, 2022/06/26
- Re: [PATCH] Re: [BUG] Adding note to heading without newline at the end, Ihor Radchenko, 2022/06/26
- Re: [PATCH] Re: [BUG] Adding note to heading without newline at the end, Samuel Banya, 2022/06/26
- Re: [PATCH] Re: [BUG] Adding note to heading without newline at the end, Ihor Radchenko, 2022/06/27