branch: externals/org commit 21060145b5805bf7d3e68cb7f959c8a63f16a421 Merge: b55e971453 9c5867a78f Author: Ihor Radchenko <yanta...@posteo.net> Commit: Ihor Radchenko <yanta...@posteo.net>
Merge branch 'bugfix' --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 21622523b7..a98adf927c 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -19769,7 +19769,7 @@ matches in paragraphs or comments, use it." (org-element-at-point))) (type (org-element-type element)) (post-affiliated (org-element-post-affiliated element))) - (unless (< p post-affiliated) + (unless (or (not element) (< p post-affiliated)) (cl-case type (comment (save-excursion