+2002-10-19 TSUCHIYA Masatoshi <tsuchiya@namazu.org>
+
+ * nnheader.el (nnheader-remove-body): Fix an error of detecting
+ boundary between headers and body.
+ * nnml.el (nnml-parse-head): Ditto.
+
+2002-10-20 Lars Magne Ingebrigtsen <larsi@gnus.org>
+
+ * nnslashdot.el (nnslashdot-generate-active): Ignore any bogus
+ entries.
+
+ * gnus-group.el (gnus-fetch-group): Allow an optional
+ specification of the articles to select.
+
+ * gnus-srvr.el (gnus-server-prepare): Removed superfluous cdr.
+
+2002-10-20 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+
+ * gnus-agent.el (gnus-agent-fetch-group-1): After fetching
+ headers from the group, update variable `articles' to contain
+ only those numbers where headers exist. (When fetching all
+ articles in a group, Gnus creates lots of numbers where there is
+ no articles.)
+
2002-10-20 Steve Youngs <youngs@xemacs.org>
* pgg-parse.el (pgg-parse-public-key-algorithm-alist): XEmacs
2002-10-18 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
- * gnus-spec.el (gnus-make-format-preserve-properties)
+ * gnus-spec.el (gnus-make-format-preserve-properties)
(gnus-xmas-format, gnus-parse-simple-format): Preserve text
properties also on XEmacs. `gnus-xmas-format' is like format but
preserves text properties on XEmacs (though it only understands
(spam-display-buffer-contents): Remove.
(spam-bogofilter-score): Merge spam-display-buffer-contents.
-2002-10-17 Ted Zlatanov <tzz@lifelogs.com>
+2002-10-17 Ted Zlatanov <tzz@lifelogs.com>
* spam.el (spam-display-buffer-contents): New function.
(spam-bogofilter-score): use spam-display-buffer-contents, patch
(setq gnus-newsgroup-headers
(gnus-get-newsgroup-headers-xover articles nil nil
group))
+ ;; Some articles may not exist, so update `articles'
+ ;; from what was actually found. -- kai
+ (setq articles
+ (mapcar (lambda (x) (aref x 0))
+ gnus-newsgroup-headers))
;; `gnus-agent-overview-buffer' may be killed for
;; timeout reason. If so, recreate it.
(gnus-agent-create-buffer)))
(gnus-group-prefixed-name group method) method)))
;;;###autoload
-(defun gnus-fetch-group (group)
+(defun gnus-fetch-group (group &optional articles)
"Start Gnus if necessary and enter GROUP.
Returns whether the fetching was successful or not."
(interactive (list (gnus-group-completing-read-group-name
"Group name: " gnus-active-hashtb)))
(unless (get-buffer gnus-group-buffer)
(gnus-no-server))
- (gnus-group-read-group nil nil group))
+ (gnus-group-read-group articles nil group))
;;;###autoload
(defun gnus-fetch-group-other-frame (group)
(while alist
(unless (member (cdar alist) done)
(push (cdar alist) done)
- (cdr (setq server (pop alist)))
+ (setq server (pop alist))
(when (and server (car server) (cdr server))
(gnus-server-insert-server-line (car server) (cdr server))))
(when (member (cdar alist) done)
(defun nnheader-remove-body ()
"Remove the body from an article in this current buffer."
(goto-char (point-min))
- (when (or (search-forward "\n\n" nil t)
- (search-forward "\n\r\n" nil t))
+ (when (re-search-forward "\n\r?\n" nil t)
(delete-region (point) (point-max))))
(defun nnheader-set-temp-buffer (name &optional noerase)
(unless (zerop (buffer-size))
(narrow-to-region
(goto-char (point-min))
- (if (search-forward "\n\n" nil t)
+ (if (re-search-forward "\n\r?\n" nil t)
(1- (point))
- (if (search-forward "\n\r\n" nil t)
- (- (point) 2)
- (point-max)))))
+ (point-max))))
(let ((headers (nnheader-parse-naked-head)))
(mail-header-set-chars headers chars)
(mail-header-set-number headers number)
(set-buffer nntp-server-buffer)
(erase-buffer)
(dolist (elem nnslashdot-groups)
- (insert (prin1-to-string (car elem))
- " " (number-to-string (cadr elem)) " 1 y\n"))))
+ (when (numberp (cadr elem))
+ (insert (prin1-to-string (car elem))
+ " " (number-to-string (cadr elem)) " 1 y\n")))))
(defun nnslashdot-lose (why)
(error "Slashdot HTML has changed; please get a new version of nnslashdot"))