From b4b0bab9c20546fb77564e05c820c7d82bfb25d7 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Wed, 23 Apr 2025 20:41:54 +0200 Subject: [PATCH] Fix quantifier in Org headline insert inhibitor hook Make sure at least one asteriks is present to not accidentally prevent input on other lines. --- site-lisp/db-org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site-lisp/db-org.el b/site-lisp/db-org.el index 0a6bc54..0b544fd 100644 --- a/site-lisp/db-org.el +++ b/site-lisp/db-org.el @@ -1257,7 +1257,7 @@ ignore all keys pressed at the beginning of a headline." (ignore keys) (when (and (or (looking-at "\\*") (looking-at " ")) - (looking-back "^\\** ?" nil)) + (looking-back "^\\*+ ?" nil)) #'(lambda () (user-error "No direct input allowed in headline"))))