branch: elpa/dirvish commit e7faf3916c5e74fef450ca4b338df03dabf34cda Author: Alex Lu <hellosimon1...@hotmail.com> Commit: Alex Lu <hellosimon1...@hotmail.com>
chore: fix free var `pdf-info-epdfinfo-program` --- dirvish-widgets.el | 1 + 1 file changed, 1 insertion(+) diff --git a/dirvish-widgets.el b/dirvish-widgets.el index 1470f7ca27..e92c3c8a56 100644 --- a/dirvish-widgets.el +++ b/dirvish-widgets.el @@ -617,6 +617,7 @@ Require: `epub-thumbnailer' (executable)" Require: `pdf-tools' (Emacs package)" (when (equal ext "pdf") (if (and (require 'pdf-tools nil t) + (bound-and-true-p pdf-info-epdfinfo-program) (file-exists-p pdf-info-epdfinfo-program)) (dirvish--find-file-temporarily file) '(info . "`epdfinfo' program required to preview pdfs; run `M-x pdf-tools-install'"))))