From 4697c53197ed485789d5bf46d9291d95db0f07aa Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Thu, 2 Oct 2025 16:20:31 +0200 Subject: [PATCH] Fix empty `unless` block Oops. --- site-lisp/timeline-tools.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site-lisp/timeline-tools.el b/site-lisp/timeline-tools.el index 9c320ca..9740216 100644 --- a/site-lisp/timeline-tools.el +++ b/site-lisp/timeline-tools.el @@ -558,7 +558,8 @@ Errors out if there is no entry on the current line, unless NOERROR is non-nil; in that case, return nil when no text property could be found (note that this can also happen if point is outside of the current table)." - (unless (derived-mode-p 'timeline-tools-mode)) + (unless (derived-mode-p 'timeline-tools-mode) + (user-error "Not in timeline-tools-mode")) (save-mark-and-excursion (if (not (org-at-table-p)) (if noerror nil (user-error "Not in table"))