Ihor Radchenko <yanta...@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.