aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBasil L. Contovounesios <contovob@tcd.ie>2017-10-25 14:45:57 +0100
committerBasil L. Contovounesios <contovob@tcd.ie>2017-10-25 14:50:44 +0100
commitf0051d8df17d2c074e8e040d0beb88169e2fb755 (patch)
treef8aeac87eaebf070330ca456b8442926201adf4a
parent52e5de0961ce0f6890d5e7f26bc05152b99d9979 (diff)
Prefer built-ins to gnus utility functions
Fixes #11
-rw-r--r--gnus-desktop-notify.el2
1 files changed, 1 insertions, 1 deletions
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)