[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote bd1fc0b39e 1/3: Change the dummy regexp for fron
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote bd1fc0b39e 1/3: Change the dummy regexp for front matter retrieval to something more self-evident |
Date: |
Wed, 20 Nov 2024 06:57:53 -0500 (EST) |
branch: externals/denote
commit bd1fc0b39e616894f69bae89fafb85d968b33290
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Change the dummy regexp for front matter retrieval to something more
self-evident
This was originally contributed by Jean-Philippe Gagné Guay in pull
request 480: <https://github.com/protesilaos/denote/pull/480>. The
idea is to use this regular expression which will 99% not exist in a
file to handle the case where the user does not want to get the value
of the given entry. The alternative would be to rewrite more parts of
the code, so this feels safer and is easier.
---
denote.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/denote.el b/denote.el
index a0e97deaff..df2134b69d 100644
--- a/denote.el
+++ b/denote.el
@@ -1748,7 +1748,7 @@ this list for new note creation. The default is `org'.")
(or (plist-get
(alist-get file-type denote-file-types)
:title-key-regexp)
- "^denote12345678987654321")) ; Will not be found
+ "^DenoteUserWantsEmptyFieldSoHandleIt")) ; Will not be found
(defun denote--title-value-function (file-type)
"Convert title string to a front matter title, per FILE-TYPE."
@@ -1767,7 +1767,7 @@ this list for new note creation. The default is `org'.")
(or (plist-get
(alist-get file-type denote-file-types)
:keywords-key-regexp)
- "^denote12345678987654321")) ; Will not be found
+ "^DenoteUserWantsEmptyFieldSoHandleIt")) ; Will not be found
(defun denote--keywords-value-function (file-type)
"Convert keywords' list to front matter keywords, per FILE-TYPE."
@@ -1786,7 +1786,7 @@ this list for new note creation. The default is `org'.")
(or (plist-get
(alist-get file-type denote-file-types)
:signature-key-regexp)
- "^denote12345678987654321")) ; Will not be found
+ "^DenoteUserWantsEmptyFieldSoHandleIt")) ; Will not be found
(defun denote--signature-value-function (file-type)
"Convert signature string to front matter signature, per FILE-TYPE."
@@ -1805,7 +1805,7 @@ this list for new note creation. The default is `org'.")
(or (plist-get
(alist-get file-type denote-file-types)
:identifier-key-regexp)
- "^denote12345678987654321")) ; Will not be found
+ "^DenoteUserWantsEmptyFieldSoHandleIt")) ; Will not be found
(defun denote--identifier-value-function (file-type)
"Convert identifier string to front matter identifier, per FILE-TYPE."
@@ -1824,7 +1824,7 @@ this list for new note creation. The default is `org'.")
(or (plist-get
(alist-get file-type denote-file-types)
:date-key-regexp)
- "^denote12345678987654321")) ; Will not be found
+ "^DenoteUserWantsEmptyFieldSoHandleIt")) ; Will not be found
(defun denote--date-value-function (file-type)
"Convert date object to front matter date, per FILE-TYPE."