[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote e13dc9cfa4 1/4: denote--format-front-matter: Han
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote e13dc9cfa4 1/4: denote--format-front-matter: Handle nil filetype gracefuly |
Date: |
Wed, 10 Aug 2022 14:57:33 -0400 (EDT) |
branch: externals/denote
commit e13dc9cfa4274da2a285210c896672ee1ddbaf17
Author: Juergen Hoetzel <juergen@hoetzel.info>
Commit: Juergen Hoetzel <juergen@hoetzel.info>
denote--format-front-matter: Handle nil filetype gracefuly
As descriped in denote-file-type docstring:
By default (a nil value), the file type is that of Org mode.
Any other non-nil value is the same as the default."
---
denote.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/denote.el b/denote.el
index 914a1d2fc6..f8655ca30b 100644
--- a/denote.el
+++ b/denote.el
@@ -764,8 +764,8 @@ provided by `denote'. FILETYPE is one of the values of
('text (format denote-text-front-matter title date
(denote--format-front-matter-keywords keywords 'text)
id denote-text-front-matter-delimiter))
- ('org (format denote-org-front-matter title date
- (denote--format-front-matter-keywords keywords 'org)
id)))))
+ (_ (format denote-org-front-matter title date
+ (denote--format-front-matter-keywords keywords 'org) id)))))
(defun denote--path (title keywords dir id file-type)
"Return path to new file with ID, TITLE, KEYWORDS and FILE-TYPE in DIR."