From 3efef6e38f50c79e44f151d6606b68f884f1e100 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 16 Apr 2020 14:51:26 -0400 Subject: [PATCH] Fix void-variable link when opening legacy pdf links --- modules/lang/org/config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index ebeacd7c6..475b74743 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -824,9 +824,9 @@ compelling reason, so..." :export #'org-pdftools-export) (add-hook! 'org-open-link-functions - (defun +org-open-old-pdf-links-fn (path) + (defun +org-open-old-pdf-links-fn (link) (let ((regexp "^pdf\\(?:tools\\|view\\):")) - (when (string-match-p regexp path) + (when (string-match-p regexp link) (org-link-open (replace-regexp-in-string regexp "pdf:" link)) t))))