From b5434e3e3535f29af9a09d8079c11e6114825fbc Mon Sep 17 00:00:00 2001 From: Reiner Steib Date: Mon, 13 Feb 2006 13:32:28 +0000 Subject: [PATCH] 2006-02-13 Andreas Seltenreich * nnweb.el (nnweb-google-wash-article): Update regexps. (nnweb-group-alist): Use defvoo instead of defvar. --- lisp/ChangeLog | 5 +++++ lisp/nnweb.el | 16 ++++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 901a22cba..4a7930490 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2006-02-13 Andreas Seltenreich + + * nnweb.el (nnweb-google-wash-article): Update regexps. + (nnweb-group-alist): Use defvoo instead of defvar. + 2006-02-13 Katsumi Yamaoka * nnoo.el (nnoo-declare): Don't generate duplicate entries when diff --git a/lisp/nnweb.el b/lisp/nnweb.el index 15583f13c..2f0cde27f 100644 --- a/lisp/nnweb.el +++ b/lisp/nnweb.el @@ -99,7 +99,7 @@ Valid types include `google', `dejanews', and `gmane'.") (defvoo nnweb-articles nil) (defvoo nnweb-buffer nil) -(defvar nnweb-group-alist nil) +(defvoo nnweb-group-alist nil) (defvoo nnweb-group nil) (defvoo nnweb-hashtb nil) @@ -309,22 +309,26 @@ Valid types include `google', `dejanews', and `gmane'.") (defun nnweb-google-wash-article () ;; We have Google's masked e-mail addresses here. :-/ - (let ((case-fold-search t)) + (let ((case-fold-search t) + (start-re "
\n *")
+	(end-re "\n *
")) (goto-char (point-min)) (if (save-excursion (or (re-search-forward "The requested message.*could not be found." nil t) - (not (and (re-search-forward "^
" nil t)
-			(re-search-forward "^
" nil t))))) + (not (and (re-search-forward start-re nil t) + (re-search-forward end-re nil t))))) ;; FIXME: Don't know how to indicate "not found". ;; Should this function throw an error? --rsteib (progn (gnus-message 3 "Requested article not found") (erase-buffer)) (delete-region (point-min) - (1+ (re-search-forward "^
" nil t)))
+		     (re-search-forward start-re))
       (goto-char (point-min))
-      (delete-region (- (re-search-forward "^
" nil t) (length "")) + (delete-region (progn + (re-search-forward end-re) + (match-beginning 0)) (point-max)) (mm-url-decode-entities)))) -- 2.25.1