mirror of
https://github.com/vale981/doom-modeline
synced 2025-03-04 17:01:39 -05:00
gnus: use eval with gnus-group-unread instead of coding the macro here.
I think this is more compatible.
This commit is contained in:
parent
2b30885767
commit
285d44f267
1 changed files with 1 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue