aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2021-09-21 07:16:37 +0200
committerLars Ingebrigtsen2021-09-21 07:16:37 +0200
commitf4813b23f26b3d3af2c098ae55091e7f7cd763cd (patch)
tree3265aa09789ea3146e3a7eaaaba2b7ef474f909d
parent8c4cb2fe069ff1bc1ab8b2166e2d6dbafe96048c (diff)
downloademacs-f4813b23f26b3d3af2c098ae55091e7f7cd763cd.tar.gz
emacs-f4813b23f26b3d3af2c098ae55091e7f7cd763cd.zip
Inhibit warning in mm-inline-wash-with-file from previous change
* lisp/gnus/mm-view.el (mm-inline-wash-with-file): Inhibit warning about previous lexical fixup.
-rw-r--r--lisp/gnus/mm-view.el21
1 files changed, 11 insertions, 10 deletions
diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el
index 09660cd8b03..129295474f7 100644
--- a/lisp/gnus/mm-view.el
+++ b/lisp/gnus/mm-view.el
@@ -271,16 +271,17 @@ This is only used if `mm-inline-large-images' is set to
271 (delete-region (match-beginning 0) (match-end 0)))) 271 (delete-region (match-beginning 0) (match-end 0))))
272 272
273(defun mm-inline-wash-with-file (post-func cmd &rest args) 273(defun mm-inline-wash-with-file (post-func cmd &rest args)
274 (dlet ((file (make-temp-file 274 (with-suppressed-warnings ((lexical file))
275 (expand-file-name "mm" mm-tmp-directory)))) 275 (dlet ((file (make-temp-file
276 (let ((coding-system-for-write 'binary)) 276 (expand-file-name "mm" mm-tmp-directory))))
277 (write-region (point-min) (point-max) file nil 'silent)) 277 (let ((coding-system-for-write 'binary))
278 (delete-region (point-min) (point-max)) 278 (write-region (point-min) (point-max) file nil 'silent))
279 (unwind-protect 279 (delete-region (point-min) (point-max))
280 (apply #'call-process cmd nil t nil 280 (unwind-protect
281 (mapcar (lambda (e) (eval e t)) args)) 281 (apply #'call-process cmd nil t nil
282 (delete-file file)) 282 (mapcar (lambda (e) (eval e t)) args))
283 (and post-func (funcall post-func)))) 283 (delete-file file))
284 (and post-func (funcall post-func)))))
284 285
285(defun mm-inline-wash-with-stdin (post-func cmd &rest args) 286(defun mm-inline-wash-with-stdin (post-func cmd &rest args)
286 (let ((coding-system-for-write 'binary)) 287 (let ((coding-system-for-write 'binary))