(let* ((gnus-command-method method)
(file (gnus-agent-lib-file "active")))
(gnus-make-directory (file-name-directory file))
- (write-region-as-specified-coding-system
- (point-min) (point-max) file nil 'silent
- gnus-agent-file-coding-system)
+ (write-region-as-coding-system
+ (point-min) (point-max) file gnus-agent-file-coding-system
+ nil 'silent)
(when (file-exists-p (gnus-agent-lib-file "groups"))
(delete-file (gnus-agent-lib-file "groups"))))))
(let* ((gnus-command-method method)
(file (gnus-agent-lib-file "groups")))
(gnus-make-directory (file-name-directory file))
- (write-region-as-specified-coding-system
- (point-min) (point-max) file nil 'silent
- gnus-agent-file-coding-system)
+ (write-region-as-coding-system
+ (point-min) (point-max) file gnus-agent-file-coding-system
+ nil 'silent)
(when (file-exists-p (gnus-agent-lib-file "active"))
(delete-file (gnus-agent-lib-file "active")))))
(save-excursion
(set-buffer gnus-agent-current-history)
(gnus-make-directory (file-name-directory gnus-agent-file-name))
- (write-region-as-specified-coding-system
- (1+ (point-min)) (point-max) gnus-agent-file-name nil 'silent
- gnus-agent-file-coding-system)))
+ (write-region-as-coding-system
+ (1+ (point-min)) (point-max) gnus-agent-file-name
+ gnus-agent-file-coding-system nil 'silent)))
(defun gnus-agent-close-history ()
(when (gnus-buffer-live-p gnus-agent-current-history)
(if (not (re-search-forward "^Message-ID: *<\\([^>\n]+\\)>" nil t))
(setq id "No-Message-ID-in-article")
(setq id (buffer-substring (match-beginning 1) (match-end 1))))
- (write-region-as-specified-coding-system
+ (write-region-as-coding-system
(point-min) (point-max)
- (concat dir (number-to-string (caar pos))) nil 'silent
- gnus-agent-file-coding-system)
+ (concat dir (number-to-string (caar pos)))
+ gnus-agent-file-coding-system nil 'silent)
(when (setq elem (assq (caar pos) gnus-agent-article-alist))
(setcdr elem t))
(gnus-agent-enter-history
(save-excursion
(while gnus-agent-buffer-alist
(set-buffer (cdar gnus-agent-buffer-alist))
- (write-region-as-specified-coding-system
+ (write-region-as-coding-system
(point-min) (point-max)
(gnus-agent-article-name ".overview"
(caar gnus-agent-buffer-alist))
- nil 'silent gnus-agent-file-coding-system)
+ gnus-agent-file-coding-system nil 'silent)
(pop gnus-agent-buffer-alist))
(while gnus-agent-group-alist
(nnheader-temp-write (caar gnus-agent-group-alist)
(gnus-agent-braid-nov group articles file))
(gnus-make-directory (nnheader-translate-file-chars
(file-name-directory file)))
- (write-region-as-specified-coding-system
- (point-min) (point-max) file nil 'silent
- gnus-agent-file-coding-system)
+ (write-region-as-coding-system
+ (point-min) (point-max) file gnus-agent-file-coding-system
+ nil 'silent)
(gnus-agent-save-alist group articles nil)
(gnus-agent-enter-history
"last-header-fetched-for-session"
;; Schedule the history line for nuking.
(push (cdr elem) histories)))
(gnus-make-directory (file-name-directory nov-file))
- (write-region-as-specified-coding-system
- (point-min) (point-max) nov-file nil 'silent
- gnus-agent-file-coding-system)
+ (write-region-as-coding-system
+ (point-min) (point-max) nov-file gnus-agent-file-coding-system
+ nil 'silent)
;; Delete the unwanted entries in the alist.
(setq gnus-agent-article-alist
(sort gnus-agent-article-alist 'car-less-than-car))
(enable-local-variables nil)
(after-insert-file-functions nil)
(find-file-hooks nil))
- (insert-file-contents-as-specified-coding-system
- filename visit beg end replace nnheader-file-coding-system)))
+ (insert-file-contents-as-coding-system
+ filename nnheader-file-coding-system visit beg end replace)))
(defun nnheader-find-file-noselect (&rest args)
(let ((format-alist nil)
(enable-local-variables nil)
(after-insert-file-functions nil)
(find-file-hooks nil))
- (find-file-noselect-as-specified-coding-system
- (car args) (append (cdr args) (list nnheader-file-coding-system)))))
+ (apply 'find-file-noselect-as-coding-system
+ (car args) nnheader-file-coding-system (cdr args))))
(defun nnheader-auto-mode-alist ()
"Return an `auto-mode-alist' with only the .gz (etc) thingies."
(after-insert-file-functions nil))
(condition-case ()
(let ((pathname-coding-system 'binary))
- (insert-file-contents-as-specified-coding-system
+ (insert-file-contents-as-coding-system
file nnmail-file-coding-system)
t)
(file-error nil))))
(defun nnmail-write-region (start end filename &optional append visit lockname)
"Do a `write-region', and then set the file modes."
(let ((pathname-coding-system 'binary))
- (write-region-as-specified-coding-system
- start end filename append visit lockname nnmail-file-coding-system)
+ (write-region-as-coding-system
+ start end filename nnmail-file-coding-system append visit lockname)
(set-file-modes filename nnmail-default-file-modes)))
;;;