Fix void-variable link when opening legacy pdf links
This commit is contained in:
parent
002b86b559
commit
3efef6e38f
1 changed files with 2 additions and 2 deletions
|
@ -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))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue