From 133c79b6bcc1860cce933e2d61ebacdda19d5357 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Marks?= Date: Wed, 10 Jun 2026 13:14:07 -0400 Subject: [PATCH] markdown-ts-mode: Sanitize work-buffer pool This a workaround for the release branch due to the work-buffer pool being insufficiently sanitized. * lisp/textmodes/markdown-ts-mode.el (markdown-ts--run-command-in-code-block): Reset 'mark-active'. Do not merge to master. (Bug#81218) (Bug#81111) --- lisp/textmodes/markdown-ts-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/textmodes/markdown-ts-mode.el b/lisp/textmodes/markdown-ts-mode.el index 74e36f15d90..6b70f2aced9 100644 --- a/lisp/textmodes/markdown-ts-mode.el +++ b/lisp/textmodes/markdown-ts-mode.el @@ -3221,6 +3221,7 @@ ARGS are captured by `markdown-ts--maybe-run-command-in-code-block'." (memq command markdown-ts-code-block-ignore-output-commands)) (source-buffer (current-buffer))) (with-work-buffer + (setq mark-active nil) ; See bug#81111. (insert str) (goto-char adj-point) ;; Propagate mark (and region).