branch: externals/tmr commit 181272e182598e8330f47a90c6313d34da244609 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@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)