emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: arozbiz@gmail.com
To: Emacs-orgmode@gnu.org
Subject: Remove file to original state after org-capture-kill?
Date: Thu, 15 Apr 2021 00:25:03 -0500	[thread overview]
Message-ID: <CAJniy+MTcAdvpiRw9cQa4mFGRFVYXVsfCUpTtv1QXdwf6GivOg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 600 bytes --]

I have an org-capture template that looks like this:

'(("j" "Journal"
  entry (file+headline find-file-function "Journal")
  "* %?")

(I create separate Org files for each day, which the find-file-function
returns the path for.)

If I call org-capture "j" on a file that doesn't have a "Journal" headline,
it will create one for me (the desired behavior). But if I abort the
org-capture the "Journal" headline will not be deleted. Is there a way to
change this? I.e., I would like, after I call org-capture-kill, for the
file to return to the state it was before I called org-capture.

Thanks,
Alan

[-- Attachment #2: Type: text/html, Size: 815 bytes --]

                 reply	other threads:[~2021-04-15  5:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAJniy+MTcAdvpiRw9cQa4mFGRFVYXVsfCUpTtv1QXdwf6GivOg@mail.gmail.com \
    --to=arozbiz@gmail.com \
    --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).