fix for #3266: wrong-type-arg stringp from format (#3599)

Triggered e.g. by pdf-tools-install when tangling literate config on
interactive save and epdfinfo is missing
This commit is contained in:
Hanno Perrey 2020-07-21 04:13:50 +02:00 committed by GitHub
parent 3002d149c5
commit 14d6a19462
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,8 @@ byte-compiled from.")
;; would load all of :lang org (very expensive!). ;; would load all of :lang org (very expensive!).
(and (require 'ob-tangle) (and (require 'ob-tangle)
(letf! (defun message (msg &rest args) (letf! (defun message (msg &rest args)
(print! (info "%s") (apply #'format msg args))) (when msg
(print! (info "%s") (apply #'format msg args))))
(org-babel-tangle-file org dest)) (org-babel-tangle-file org dest))
;; Write the cache file to serve as our mtime cache ;; Write the cache file to serve as our mtime cache
(with-temp-file +literate-config-cache-file)) (with-temp-file +literate-config-cache-file))