gnus: use eval with gnus-group-unread instead of coding the macro here.

I think this is more compatible.
This commit is contained in:
Vonfry 2020-05-27 23:17:23 +08:00
parent 2b30885767
commit 285d44f267
No known key found for this signature in database
GPG key ID: 7CEA08AE02E6F76F

View file

@ -2148,8 +2148,7 @@ mouse-1: Toggle Debug on Quit"
(let ((total-unread-news-number 0))
(mapc (lambda (g)
(let* ((group (car g))
;; `gnus-group-unread' is a macro
(unread (car (gethash group gnus-newsrc-hashtb))))
(unread (eval `(gnus-group-unread ,group))))
(when (and (not (seq-contains-p doom-modeline-gnus-excluded-groups group))
(numberp unread)
(> unread 0))