aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa1997-08-28 04:51:02 +0000
committerKenichi Handa1997-08-28 04:51:02 +0000
commit3a787ab0c3a10f9c651b97e48dea8d62da7e7665 (patch)
treec28e42d2d2aa3eae50b239a82f9b6e9122c2e181
parentfc46309dc8617616fab1e9a6dd570a13400e17af (diff)
downloademacs-3a787ab0c3a10f9c651b97e48dea8d62da7e7665.tar.gz
emacs-3a787ab0c3a10f9c651b97e48dea8d62da7e7665.zip
(nnspool-file-coding-system): New variable.
(nnspool-retrieve-headers, nnspool-retrieve-headers-with-nov, nnspool-find-file): Override `nnheader-file-coding-system' by `nnspool-file-coding-system' for gnspool on Windows 95/NT.
-rw-r--r--lisp/gnus/nnspool.el16
1 files changed, 15 insertions, 1 deletions
diff --git a/lisp/gnus/nnspool.el b/lisp/gnus/nnspool.el
index 8d45210fcc9..4e2280f0eef 100644
--- a/lisp/gnus/nnspool.el
+++ b/lisp/gnus/nnspool.el
@@ -82,6 +82,10 @@ there.")
82(defvoo nnspool-rejected-article-hook nil 82(defvoo nnspool-rejected-article-hook nil
83 "*A hook that will be run when an article has been rejected by the server.") 83 "*A hook that will be run when an article has been rejected by the server.")
84 84
85;; 1997/8/14 by MORIOKA Tomohiko
86(defvoo nnspool-file-coding-system nnheader-file-coding-system
87 "Coding system for nnspool.")
88
85 89
86 90
87(defconst nnspool-version "nnspool 2.0" 91(defconst nnspool-version "nnspool 2.0"
@@ -109,6 +113,9 @@ there.")
109 (default-directory nnspool-current-directory) 113 (default-directory nnspool-current-directory)
110 (do-message (and (numberp nnspool-large-newsgroup) 114 (do-message (and (numberp nnspool-large-newsgroup)
111 (> number nnspool-large-newsgroup))) 115 (> number nnspool-large-newsgroup)))
116 ;; 1997/8/14 by MORIOKA Tomohiko
117 ;; for Win32
118 (nnheader-file-coding-system nnspool-file-coding-system)
112 file beg article ag) 119 file beg article ag)
113 (if (and (numberp (car articles)) 120 (if (and (numberp (car articles))
114 (nnspool-retrieve-headers-with-nov articles fetch-old)) 121 (nnspool-retrieve-headers-with-nov articles fetch-old))
@@ -349,6 +356,9 @@ there.")
349 (let ((nov (nnheader-group-pathname 356 (let ((nov (nnheader-group-pathname
350 nnspool-current-group nnspool-nov-directory ".overview")) 357 nnspool-current-group nnspool-nov-directory ".overview"))
351 (arts articles) 358 (arts articles)
359 ;; 1997/8/14 by MORIOKA Tomohiko
360 ;; for Win32
361 (nnheader-file-coding-system nnspool-file-coding-system)
352 last) 362 last)
353 (if (not (file-exists-p nov)) 363 (if (not (file-exists-p nov))
354 () 364 ()
@@ -430,7 +440,11 @@ there.")
430 (set-buffer nntp-server-buffer) 440 (set-buffer nntp-server-buffer)
431 (erase-buffer) 441 (erase-buffer)
432 (condition-case () 442 (condition-case ()
433 (progn (nnheader-insert-file-contents file) t) 443 ;; 1997/8/14 by MORIOKA Tomohiko
444 ;; for Win32
445 (let ((nnheader-file-coding-system nnspool-file-coding-system))
446 (nnheader-insert-file-contents file)
447 t)
434 (file-error nil))) 448 (file-error nil)))
435 449
436(defun nnspool-possibly-change-directory (group) 450(defun nnspool-possibly-change-directory (group)