(gnus-registry-delete-group): small bug leaves
authorTeodor Zlatanov <tzz@lifelogs.com>
Fri, 11 Feb 2005 18:09:26 +0000 (18:09 +0000)
committerTeodor Zlatanov <tzz@lifelogs.com>
Fri, 11 Feb 2005 18:09:26 +0000 (18:09 +0000)
an ID in the registry even if it has no groups

lisp/ChangeLog
lisp/gnus-registry.el

index 81bfca7..3677c71 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 401358d..dc6a35f 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."