Merge pull request #5232 from samrjack/fix-pdf-blocking-issue

Prevent extra variable from being passed in macro.
This commit is contained in:
Henrik Lissner 2021-07-04 19:18:15 -04:00 committed by GitHub
commit 7afb09da73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,9 @@
(defadvice! +pdf-suppress-large-file-prompts-a (orig-fn size op-type filename &optional offer-raw) (defadvice! +pdf-suppress-large-file-prompts-a (orig-fn size op-type filename &optional offer-raw)
:around #'abort-if-file-too-large :around #'abort-if-file-too-large
(unless (string-match-p "\\.pdf\\'" filename) (unless (string-match-p "\\.pdf\\'" filename)
(funcall orig-fn size op-type filename offer-raw)))) (if offer-raw
(funcall orig-fn size op-type filename offer-raw)
(funcall orig-fn size op-type filename)))))
(use-package! saveplace-pdf-view (use-package! saveplace-pdf-view