From 754615cae03212134c0caf6f641763819afdf8aa Mon Sep 17 00:00:00 2001 From: EmacsConf Date: Wed, 25 Oct 2023 12:03:40 -0400 Subject: Guard against null from-states when changing status --- emacsconf.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'emacsconf.el') diff --git a/emacsconf.el b/emacsconf.el index 5497c05..86e7251 100644 --- a/emacsconf.el +++ b/emacsconf.el @@ -1566,7 +1566,8 @@ tracks with the ID in the cdr of that list." (defun emacsconf-update-talk-status (slug from-states to-state) (interactive (list (emacsconf-complete-talk) "." (completing-read "To: " (mapcar 'car emacsconf-status-types)))) (emacsconf-with-talk-heading slug - (when (string-match from-states (org-entry-get (point) "TODO")) + (when (or (null from-states) + (string-match from-states (org-entry-get (point) "TODO"))) (org-todo to-state) (save-buffer)))) -- cgit v1.2.3