From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] org-capture: cannot abort cleanly after inserting at end of buffer Date: Fri, 03 Nov 2017 22:22:23 +0100 Message-ID: <87r2tfxdkg.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAjQ3-0008EA-EG for emacs-orgmode@gnu.org; Fri, 03 Nov 2017 17:22:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAjQ2-0007Kv-Ej for emacs-orgmode@gnu.org; Fri, 03 Nov 2017 17:22:27 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:47373) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eAjQ2-0007KM-8Y for emacs-orgmode@gnu.org; Fri, 03 Nov 2017 17:22:26 -0400 In-Reply-To: (Xavier Martinez-Hidalgo's message of "Thu, 2 Nov 2017 14:23:03 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Xavier Martinez-Hidalgo Cc: emacs-orgmode@gnu.org 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