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

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

[elpa] externals/denote f57e9c5c9f 165/355: Change internal variable sym


From: ELPA Syncer
Subject: [elpa] externals/denote f57e9c5c9f 165/355: Change internal variable symbols for consistency
Date: Sun, 26 Jun 2022 23:58:18 -0400 (EDT)

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

    Change internal variable symbols for consistency
---
 denote-link.el | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/denote-link.el b/denote-link.el
index ed0c6d7b29..9292428ae1 100644
--- a/denote-link.el
+++ b/denote-link.el
@@ -60,16 +60,16 @@ files."
 (defconst denote-link--backlink-format-org "[[file:%s][backlink: %s (%s)]]"
   "Format of Org backlink to note.")
 
-(defconst denote-link--link-format-md "[%2$s (%3$s)](file:%1$s)"
+(defconst denote-link--link-format-markdown "[%2$s (%3$s)](file:%1$s)"
   "Format of Markdown link to note.")
 
-(defconst denote-link--backlink-format-md "[backlink: %2$s (%3$s)](file:%1$s)"
+(defconst denote-link--backlink-format-markdown "[backlink: %2$s 
(%3$s)](file:%1$s)"
   "Format of Markdown backlink to note.")
 
-(defconst denote-link--link-format-txt "<LINK: %s> [NAME %s (%s)]"
+(defconst denote-link--link-format-text "<LINK: %s> [NAME %s (%s)]"
   "Format of plain text link to note.")
 
-(defconst denote-link--backlink-format-txt "BACKLINK: <%s> [NAME %s (%s)]"
+(defconst denote-link--backlink-format-text "BACKLINK: <%s> [NAME %s (%s)]"
   "Format of plain text backlink to note.")
 
 (defconst denote-link--backlink-regexp "\\[\\[file:\\(.*?\\)\\]\\[backlink: 
\\(.*?\\) (\\(.*?\\))\\]\\]"
@@ -79,8 +79,8 @@ files."
   "Return link pattern based on FILE format.
 With optional BACKLINK, return a backlink pattern"
   (pcase (file-name-extension file)
-    ("md" (if backlink denote-link--backlink-format-md 
denote-link--link-format-md))
-    ("txt" (if backlink denote-link--backlink-format-txt 
denote-link--link-format-txt))
+    ("markdown" (if backlink denote-link--backlink-format-markdown 
denote-link--link-format-markdown))
+    ("text" (if backlink denote-link--backlink-format-text 
denote-link--link-format-text))
     (_ (if backlink denote-link--backlink-format-org 
denote-link--link-format-org)))) ; Includes backup files.  Maybe we can remove 
them?
 
 (defun denote-link--format-link (file pattern)



reply via email to

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