From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Winslow Subject: Bug: aborting capture to new file leaves 1-byte file behind [8.2.7c] Date: Sun, 07 Sep 2014 01:59:07 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQVWH-0000Ac-RH for emacs-orgmode@gnu.org; Sun, 07 Sep 2014 02:00:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XQVWB-0002oh-O3 for emacs-orgmode@gnu.org; Sun, 07 Sep 2014 02:00:13 -0400 Received: from warped.bluecherry.net ([69.85.163.99]:32805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQVWB-0002aP-I7 for emacs-orgmode@gnu.org; Sun, 07 Sep 2014 02:00:07 -0400 Received: from secure.plugh.us (warped.plugh.us [IPv6:2001:470:4985::2]) by warped.bluecherry.net (Postfix) with ESMTP id C2953540048 for ; Sun, 7 Sep 2014 01:59:11 -0400 (EDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I'm using a capture template to create a new file (via read-file-name) with some pre-filled #+STARTUP options. I'm using immediate-finish, but while I was setting it up I noticed that captures to a new file will leave behind a 1-byte file (containing a newline) if aborted with org-capture-kill. To replicate, just add a new capture template pointing to a non-existent file, start capturing to it, then abort. === Emacs : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2014-06-06 on barber, modified by Debian Package: Org-mode version 8.2.7c (8.2.7c-dist @ /usr/share/emacs24/site-lisp/org-mode/) -- Ben Winslow