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

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

[elpa] externals/denote ce791f5e42 26/27: Keep filename intact for backl


From: ELPA Syncer
Subject: [elpa] externals/denote ce791f5e42 26/27: Keep filename intact for backlink creation
Date: Sun, 3 Jul 2022 00:57:36 -0400 (EDT)

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

    Keep filename intact for backlink creation
    
    This is to ensure that links to/from subdirectories work as intended.  A
    bug pertaining to the old code was reported by Shreyas Ragavan on the
    mailing list:
    
<https://lists.sr.ht/~protesilaos/denote/%3C8735fk4y1w.fsf%40hallac.net%3E#%3Cm2czeo9n6e.fsf@fastmail.com%3E>.
---
 denote-link.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote-link.el b/denote-link.el
index b1c97959f2..5de8dabc60 100644
--- a/denote-link.el
+++ b/denote-link.el
@@ -468,7 +468,7 @@ option `denote-link-backlinks-display-buffer-action'.  By
 default, it will show up below the current window."
   (interactive)
   (let* ((default-directory (denote-directory))
-         (file (file-name-nondirectory (buffer-file-name)))
+         (file (buffer-file-name))
          (id (denote-retrieve--filename-identifier file))
          (title (denote-retrieve--value-title file)))
     (if-let ((files (denote-retrieve--proces-grep id)))



reply via email to

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