]> git.eshelyaron.com Git - emacs.git/commitdiff
Inhibit warning in mm-inline-wash-with-file from previous change
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 21 Sep 2021 05:16:37 +0000 (07:16 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 21 Sep 2021 05:16:37 +0000 (07:16 +0200)
* lisp/gnus/mm-view.el (mm-inline-wash-with-file): Inhibit warning
about previous lexical fixup.

lisp/gnus/mm-view.el

index 09660cd8b0373580cbcc5c873301d29fbb6cd5e7..129295474f76394e8962c052768ad24ea039d4e3 100644 (file)
@@ -271,16 +271,17 @@ This is only used if `mm-inline-large-images' is set to
     (delete-region (match-beginning 0) (match-end 0))))
 
 (defun mm-inline-wash-with-file (post-func cmd &rest args)
-  (dlet ((file (make-temp-file
-               (expand-file-name "mm" mm-tmp-directory))))
-    (let ((coding-system-for-write 'binary))
-      (write-region (point-min) (point-max) file nil 'silent))
-    (delete-region (point-min) (point-max))
-    (unwind-protect
-       (apply #'call-process cmd nil t nil
-               (mapcar (lambda (e) (eval e t)) args))
-      (delete-file file))
-    (and post-func (funcall post-func))))
+  (with-suppressed-warnings ((lexical file))
+    (dlet ((file (make-temp-file
+                 (expand-file-name "mm" mm-tmp-directory))))
+      (let ((coding-system-for-write 'binary))
+        (write-region (point-min) (point-max) file nil 'silent))
+      (delete-region (point-min) (point-max))
+      (unwind-protect
+         (apply #'call-process cmd nil t nil
+                 (mapcar (lambda (e) (eval e t)) args))
+        (delete-file file))
+      (and post-func (funcall post-func)))))
 
 (defun mm-inline-wash-with-stdin (post-func cmd &rest args)
   (let ((coding-system-for-write 'binary))