Function: nnmail-write-region

nnmail-write-region is a byte-compiled function defined in nnmail.el.gz.

Signature

(nnmail-write-region START END FILENAME &optional APPEND VISIT LOCKNAME MUSTBENEW)

Documentation

Do a write-region, and then set the file modes.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/nnmail.el.gz
(defun nnmail-write-region (start end filename
				  &optional append visit lockname mustbenew)
  "Do a `write-region', and then set the file modes."
  (let ((coding-system-for-write nnmail-file-coding-system)
	(file-name-coding-system nnmail-pathname-coding-system))
    (write-region start end filename append visit lockname mustbenew)
    (set-file-modes filename nnmail-default-file-modes
		    (when (eq mustbenew 'excl) 'nofollow))))