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)
This commit is contained in:
Stéphane Marks 2026-06-10 13:14:07 -04:00 committed by Eli Zaretskii
parent f89ff62367
commit 133c79b6bc

View file

@ -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)) (memq command markdown-ts-code-block-ignore-output-commands))
(source-buffer (current-buffer))) (source-buffer (current-buffer)))
(with-work-buffer (with-work-buffer
(setq mark-active nil) ; See bug#81111.
(insert str) (insert str)
(goto-char adj-point) (goto-char adj-point)
;; Propagate mark (and region). ;; Propagate mark (and region).