From 2b26644b3a0d2335a3ec805cc5d7fd4a89df4448 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Wed, 16 May 2018 22:06:39 +0200 Subject: [PATCH] Fix `org-skip-over-state-notes' * lisp/org.el (org-skip-over-state-notes): Allow empty TODO states. Reported-by: Michael Brand --- lisp/org.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 11918796a..0c61c7601 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -13594,8 +13594,8 @@ EXTRA is additional text that will be inserted into the notes buffer." (regexp-quote (cdr (assq 'state org-log-note-headings))) `(("%d" . ,org-ts-regexp-inactive) ("%D" . ,org-ts-regexp) - ("%s" . "\"\\S-+\"") - ("%S" . "\"\\S-+\"") + ("%s" . "\\(?:\"\\S-+\"\\)?") + ("%S" . "\\(?:\"\\S-+\"\\)?") ("%t" . ,org-ts-regexp-inactive) ("%T" . ,org-ts-regexp) ("%u" . ".*?")