diff lisp/gnus/nnfolder.el @ 28:1917ad0d78d7 r19-15b97

Import from CVS: tag r19-15b97
author cvs
date Mon, 13 Aug 2007 08:51:55 +0200
parents 441bb1e64a06
children ec9a17fef872
line wrap: on
line diff
--- a/lisp/gnus/nnfolder.el	Mon Aug 13 08:51:34 2007 +0200
+++ b/lisp/gnus/nnfolder.el	Mon Aug 13 08:51:55 2007 +0200
@@ -601,20 +601,16 @@
     (nnmail-activate 'nnfolder)))
 
 (defun nnfolder-active-number (group)
-  (when group
-    (save-excursion 
-      ;; Find the next article number in GROUP.
-      (prog1
-	  (let ((active (cadr (assoc group nnfolder-group-alist))))
-	    (if active
-		(setcdr active (1+ (cdr active)))
-	      ;; This group is new, so we create a new entry for it.
-	      ;; This might be a bit naughty... creating groups on the drop of
-	      ;; a hat, but I don't know...
-	      (push (list group (setq active (cons 1 1)))
-		    nnfolder-group-alist))
-	    (cdr active))
-	(nnfolder-possibly-activate-groups group)))))
+  ;; Find the next article number in GROUP.
+  (let ((active (cadr (assoc group nnfolder-group-alist))))
+    (if active
+	(setcdr active (1+ (cdr active)))
+      ;; This group is new, so we create a new entry for it.
+      ;; This might be a bit naughty... creating groups on the drop of
+      ;; a hat, but I don't know...
+      (push (list group (setq active (cons 1 1)))
+	    nnfolder-group-alist))
+    (cdr active)))
 
 
 ;; This method has a problem if you've accidentally let the active list get