Hi Bastien,

Yes, it works! I appreciate your work, thank you very much.

I tested the code with the Org 9.3.3 and confirm that the first issue I 
reported is fixed: now when I run `org-capture` and delete lines at the end of 
the org-capture buffer I cannot delete the newline that in the org buffer 
separates the capture item from the next heading.

The other issue I reported is still there, i.e. running this code:

(defun +org|insert-newlines ()
  (beginning-of-buffer) (insert "\nhello world!\n")
  (end-of-buffer) (insert "\nhello world!\n"))

(add-hook 'org-capture-before-finalize-hook #'+org|insert-newlines)

will insert "hello world!" at the beginning and end of the org buffer and not 
the org-capture buffer. I'm not sure if this is intended, and I never use this 
feature anyway. So I'm happy to close this matter here.


On Wed, 05 Feb 2020 at 06:30 WET, Bastien wrote:

> Hi Miguel,
> I made a change in Org maint branch that could somehow impact the
> issue you reported.  Can you test and see if it does?
> Morin <blind....@cantab.net> writes:
>> In the course of fixing this, I found another bug in using the hook
>> `org-capture-before-finalize-hook`, which adds text at the beginning
>> and end of the org buffer and not in the beggining and end of the
>> capture item.
> If this is really another bug, please fill a different bug report for
> it, it helps us track all issues separately.
> Thanks,

Reply via email to