[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 387ac0c030 033/355: Add denote--file-empty-p
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 387ac0c030 033/355: Add denote--file-empty-p |
Date: |
Sun, 26 Jun 2022 23:57:57 -0400 (EDT) |
branch: externals/denote
commit 387ac0c030ff39922c219308b14b2114628bb463
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Add denote--file-empty-p
---
denote.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/denote.el b/denote.el
index 311149c04b..71ddc9486d 100644
--- a/denote.el
+++ b/denote.el
@@ -139,6 +139,10 @@ trailing hyphen."
"Make STR an appropriate file name slug."
(downcase (denote--slug-hyphenate (denote--slug-no-punct str))))
+(defun denote--file-empty-p (file)
+ "Return non-nil if FILE is empty."
+ (zerop (or (file-attribute-size (file-attributes file)) 0)))
+
;;;; Keywords
(defun denote--directory-files ()
- [elpa] externals/denote 987854d96c 298/355: Add missing findex directive for denote-dired-mode, (continued)
- [elpa] externals/denote 987854d96c 298/355: Add missing findex directive for denote-dired-mode, ELPA Syncer, 2022/06/26
- [elpa] externals/denote ddbbe549b6 283/355: Use function to test if file likely is a note, ELPA Syncer, 2022/06/26
- [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 <=
- [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, 2022/06/26
- [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