update packages and add valign
This commit is contained in:
@@ -27,6 +27,11 @@
|
||||
(require 'pdf-info)
|
||||
(require 'pdf-util)
|
||||
|
||||
;; Silence native-comp warnings about functions defined elsewhere
|
||||
(declare-function pdf-view-desired-image-size "pdf-view")
|
||||
(declare-function pdf-view-create-page "pdf-view")
|
||||
(declare-function image-mode-window-get "image-mode")
|
||||
|
||||
|
||||
;; * ================================================================== *
|
||||
;; * Customiazations
|
||||
@@ -451,10 +456,7 @@ WINDOW and IMAGE-WIDTH decide the page and scale of the final image."
|
||||
(image-size (pdf-view-create-page page))
|
||||
(pdf-util-debug
|
||||
(message "Prefetched page %s." page))
|
||||
;; Avoid max-lisp-eval-depth
|
||||
(run-with-timer
|
||||
0.001 nil
|
||||
#'pdf-cache--prefetch-pages window image-width)))))))
|
||||
(pdf-cache--prefetch-pages window image-width)))))))
|
||||
(condition-case err
|
||||
(pdf-info-renderpage page image-width)
|
||||
(error
|
||||
|
||||
Reference in New Issue
Block a user