From d54079d6609458bd1bdb6eefd816a2c9f06e483d Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Wed, 28 Nov 2018 16:17:37 +0100 Subject: [PATCH] [Timeline] More error checking when trying to kill a line --- site-lisp/timeline-tools.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site-lisp/timeline-tools.el b/site-lisp/timeline-tools.el index db01809..0e486df 100644 --- a/site-lisp/timeline-tools.el +++ b/site-lisp/timeline-tools.el @@ -511,6 +511,8 @@ Interactively query for the exact value of \"short\"." (save-mark-and-excursion ;; get actual entry from headline of line (end-of-line) + (unless (looking-back " |$") + (user-error "Not in table.")) (org-table-previous-field) (let ((entry (get-text-property (point) 'entry))) (unless entry