From bb7e993734ec246d183cb55fd4b3d03095c64984 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 8 Mar 2026 12:00:53 +0200 Subject: [PATCH] Fix mpuz under text-scaling * lisp/play/mpuz.el (mpuz-switch-to-window): Don't unconditionally turn on 'mpuz-mode', as that kills all local variables. (Bug#80567) --- lisp/play/mpuz.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/play/mpuz.el b/lisp/play/mpuz.el index a5125da3dfb..72169ba4a74 100644 --- a/lisp/play/mpuz.el +++ b/lisp/play/mpuz.el @@ -333,7 +333,8 @@ You may abort a game by typing \\\\[mpuz-offer-abort]." (mpuz-create-buffer)))) (switch-to-buffer buf) (setq buffer-read-only t) - (mpuz-mode))) + (or (derived-mode-p 'mpuz-mode) + (mpuz-mode)))) ;; Game control