From b82068cdcc45bd37a4ff362773f19ca840ec697f Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 17 Apr 2020 22:45:16 -0400 Subject: [PATCH] +org-open-old-pdf-links-fn -> +org-open-legacy-pdf-links-fn Clearer name and added a docstring to explain its purpose. --- modules/lang/org/config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 5ad534940..15aa2c126 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -819,7 +819,8 @@ compelling reason, so..." :store #'org-pdftools-store-link :export #'org-pdftools-export) (add-hook! 'org-open-link-functions - (defun +org-open-old-pdf-links-fn (link) + (defun +org-open-legacy-pdf-links-fn (link) + "Open pdftools:* and pdfviews:* links as if they were pdf:* links." (let ((regexp "^pdf\\(?:tools\\|view\\):")) (when (string-match-p regexp link) (org-pdftools-open (replace-regexp-in-string regexp "" link))