[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/tmr 181272e182 2/2: tmr: produce user-error when tmr--t
From: |
ELPA Syncer |
Subject: |
[elpa] externals/tmr 181272e182 2/2: tmr: produce user-error when tmr--timers is nil |
Date: |
Mon, 16 May 2022 03:58:09 -0400 (EDT) |
branch: externals/tmr
commit 181272e182598e8330f47a90c6313d34da244609
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
tmr: produce user-error when tmr--timers is nil
---
tmr.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tmr.el b/tmr.el
index f0a296f250..ccb9edf5af 100644
--- a/tmr.el
+++ b/tmr.el
@@ -235,6 +235,8 @@ If optional DESCRIPTION is provided use it to format the
completion candidates."
(let ((timers (if active (tmr--active-timers) tmr--timers)))
(cond
+ ((null timers)
+ (user-error "No timers available"))
((= (length timers) 1)
(car timers))
((> (length timers) 1)