X-Git-Url: https://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fgnus-logic.el;h=51b44e6052d49ec86fef81d1100ea48ff42146f7;hb=01880441ddc39f58683c7a05c7cbc40570de9624;hp=c2b0030c03de407ad6b701ff002cb248e0f64a90;hpb=8b5af94e55ef83ee46b42d32d92fa1ce95dcacf5;p=gnus diff --git a/lisp/gnus-logic.el b/lisp/gnus-logic.el index c2b0030c0..51b44e605 100644 --- a/lisp/gnus-logic.el +++ b/lisp/gnus-logic.el @@ -1,7 +1,6 @@ ;;; gnus-logic.el --- advanced scoring code for Gnus -;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +;; Copyright (C) 1996-2011 Free Software Foundation, Inc. ;; Author: Lars Magne Ingebrigtsen ;; Keywords: news @@ -53,8 +52,7 @@ ("body" nil gnus-advanced-body) ("all" nil gnus-advanced-body))) -(eval-and-compile - (autoload 'parse-time-string "parse-time")) +(autoload 'parse-time-string "parse-time") (defun gnus-score-advanced (rule &optional trace) "Apply advanced scoring RULE to all the articles in the current group." @@ -180,8 +178,7 @@ (defun gnus-advanced-body (header match type) (when (string= header "all") (setq header "article")) - (save-excursion - (set-buffer nntp-server-buffer) + (with-current-buffer nntp-server-buffer (let* ((request-func (cond ((string= "head" header) 'gnus-request-head) ((string= "body" header) @@ -226,5 +223,4 @@ (provide 'gnus-logic) -;; arch-tag: 9651a100-4a59-4b69-a55b-e511e67c0f8d ;;; gnus-logic.el ends here