+1998-08-25 Tatsuya Ichikawa <t-ichi@po.shiojiri.ne.jp>
+
+ * lisp/gnus-cache.el (gnus-cache-possibly-enter-article):
+ (gnus-cache-save-buffers): Write file in raw-text
+ coding system.
+ * lisp/gnus-cache.el (gnus-cache-write-file-coding-system): New variable.
+ * lisp/gnus-util.el (gnus-write-buffer): Undo change.
+
+ * lisp/gnus-util.el (gnus-write-file-coding-system): Delete variable.
+
1998-08-24 Tatsuya Ichikawa <t-ichi@po.shiojiri.ne.jp>
* lisp/gnus-offline.el (gnus-offline-setup): Bug fix and version
(defvar gnus-cache-buffer nil)
(defvar gnus-cache-active-hashtb nil)
(defvar gnus-cache-active-altered nil)
+(defvar gnus-cache-write-file-coding-system 'raw-text)
(eval-and-compile
(autoload 'nnml-generate-nov-databases-1 "nnml")
(set-buffer buffer)
(if (> (buffer-size) 0)
;; Non-empty overview, write it to a file.
- (gnus-write-buffer overview-file)
+ (let ((coding-system-for-write gnus-cache-write-file-coding-system))
+ (gnus-write-buffer overview-file))
;; Empty overview file, remove it
(when (file-exists-p overview-file)
(delete-file overview-file))
(let ((gnus-use-cache nil))
(gnus-request-article-this-buffer number group))
(when (> (buffer-size) 0)
- (gnus-write-buffer file)
+ (let ((coding-system-for-write gnus-cache-write-file-coding-system))
+ (gnus-write-buffer file))
(gnus-cache-change-buffer group)
(set-buffer (cdr gnus-cache-buffer))
(goto-char (point-max))
(defvar gnus-work-buffer " *gnus work*")
-(defvar gnus-write-file-coding-system 'raw-text)
-
(defun gnus-set-work-buffer ()
"Put point in the empty Gnus work buffer."
(if (get-buffer gnus-work-buffer)
;; Make sure the directory exists.
(gnus-make-directory (file-name-directory file))
;; Write the buffer.
- (let ((coding-system-for-write gnus-write-file-coding-system))
- (write-region (point-min) (point-max) file nil 'quietly)))
+ (write-region (point-min) (point-max) file nil 'quietly))
(defun gnus-delete-file (file)
"Delete FILE if it exists."