Hi Yikai, Thanks you for reporting this bug. I was able to confirm it, and trying a few similar such buffers can also say this only appears to affect `markdown-mode'.
I’ve prepared a patch that serves as a catch-all for this type of issue, but I’m not sure if this is the best approach. If other people could chime in that would be great :) All the best, Timothy
>From d74d588a004b36d67c603ccbd919e07192524281 Mon Sep 17 00:00:00 2001 From: TEC <t...@tecosaur.com> Date: Fri, 17 Sep 2021 17:23:58 +0800 Subject: [PATCH] org: fix potential missing src match-data issue A more detailed commit message if this actually gets applied... --- lisp/org.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/org.el b/lisp/org.el index c22a69154..4c630f206 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5377,6 +5377,8 @@ (defun org-fontify-meta-lines-and-blocks-1 (limit) (min (point-max) beg-of-next-line)) (min (point-max) end-of-endline)) '(face org-block-end-line))) + (unless (match-data) + (set-match-data '(0 0))) t)) ((member dc1 '("+title:" "+subtitle:" "+author:" "+email:" "+date:")) (org-remove-flyspell-overlays-in -- 2.33.0