emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote a941833ec4: Fix regression in plain text keyword


From: ELPA Syncer
Subject: [elpa] externals/denote a941833ec4: Fix regression in plain text keywords front matter
Date: Thu, 4 Aug 2022 14:57:29 -0400 (EDT)

branch: externals/denote
commit a941833ec43a7444d7f670e2d5552783b508e8f0
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Fix regression in plain text keywords front matter
    
    They were formatted in the Org style.  Technically this is not a
    problem, as plain text has no standard, though I prefer the double
    spacing.
---
 denote.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/denote.el b/denote.el
index aabb8f2872..7f3ffbf44d 100644
--- a/denote.el
+++ b/denote.el
@@ -750,15 +750,15 @@ TITLE, DATE, KEYWORDS, FILENAME, ID are all strings which 
are
 
 Optional FILETYPE is one of the values of `denote-file-type',
 else that variable is used."
-  (let ((kw-space (denote--file-meta-keywords keywords))
-        (kw-md (denote--file-meta-keywords keywords 'md)))
-    ;; TODO 2022-07-27: Rewrite this (and/or related) to avoid
-    ;; duplication with the markdown flavours.
+  (let ((kw-space (denote--file-meta-keywords keywords 'text))
+        (kw-md (denote--file-meta-keywords keywords 'md))
+        (kw-colon (denote--file-meta-keywords keywords)))
+    ;; TODO 2022-08-04: Rewrite this.
     (pcase (or filetype denote-file-type)
       ('markdown-toml (format denote-toml-front-matter title date kw-md id))
       ('markdown-yaml (format denote-yaml-front-matter title date kw-md id))
       ('text (format denote-text-front-matter title date kw-space id 
denote-text-front-matter-delimiter))
-      (_ (format denote-org-front-matter title date kw-space id)))))
+      (_ (format denote-org-front-matter title date kw-colon id)))))
 
 (defun denote--path (title keywords &optional dir id)
   "Return path to new file with TITLE and KEYWORDS.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]