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.
This commit is contained in:
parent
8c4cb2fe06
commit
f4813b23f2
1 changed files with 11 additions and 10 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue