"Jorge P. de Morais Neto" writes: > - Expected behavior: Org should clock in the first heading, then clock > out from it, prompt for a note, and clock in the second heading (in > batch mode, Emacs should print some clocking messages and then exit > successfully). > - What happens: Org errors out: > user-error: Before first headline at position 164 in buffer *Org Note* Confirmed The fix is attached. Best, Ihor