[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote f4f1fa3c48 041/355: Declare variables with defco
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote f4f1fa3c48 041/355: Declare variables with defconst |
Date: |
Sun, 26 Jun 2022 23:57:58 -0400 (EDT) |
branch: externals/denote
commit f4f1fa3c488dab0e1f72aba27e3f12540c6ba4c9
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Declare variables with defconst
---
denote-link.el | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/denote-link.el b/denote-link.el
index 8273da23cd..ad0ae0639f 100644
--- a/denote-link.el
+++ b/denote-link.el
@@ -53,20 +53,19 @@ Both are supplied by `denote-link'."
(cons (match-string-no-properties 1)
(match-string-no-properties 2)))
-(defvar denote-link--title-regexp "^\\(#\\+title:\\)[\s\t]+\\(.*\\)"
+(defconst denote-link--title-regexp "^\\(#\\+title:\\)[\s\t]+\\(.*\\)"
"Regular expression for title key and value.")
-(defvar denote-link--filename-regexp "^\\(#\\+filename:\\)[\s\t]+\\(.*\\)"
+(defconst denote-link--filename-regexp "^\\(#\\+filename:\\)[\s\t]+\\(.*\\)"
"Regular expression for filename key and value.")
-(defvar denote-link--identifier-regexp "^\\(#\\+identifier:\\)[\s\t]+\\(.*\\)"
+(defconst denote-link--identifier-regexp
"^\\(#\\+identifier:\\)[\s\t]+\\(.*\\)"
"Regular expression for filename key and value.")
-;; TODO 2022-06-05: Maybe this should be a defcustom?
-(defvar denote-link--link-format "[[denote:%s][%s (%s)]]"
+(defconst denote-link--link-format "[[denote:%s][%s (%s)]]"
"Format of Org link to note.")
-(defvar denote-link--backlink-format "[[denote:%s][backlink: %s (%s)]]"
+(defconst denote-link--backlink-format "[[denote:%s][backlink: %s (%s)]]"
"Format of Org link to note.")
(defun denote-link--retrieve-value (note regexp)
- [elpa] externals/denote d56913b055 349/355: Clarify wording of FAQ entries, (continued)
- [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, 2022/06/26
- [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 <=
- [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
- [elpa] externals/denote 3ef51e9cd7 064/355: Update documentation about denote-dired-mode, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 52fd454153 069/355: Document denote-sort-keywords, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 2eeedaf86a 075/355: Placate the compiler about 'denote-directory', ELPA Syncer, 2022/06/26
- [elpa] externals/denote eafc777268 076/355: Use 'denote-directory' function for '#+link', ELPA Syncer, 2022/06/26
- [elpa] externals/denote d08a72e19a 081/355: Re-indent line, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 5dace99b8d 085/355: Acknowledge Kaushal Modi for commit f97f1f8, ELPA Syncer, 2022/06/26