1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-10 08:52:40 -07:00

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)
This commit is contained in:
Eli Zaretskii 2026-03-08 12:00:53 +02:00
parent ba34e44cf3
commit bb7e993734

View file

@ -333,7 +333,8 @@ You may abort a game by typing \\<mpuz-mode-map>\\[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