From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug: org-capture destroys target file when user aborting prompt in template [6.36trans (release_6.36.430.gec51)] Date: Sun, 27 Jun 2010 09:25:59 +0200 Message-ID: References: <878w6110wp.wl%dmaus@ictsoc.de> <8D3E7F4D-3975-455F-9512-173001D9C419@gmail.com> <87aaqhj6jq.wl%dmaus@ictsoc.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=41445 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OSmFg-0001GZ-LP for emacs-orgmode@gnu.org; Sun, 27 Jun 2010 03:26:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OSmFe-0002Lu-VJ for emacs-orgmode@gnu.org; Sun, 27 Jun 2010 03:26:04 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:65063) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OSmFe-0002Ll-Om for emacs-orgmode@gnu.org; Sun, 27 Jun 2010 03:26:02 -0400 Received: by wyb39 with SMTP id 39so2656995wyb.0 for ; Sun, 27 Jun 2010 00:26:02 -0700 (PDT) In-Reply-To: <87aaqhj6jq.wl%dmaus@ictsoc.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: David Maus Cc: emacs-orgmode@gnu.org Hi David, can you please make me an example template and then the exact steps to reproduce this? Thank you. - Carsten On Jun 27, 2010, at 9:09 AM, David Maus wrote: > Hi Carsten, > > Carsten Dominik wrote: >> Hi David, > >> thanks for the detailed report - nice catch. This was due to the >> fact >> that I am copying all local variables from the target buffer to the >> temp buffer, unfortunately including buffer-file-name :) > >> THhis is fixed now - I hope you did not loose any data. > > Luckily I didn't, just a good rush of adrenalin :) > > It's still not entirely fixed: The target is not overwritten, but when > I abort org-capture there is one of those ##-file (how are > those called?) with the skeleton left behind. E.g. when aborting a > template that files to ~/org/inbox.org and leaving Emacs (or calling > `org-save-all-org-buffers' I get a ~/org/#inbox.org# with the > template's skeleton. > > Thanks for the quick fix, > -- David > > -- > OpenPGP... 0x99ADB83B5A4478E6 > Jabber.... dmjena@jabber.org > Email..... dmaus@ictsoc.de - Carsten