From f0051d8df17d2c074e8e040d0beb88169e2fb755 Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Wed, 25 Oct 2017 14:45:57 +0100 Subject: Prefer built-ins to gnus utility functions Fixes #11 --- gnus-desktop-notify.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnus-desktop-notify.el') diff --git a/gnus-desktop-notify.el b/gnus-desktop-notify.el index 04cc5ec..97e65f3 100644 --- a/gnus-desktop-notify.el +++ b/gnus-desktop-notify.el @@ -205,7 +205,7 @@ the notification of new messages (depending on the value of (defun gnus-desktop-notify--read-count (group) "Return read count for gnus GROUP." (let* ((range (gnus-range-normalize (gnus-info-read group))) - (count (gnus-last-element range))) + (count (car (last range)))) (or (cdr-safe count) count))) (defun gnus-desktop-notify--short-group-name (group) -- cgit v1.2.3