Merge pull request #5232 from samrjack/fix-pdf-blocking-issue
Prevent extra variable from being passed in macro.
This commit is contained in:
commit
7afb09da73
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue