summaryrefslogtreecommitdiff
path: root/lisp/gnus/nnspool.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/gnus/nnspool.el')
-rw-r--r--lisp/gnus/nnspool.el19
1 files changed, 8 insertions, 11 deletions
diff --git a/lisp/gnus/nnspool.el b/lisp/gnus/nnspool.el
index 4e2280f0eef..da39914f5d4 100644
--- a/lisp/gnus/nnspool.el
+++ b/lisp/gnus/nnspool.el
@@ -1,8 +1,8 @@
;;; nnspool.el --- spool access for GNU Emacs
-;; Copyright (C) 1988,89,90,93,94,95,96,97 Free Software Foundation, Inc.
+;; Copyright (C) 1988,89,90,93,94,95,96,97,98 Free Software Foundation, Inc.
;; Author: Masanobu UMEDA <umerin@flab.flab.fujitsu.junet>
-;; Lars Magne Ingebrigtsen <larsi@ifi.uio.no>
+;; Lars Magne Ingebrigtsen <larsi@gnus.org>
;; Keywords: news
;; This file is part of GNU Emacs.
@@ -82,6 +82,9 @@ there.")
(defvoo nnspool-rejected-article-hook nil
"*A hook that will be run when an article has been rejected by the server.")
+(defvoo nnspool-file-coding-system nnheader-file-coding-system
+ "Coding system for nnspool.")
+
;; 1997/8/14 by MORIOKA Tomohiko
(defvoo nnspool-file-coding-system nnheader-file-coding-system
"Coding system for nnspool.")
@@ -113,8 +116,6 @@ there.")
(default-directory nnspool-current-directory)
(do-message (and (numberp nnspool-large-newsgroup)
(> number nnspool-large-newsgroup)))
- ;; 1997/8/14 by MORIOKA Tomohiko
- ;; for Win32
(nnheader-file-coding-system nnspool-file-coding-system)
file beg article ag)
(if (and (numberp (car articles))
@@ -147,11 +148,11 @@ there.")
(and do-message
(zerop (% (incf count) 20))
- (message "nnspool: Receiving headers... %d%%"
+ (nnheader-message 5 "nnspool: Receiving headers... %d%%"
(/ (* count 100) number))))
(when do-message
- (message "nnspool: Receiving headers...done"))
+ (nnheader-message 5 "nnspool: Receiving headers...done"))
;; Fold continuation lines.
(nnheader-fold-continuation-lines)
@@ -346,7 +347,7 @@ there.")
(while (re-search-forward "[ \t\n]+" nil t)
(replace-match " " t t))
(nnheader-report 'nnspool "%s" (buffer-string))
- (message "nnspool: %s" nnspool-status-string)
+ (nnheader-message 5 "nnspool: %s" nnspool-status-string)
(ding)
(run-hooks 'nnspool-rejected-article-hook))))
@@ -356,8 +357,6 @@ there.")
(let ((nov (nnheader-group-pathname
nnspool-current-group nnspool-nov-directory ".overview"))
(arts articles)
- ;; 1997/8/14 by MORIOKA Tomohiko
- ;; for Win32
(nnheader-file-coding-system nnspool-file-coding-system)
last)
(if (not (file-exists-p nov))
@@ -440,8 +439,6 @@ there.")
(set-buffer nntp-server-buffer)
(erase-buffer)
(condition-case ()
- ;; 1997/8/14 by MORIOKA Tomohiko
- ;; for Win32
(let ((nnheader-file-coding-system nnspool-file-coding-system))
(nnheader-insert-file-contents file)
t)