[Top][All Lists]

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

[elpa] externals/denote 3d606cbe95 272/355: Simplify completion via 'org

From: ELPA Syncer
Subject: [elpa] externals/denote 3d606cbe95 272/355: Simplify completion via 'org-insert-link'
Date: Sun, 26 Jun 2022 23:58:32 -0400 (EDT)

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

    Simplify completion via 'org-insert-link'
    The 'M-x denote-link' is probably better to learn as it works in all
    file types, but we still want to support standard Org facilities.
 denote-link.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/denote-link.el b/denote-link.el
index 2bb9fd0e10..6ae1d48bc8 100644
--- a/denote-link.el
+++ b/denote-link.el
@@ -357,10 +357,9 @@ file."
   "Like `denote-link' but for Org integration.
 This lets the user complete a link through the `org-insert-link'
 interface by first selecting the `denote:' hyperlink type."
-  (insert
-   (denote-link--format-link
-    (denote-retrieve--read-file-prompt)
-    (denote-link--file-type-format (buffer-file-name)))))
+  (concat
+   "denote:"
+   (denote-retrieve--filename-identifier (denote-retrieve--read-file-prompt))))
 (defun denote-link-ol-export (link description format)
   "Export a `denote:' link from Org files.

reply via email to

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