aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Abrahamsen2019-07-07 16:25:14 -0700
committerEric Abrahamsen2019-07-08 10:49:14 -0700
commit64d0648f1d433614f423afde0d70f536ef65b660 (patch)
tree799d7a7e995e4668863a1c0ccd6e1abc3c6b49c1
parent4b5847b18295bf41a2c3b8c4e5549a494e5af349 (diff)
downloademacs-64d0648f1d433614f423afde0d70f536ef65b660.tar.gz
emacs-64d0648f1d433614f423afde0d70f536ef65b660.zip
Make sure gnus-group-set-info sets both the hashtable and alist
* lisp/gnus/gnus-group.el (gnus-group-set-info): Apparently this method of updating the group info will only apply to the gnus-newsrc-hashtb, not gnus-newsrc-alist. Do the alist explicitly.
-rw-r--r--lisp/gnus/gnus-group.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index ea695aaa97f..2668e4fb7cd 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -4506,7 +4506,14 @@ and the second element is the address."
4506 (when (and (not (eq (car entry) t)) 4506 (when (and (not (eq (car entry) t))
4507 (gnus-active (gnus-info-group info))) 4507 (gnus-active (gnus-info-group info)))
4508 (setcar entry (length 4508 (setcar entry (length
4509 (gnus-list-of-unread-articles (car info)))))) 4509 (gnus-list-of-unread-articles (car info)))))
4510 ;; The above `setcar' will only affect the hashtable, not
4511 ;; the alist: update the alist separately.
4512 (push info (cdr (setq gnus-newsrc-alist
4513 (remove (assoc-string
4514 (gnus-info-group info)
4515 gnus-newsrc-alist)
4516 gnus-newsrc-alist)))))
4510 (error "No such group: %s" (gnus-info-group info)))))) 4517 (error "No such group: %s" (gnus-info-group info))))))
4511 4518
4512;; Ad-hoc function for inserting data from a different newsrc.eld 4519;; Ad-hoc function for inserting data from a different newsrc.eld