branch: externals/denote commit ce791f5e429fdd89e36ae4af02bbb381f470bd90 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@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....@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)))