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

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

[elpa] externals/denote 9c94871114 1/3: fix broken link when exporting a


From: ELPA Syncer
Subject: [elpa] externals/denote 9c94871114 1/3: fix broken link when exporting and linking from outside directory
Date: Sat, 10 Dec 2022 09:57:32 -0500 (EST)

branch: externals/denote
commit 9c948711142669dee611ef18f742cb31acbde117
Author: Thibaut Benjamin <thibaut.benjamin@gmail.com>
Commit: Thibaut Benjamin <thibaut.benjamin@gmail.com>

    fix broken link when exporting and linking from outside directory
---
 denote.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index 076e73160f..ffe9ace939 100644
--- a/denote.el
+++ b/denote.el
@@ -3078,7 +3078,7 @@ interface by first selecting the `denote:' hyperlink 
type."
 The LINK, DESCRIPTION, and FORMAT are handled by the export
 backend."
   (let* ((path-id (denote-link--ol-resolve-link-to-target link :path-id))
-         (path (file-name-nondirectory (car path-id)))
+         (path (file-relative-name (car path-id)))
          (p (file-name-sans-extension path))
          (id (cdr path-id))
          (desc (or description (concat "denote:" id))))



reply via email to

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