+2004-04-06 Jesper Harder <harder@ifa.au.dk>
+
+ * gnus-cache.el (gnus-cache-save-buffers): Check if buffer is
+ alive. Reported by Laurent Martelli <laurent@aopsys.com>.
+
2004-04-03 Jesper Harder <harder@ifa.au.dk>
* gnus.el (gnus-getenv-nntpserver): Strip whitespace.
(overview-file (gnus-cache-file-name
(car gnus-cache-buffer) ".overview")))
;; write the overview only if it was modified
- (when (buffer-modified-p buffer)
- (save-excursion
- (set-buffer buffer)
+ (when (and (buffer-live-p buffer) (buffer-modified-p buffer))
+ (with-current-buffer buffer
(if (> (buffer-size) 0)
;; Non-empty overview, write it to a file.
(gnus-write-buffer-as-coding-system