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

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

[elpa] externals/denote 929157d424 089/355: Stop using link abbreviation


From: ELPA Syncer
Subject: [elpa] externals/denote 929157d424 089/355: Stop using link abbreviation
Date: Sun, 26 Jun 2022 23:58:03 -0400 (EDT)

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

    Stop using link abbreviation
    
    Links will now always be relative to the current directory and use the
    standard "file:" prefix.
    
    This means that other packages, like org-transclusion, will work with
    our notes without further tweaks.
---
 denote-link.el | 6 +++---
 denote.el      | 1 -
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/denote-link.el b/denote-link.el
index a2dacded44..24b2dff1a0 100644
--- a/denote-link.el
+++ b/denote-link.el
@@ -62,13 +62,13 @@ Both are supplied by `denote-link'."
 (defconst denote-link--identifier-regexp 
"^\\(#\\+identifier:\\)[\s\t]+\\(.*\\)"
   "Regular expression for filename key and value.")
 
-(defconst denote-link--link-format "[[denote:%s][%s (%s)]]"
+(defconst denote-link--link-format "[[file:%s][%s (%s)]]"
   "Format of Org link to note.")
 
-(defconst denote-link--backlink-format "[[denote:%s][backlink: %s (%s)]]"
+(defconst denote-link--backlink-format "[[file:%s][backlink: %s (%s)]]"
   "Format of Org backlink to note.")
 
-(defconst denote-link--backlink-regexp "\\[\\[denote:\\(.*?\\)\\]\\[backlink: 
\\(.*?\\) (\\(.*?\\))\\]\\]"
+(defconst denote-link--backlink-regexp "\\[\\[file:\\(.*?\\)\\]\\[backlink: 
\\(.*?\\) (\\(.*?\\))\\]\\]"
   "Regexp of `denote-link--backlink-format'.")
 
 (defun denote-link--retrieve-value (note regexp)
diff --git a/denote.el b/denote.el
index aed34ed8d5..639715639b 100644
--- a/denote.el
+++ b/denote.el
@@ -300,7 +300,6 @@ TITLE, DATE, KEYWORDS, FILENAME, ID are all strings which 
are
             "#+identifier: " id        "\n"
             "#+filename:   " (string-remove-prefix denote-directory filename)  
"\n"
             "#+path:       " filename  "\n"
-            "#+link:       " "denote " (denote-directory) "%s"
             "\n\n")))
 
 (defun denote--path (title keywords)



reply via email to

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