[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 73dc07ac00 113/355: Make front matter variables
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 73dc07ac00 113/355: Make front matter variables "public" |
Date: |
Sun, 26 Jun 2022 23:58:10 -0400 (EDT) |
branch: externals/denote
commit 73dc07ac00b5f0688a4baed4152961e025e28755
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Make front matter variables "public"
By removing the double hyphens, we indicate that these variables can be
relied upon by the user. In other words: these are hidden customisation
options for those who want to maintain some Do-It-Yourself code.
---
denote.el | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/denote.el b/denote.el
index 2616dfef32..0e5022d31c 100644
--- a/denote.el
+++ b/denote.el
@@ -368,7 +368,7 @@ treatment)."
('toml (format "[%S]" (downcase keywords)))
(_ (downcase keywords))))))
-(defvar denote--tml-front-matter
+(defvar denote-tml-front-matter
"+++
title = %S
date = %s
@@ -377,7 +377,7 @@ identifier = %S
+++\n\n"
"TOML front matter value for `format'.")
-(defvar denote--yaml-front-matter
+(defvar denote-yaml-front-matter
"---
title: %S
date: %s
@@ -386,7 +386,7 @@ identifier: %S
---\n\n"
"YAML front matter value for `format'.")
-(defvar denote--text-front-matter
+(defvar denote-text-front-matter
"title: %s
date: %s
tags: %s
@@ -394,7 +394,7 @@ identifier: %s
%s\n\n"
"Plain text front matter value for `format'.")
-(defvar denote--org-front-matter
+(defvar denote-org-front-matter
"#+title: %s
#+date: %s
#+filetags: %s
@@ -410,10 +410,10 @@ TITLE, DATE, KEYWORDS, FILENAME, ID are all strings which
are
(let ((kw-space (denote--file-meta-keywords keywords))
(kw-toml (denote--file-meta-keywords keywords 'toml)))
(pcase denote-file-type
- ('markdown-toml (format denote--tml-front-matter title date kw-toml id))
- ('markdown-yaml (format denote--yaml-front-matter title date kw-space
id))
- ('text (format denote--text-front-matter title date kw-space id
(make-string 27 ?-)))
- (_ (format denote--org-front-matter title date kw-space id)))))
+ ('markdown-toml (format denote-tml-front-matter title date kw-toml id))
+ ('markdown-yaml (format denote-yaml-front-matter title date kw-space id))
+ ('text (format denote-text-front-matter title date kw-space id
(make-string 27 ?-)))
+ (_ (format denote-org-front-matter title date kw-space id)))))
(defun denote--path (title keywords)
"Return path to new file with TITLE and KEYWORDS.
- [elpa] externals/denote 3f9bfcb74e 101/355: Name the FSF as the copyright holder, (continued)
- [elpa] externals/denote 3f9bfcb74e 101/355: Name the FSF as the copyright holder, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 299b8970ee 095/355: Add support for notes in Markdown and Plain Text, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 112a12e6e5 130/355: Remove duplicate word from face names, ELPA Syncer, 2022/06/27
- [elpa] externals/denote bca23b3e3d 115/355: Clarify how front matter variables are used, ELPA Syncer, 2022/06/27
- [elpa] externals/denote f91d2472c3 128/355: Make the field delimiter face a bit more subtle, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 8a35382067 126/355: Rename internal variable for clarity, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 308322afab 108/355: Fix markdown-toml identifier value, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 11be1d6b40 123/355: Change "tml" to "toml" in denote-toml-front-matter, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 6000313eec 118/355: Enforce sluggification of keywords; document it, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 82eeb381dc 110/355: Make all front matter abstractions consistent, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 73dc07ac00 113/355: Make front matter variables "public",
ELPA Syncer <=
- [elpa] externals/denote 21e415e2e7 111/355: Remove obsolete symbol of command, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 60d64ca07c 117/355: Document ways to change the front matter, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 28518416f3 131/355: Name the faces in the manual, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 0bda79ef19 139/355: Move heading further up in the manual, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 890a335092 149/355: Add denote-dired-rename-expert user option, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 5977a9bc7b 164/355: Add warning about likely changes to denote-link.el, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 3f768cc438 168/355: Remove commented-out 'require', ELPA Syncer, 2022/06/27
- [elpa] externals/denote d6285c8c5a 182/355: Omit current file from backlinks, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 02507c6f0d 171/355: Rename private variable, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 340f9103fd 175/355: Fix typo in manual, ELPA Syncer, 2022/06/27