[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 991abe5b65 034/355: Use denote--file-empty-p
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 991abe5b65 034/355: Use denote--file-empty-p |
Date: |
Sun, 26 Jun 2022 23:57:57 -0400 (EDT) |
branch: externals/denote
commit 991abe5b65f07930830b02355771ac893af859c5
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Use denote--file-empty-p
Added in commit 387ac0c.
---
denote-org-capture.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/denote-org-capture.el b/denote-org-capture.el
index 5999f3aef9..17e5780dbc 100644
--- a/denote-org-capture.el
+++ b/denote-org-capture.el
@@ -68,7 +68,7 @@ sample template. We will eventually have a manual."
(defun denote-org-capture-delete-empty-file ()
"Delete file if capture with `denote-org-capture' is aborted."
(when-let* ((file denote-last-path)
- ((zerop (or (file-attribute-size (file-attributes file)) 0))))
+ ((denote--file-empty-p file)))
(delete-file denote-last-path)))
;; Samples of an `org-capture-templates' entry:
- [elpa] externals/denote 62e7adfbdb 269/355: Replace superfluous 'let*' with 'let', (continued)
- [elpa] externals/denote 62e7adfbdb 269/355: Replace superfluous 'let*' with 'let', ELPA Syncer, 2022/06/26
- [elpa] externals/denote 618eff9807 312/355: Make a couple of minor tweaks to the manual, ELPA Syncer, 2022/06/26
- [elpa] externals/denote a5986742be 315/355: Note the features of filenames for search/filter, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 9888c7087f 348/355: Add check mark to task of using id: links, ELPA Syncer, 2022/06/26
- [elpa] externals/denote d56913b055 349/355: Clarify wording of FAQ entries, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 31e5eb3af8 346/355: Update documentation about links, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 019cccfb1f 015/355: Create denote-directory if absent, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 813004ea53 032/355: Make outline more consistent and informative, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 387ac0c030 033/355: Add denote--file-empty-p, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 9d8748c382 022/355: Add proof-of-concept backlink (lots of TODO), ELPA Syncer, 2022/06/26
- [elpa] externals/denote 991abe5b65 034/355: Use denote--file-empty-p,
ELPA Syncer <=
- [elpa] externals/denote 812da918f7 042/355: Insert comment about not editing backlinks, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 60a91fc6ef 044/355: Use correct notation for private variables, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 0185f38dde 046/355: Add denote-dired.el for useful fontification, ELPA Syncer, 2022/06/26
- [elpa] externals/denote f4f1fa3c48 041/355: Declare variables with defconst, ELPA Syncer, 2022/06/26
- [elpa] externals/denote d0dbbab603 050/355: Update short descriptions, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 4d90cbb5da 054/355: Remove needless to-do, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 610c2f1670 055/355: Comment out inactive link to change log, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 3209bc23ef 059/355: Use "#+filetags" for wider Org compatibility, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 3ef51e9cd7 064/355: Update documentation about denote-dired-mode, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 52fd454153 069/355: Document denote-sort-keywords, ELPA Syncer, 2022/06/26