From fcb2612d3a8a10869a9e109660f76b30f0c18e26 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 16 Apr 2020 12:59:40 -0400 Subject: [PATCH] Fix wrong-number-of-arguments error when opening org links --- modules/lang/org/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 6cd1f667e..ebeacd7c6 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -826,7 +826,7 @@ compelling reason, so..." (add-hook! 'org-open-link-functions (defun +org-open-old-pdf-links-fn (path) (let ((regexp "^pdf\\(?:tools\\|view\\):")) - (when (string-match-p regexp) + (when (string-match-p regexp path) (org-link-open (replace-regexp-in-string regexp "pdf:" link)) t))))