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

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

[elpa] externals/denote 88e64be2cb 176/355: Fix plain text link format


From: ELPA Syncer
Subject: [elpa] externals/denote 88e64be2cb 176/355: Fix plain text link format
Date: Sun, 26 Jun 2022 23:58:21 -0400 (EDT)

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

    Fix plain text link format
    
    Sorry, this was my original intent.  I got it mixed up with Org...
---
 README.org     | 2 +-
 denote-link.el | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.org b/README.org
index e2fd8d74a5..65f9c1a6ea 100644
--- a/README.org
+++ b/README.org
@@ -557,7 +557,7 @@ the given entry, per ~denote-file-type~ 
([[#h:4e9c7512-84dc-4dfb-9fa9-e15d51178e
 
 + Org: =[[denote:IDENTIFIER][TITLE]]=
 + Markdown: =[TITLE](denote:IDENTIFIER)=
-+ Plain text: =[[IDENTIFIER] [TITLE]]=
++ Plain text: =[[TITLE] [IDENTIFIER]]=
 
 The special specifier =denote:= is experimental.  The idea is to reserve
 for possible integration with Org/Markdown, though we might switch to
diff --git a/denote-link.el b/denote-link.el
index 4059556053..f2edb75e4b 100644
--- a/denote-link.el
+++ b/denote-link.el
@@ -68,7 +68,7 @@
 (defconst denote-link--format-markdown "[%2$s](denote:%1$s)"
   "Format of Markdown link to note.")
 
-(defconst denote-link--format-text "[[%s] [%s]]"
+(defconst denote-link--format-text "[[%$2s] [%$1s]]"
   "Format of plain text link to note.")
 
 (defconst denote-link--regexp-org
@@ -78,7 +78,7 @@
   (concat "\\[.*?]" "(denote:"  "\\(?1:" denote--id-regexp "\\)" ")"))
 
 (defconst denote-link--regexp-text
-  (concat "\\[\\[" "\\(?1:" denote--id-regexp "\\)" "]" "\s?" "\\[.*?]]"))
+  (concat "\\[\\["  ".*?]" "\s?" "\\[" "\\(?1:" denote--id-regexp "\\)" "]]"))
 
 (defun denote-link--file-type-format (file)
   "Return link format based on FILE format."



reply via email to

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