Re: [O] [PATCH] org-capture: cannot abort cleanly after inserting at end of buffer

2017-11-04 Thread Xavier Martinez-Hidalgo
On Fri, Nov 3, 2017 at 10:22 PM, Nicolas Goaziou  wrote:

> Applied, with a slight twist. Thank you!

It does look much cleaner using 'copy-marker'. Thanks a lot for the review!

Regards,
--
Xavier Martinez-Hidalgo



Re: [O] [PATCH] org-capture: cannot abort cleanly after inserting at end of buffer

2017-11-03 Thread Nicolas Goaziou
Hello,

Xavier Martinez-Hidalgo  writes:

> After the following steps:
>
> - Start a capture.
> - Move to end of capture buffer (M->).
> - Type some text.
> - Abort capture (C-c C-k).
>
> the capture is aborted but its contents are not removed from the
> target buffer and the following message is shown:
>
>   "Capture process aborted, but target buffer could not be cleaned up
>   correctly"
>
> I am a attaching a patch that adds a test case showing up the problem
> and includes a proposed fix (setting the capture kill end marker
> insertion type).

Applied, with a slight twist. Thank you!

Regards,

-- 
Nicolas Goaziou