From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6FpZDonOd2ChKwAAgWs5BA (envelope-from ) for ; Thu, 15 Apr 2021 07:26:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wIgxCInOd2C0aQAAB5/wlQ (envelope-from ) for ; Thu, 15 Apr 2021 05:26:33 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 804D117F17 for ; Thu, 15 Apr 2021 07:26:32 +0200 (CEST) Received: from localhost ([::1]:44718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWuWN-0004Xj-K6 for larch@yhetil.org; Thu, 15 Apr 2021 01:26:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWuVd-0004EC-GI for Emacs-orgmode@gnu.org; Thu, 15 Apr 2021 01:25:45 -0400 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]:39906) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWuVa-0004zK-KS for Emacs-orgmode@gnu.org; Thu, 15 Apr 2021 01:25:45 -0400 Received: by mail-ej1-x636.google.com with SMTP id v6so33616707ejo.6 for ; Wed, 14 Apr 2021 22:25:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=+JOeXslzDVZ+6UrwdDUwWqGOTaAsPVE2kOnDUVF14vM=; b=Vwbu25uNYfsO+8tGNfflCK1JmYZk9umQSlSeDXN2vMz4HuRGEkaDHHmeXLJVRqSbGy oQcL+6UP1AP2Nxjz9R5FNCQOw1NjeHBqZ83/X/bH1pI+xWM33lshpk3IH0SyMqkGRTI9 KeLmd2AwQerSabXlvy5lCnKGoK8BtXOEBxSJbw7cLwWk9HMpTYX0QSPRtf9Dm0PeV/Ff j9AS247QjbAg6YGsPKCdpbkWNpA4XEmEpZOeWn1Jt42P3H81ERfmTUzsnd7bfaEeLp0D y2IN3upZBKgv9VSPb5iwhvAHfcnsxb4Rw+XxujEMTnv6n3Q1hhFgXk2NIylyMVMCnys8 Cw/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+JOeXslzDVZ+6UrwdDUwWqGOTaAsPVE2kOnDUVF14vM=; b=J+Y5rrUn/OkHOBl1EFpwtCK6cQBX5fAQUeg3OIvcXRjJPaJNZKkVideGsTSGOnX4cs 9KwiXZSbFuq+CsM155Itkf2NjcyRVqYJiecZciMCGxgyFesju6bMW+pmiJqUwed6wuer 9yJ1PZCY9vUravlitcmcvTfkzfPDmdoAA2VoTofjqn+c5xQyzSaed6BtA8Vtb+4848E0 06kEpYNLEaGVYOObB8Md+/EX0Jx7Yh0g+YHG8jqRW4+yQhkvmgAjnmst6g0WLLm+kLG4 NXQPVEdeybJ2hX2/YzyJ++6iqERo+VnzdM945Zfxay49HP9UAndUqBwPUrFeUG12lOlp /FOg== X-Gm-Message-State: AOAM532xVEHy5p6lyZ7fUQ1ZIYYx5bCCMsKqNppAI4/wWpCFiJdAgjll yaOy8aDvfRLD5wCPdxqb5I9dvEwywOZcyvRIR5bBzQQL+UcJtQ== X-Google-Smtp-Source: ABdhPJyhT4EHZ+jil1H/FnamXY9azKpj12U85n9c3VsZE5/UzdDsWs7C5r6+2I1fYY/4fMllkvFqgruozCZkow5/K8c= X-Received: by 2002:a17:907:7785:: with SMTP id ky5mr1548706ejc.133.1618464340099; Wed, 14 Apr 2021 22:25:40 -0700 (PDT) MIME-Version: 1.0 From: arozbiz@gmail.com Date: Thu, 15 Apr 2021 00:25:03 -0500 Message-ID: Subject: Remove file to original state after org-capture-kill? To: Emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="00000000000012c7b705bffc1825" Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=arozenshtein@gmail.com; helo=mail-ej1-x636.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618464393; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+JOeXslzDVZ+6UrwdDUwWqGOTaAsPVE2kOnDUVF14vM=; b=hpWRi0iM0tqJ0lS8I6Nc3HI6xdoezi5m7cfHo4oWBKz0KXcMUftdrfz+K/hBb6qyZ5hHCR mg3E9KNoEkpe8vIhYtf/e4cU5IGbZypHrZDxy6PI8WUSs5L5VYABHldxF645fq5C7i71Z/ zcsAFlvbUr7E4GlMAmX6fUQ+TK/L6iuv7IKql4TdRzk+f0CZMcE+njHMzTfLsKHeW4J2DR pu9iQr2K31A0a0dHBvMi6J4Fqua0eojpoj+Y322RLih0qG+xIttbghy7gbYLT8C/mJJzWS x5QdoDnP6wyNNVMhum30QFI0bnObwKqc6bmhneQ6VLSDNS7s9xzXqRYZPIIt4Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618464393; a=rsa-sha256; cv=none; b=aXkNrslOM1pH1YoaXUVWYMxFn+mCFGwC84xyypmUHHSyq1hfoQJR8kLbHtrflyWsE7UA21 cJck9VX2DtPbNpIpHtqU4+5VwPyw6dxvApNWYdPDXJOHLobaTy6r6OuYm1vvW5C2nwOBiT gNUmHEN2QV5unZvG11wgJpJwENe/kGQce3b0yOeIP66ic1DtmFCt9zAYC96LrUEh6UjOhk Dhhjq+KpzXLmFldIvw4n6WaGRb51qpJ/20VvazR+3l3NwMYWnqr25VuR75+j1AfMCLXPeM 5P5oIk74cjisMxXcLFWclnbRWOQDi3VHcwHoiMY//fdWr1X1O4xJRIaigKlPeA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Vwbu25uN; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Vwbu25uN; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 804D117F17 X-Spam-Score: -0.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: CZ1QsTJPvN9O --00000000000012c7b705bffc1825 Content-Type: text/plain; charset="UTF-8" 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 --00000000000012c7b705bffc1825 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have an org-capture template that looks like this:
<= br>
'(("j" "Journal"
=C2=A0 entry = (file+headline find-file-function "Journal")
=C2=A0 "* = %?")

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

<= div>If I call org-capture "j" on a file that doesn't have a &= quot;Journal" headline, it will create one for me (the desired behavio= r). But if I abort the org-capture the "Journal" headline will no= t be deleted. Is there a way to change this? I.e., I would like, after I ca= ll org-capture-kill, for the file to return to the state it was before I ca= lled org-capture.

Thanks,
Alan
--00000000000012c7b705bffc1825--