diff options
| author | Andreas Politz <politza@hochschule-trier.de> | 2018-04-26 15:18:14 +0200 |
|---|---|---|
| committer | Andreas Politz <politza@hochschule-trier.de> | 2018-04-26 15:18:14 +0200 |
| commit | 086fa62bbfc6e4b3353e6f149e360e02edac57ed (patch) | |
| tree | cff4a170647cf3d3e353d4c3c29cc322a9374d78 /lisp | |
| parent | e523593fb52ca41f0306b2ac262778458b8bce3c (diff) | |
Decrypt documents earlier to avoid a race-conditionfix/332
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/pdf-view.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/pdf-view.el b/lisp/pdf-view.el index 4a83abf..6b97311 100644 --- a/lisp/pdf-view.el +++ b/lisp/pdf-view.el @@ -331,6 +331,9 @@ PNG images in Emacs buffers." "-")))) (write-region nil nil tempfile nil 'no-message) (setq-local pdf-view--buffer-file-name tempfile))) + ;; Decryption needs to be done before any other function calls into + ;; pdf-info.el . + (pdf-view-decrypt-document) ;; Setup scroll functions (if (boundp 'mwheel-scroll-up-function) ; not --without-x build @@ -385,9 +388,6 @@ PNG images in Emacs buffers." 'pdf-view-new-window-function nil t) (image-mode-setup-winprops) - ;; Decryption needs to be done before any other function calls into - ;; pdf-info.el . - (pdf-view-decrypt-document) ;; Issue a warning in the future about incompatible modes. (run-with-timer 1 nil #'pdf-view-check-incompatible-modes (current-buffer)) |
