(,buffer (make-string ,size 0))
(,leng 0)
(append nil)
- (standard-output (lambda (c)
- (aset ,buffer ,leng c)
- (if (= ,size (setq ,leng (1+ ,leng)))
- (progn (write-region ,buffer nil ,file append 'no-msg)
- (setq ,leng 0
- append t))))))
+ (standard-output
+ (lambda (c)
+ (aset ,buffer ,leng c)
+ (if (= ,size (setq ,leng (1+ ,leng)))
+ (progn (write-region ,buffer nil ,file append 'no-msg)
+ (setq ,leng 0
+ append t))))))
,@body
- (if (> ,leng 0)
- (write-region (substring ,buffer 0 ,leng) nil ,file append 'no-msg)))))
+ (when (> ,leng 0)
+ (write-region (substring ,buffer 0 ,leng) nil ,file
+ append 'no-msg)))))
(put 'gnus-with-output-to-file 'lisp-indent-function 1)
(put 'gnus-with-output-to-file 'edebug-form-spec '(form body))