emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: David Maus <dmaus@ictsoc.de>
Cc: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <CD4D96CE-6D0C-4C51-A130-9E4CC86817F5@gmail.com> (raw)
In-Reply-To: <87aaqhj6jq.wl%dmaus@ictsoc.de>

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 #<filename>#-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

  reply	other threads:[~2010-06-27  7:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-27  5:48 Bug: org-capture destroys target file when user aborting prompt in template [6.36trans (release_6.36.430.gec51)] David Maus
2010-06-27  6:35 ` Carsten Dominik
2010-06-27  7:09   ` David Maus
2010-06-27  7:25     ` Carsten Dominik [this message]
2010-06-27  8:20       ` David Maus
2010-06-27 10:27         ` Carsten Dominik
2010-06-27 12:26           ` David Maus
2010-06-27 16:32             ` Carsten Dominik
2010-06-27  9:23     ` Štěpán Němec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CD4D96CE-6D0C-4C51-A130-9E4CC86817F5@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=dmaus@ictsoc.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).