Synch to No Gnus 200502111809.
authoryamaoka <yamaoka>
Fri, 11 Feb 2005 23:55:56 +0000 (23:55 +0000)
committeryamaoka <yamaoka>
Fri, 11 Feb 2005 23:55:56 +0000 (23:55 +0000)
lisp/ChangeLog
lisp/gnus-registry.el

index 18ecc46..de5b04c 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-11  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * gnus-registry.el (gnus-registry-delete-group): small bug leaves
+       an ID in the registry even if it has no groups
+
 2005-02-10  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * gnus-art.el (gnus-mime-jka-compr-maybe-uncompress): Remove;
index 736db5d..1daa0fa 100644 (file)
@@ -621,7 +621,9 @@ Returns the first place where the trail finds a group name."
       (when gnus-registry-trim-articles-without-groups
        (unless (gnus-registry-group-count id)
          (gnus-registry-delete-id id)))
-      (gnus-registry-store-extra-entry id 'mtime (current-time)))))
+      ;; is this ID still in the registry?
+      (when (gethash id gnus-registry-hashtb)
+       (gnus-registry-store-extra-entry id 'mtime (current-time))))))
 
 (defun gnus-registry-delete-id (id)
   "Delete a message ID from the registry."