summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2026-09-11 14:52:19 +0100
committerjao <jao@gnu.org>2026-09-11 14:52:19 +0100
commit249f42208bff568bd0ad4592e08f36911a772b6a (patch)
tree851057df842129ce695bb3eb7762f74c49930f91 /lib
parent66781257204b21e27b9f652014e236941a1f6eb6 (diff)
downloadelibs-249f42208bff568bd0ad4592e08f36911a772b6a.tar.gz
elibs-249f42208bff568bd0ad4592e08f36911a772b6a.tar.bz2
nit: more dynamic jao-org-dir
Diffstat (limited to 'lib')
-rw-r--r--lib/doc/jao-pdf.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/doc/jao-pdf.el b/lib/doc/jao-pdf.el
index 73b4a6a..01334b1 100644
--- a/lib/doc/jao-pdf.el
+++ b/lib/doc/jao-pdf.el
@@ -34,6 +34,8 @@
(declare-function 'pdf-info-outline "pdf-info")
(defvar jao-pdf-org-dir nil)
+(defun jao-pdf-org-dir () jao-pdf-org-dir)
+
(defvar-local jao-pdf--outline nil)
(defun jao-pdf-is-pdf-file (file)
@@ -105,7 +107,7 @@
(interactive)
(when-let* ((file (or file
(read-file-name "Document: "
- (concat jao-pdf-org-dir "/doc/")))))
+ (concat (jao-pdf-org-dir) "/doc/")))))
(funcall jao-open-doc-fun file page height)))
;;; doc:// links for browse-url