Subject: bug#42731: 28.0.50; Snake doesn't quit when pressing "q"

From: "Peder O. Klingenberg" <[email-masked]>
Date: Thu, 06 Aug 2020 19:46:42 +0200

When playing Tetris, pressing "q" when not in an active game quits the Tetris
window.  Very handy.  Snake should IMO behave the same, but doesn't currently.

Here's a patch to fix that.

-- 
...Peder...
>From 72713a7d52f2ee823a4e81c16a9c64104fcca012 Mon Sep 17 00:00:00 2001
From: "Peder O. Klingenberg" <[email-masked]>
Date: Thu, 6 Aug 2020 14:32:52 +0200
Subject: [PATCH] * lisp/play/snake.el (snake-null-map): Add quitting by
 pressing q.

---
 lisp/play/snake.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/play/snake.el b/lisp/play/snake.el
index d7c0683a05..70d80c464f 100644
--- a/lisp/play/snake.el
+++ b/lisp/play/snake.el
@@ -192,6 +192,7 @@ snake-mode-map
 (defvar snake-null-map
   (let ((map (make-sparse-keymap 'snake-null-map)))
     (define-key map "n"		'snake-start-game)
+    (define-key map "q"         'quit-window)
     map)
   "Keymap for finished Snake games.")
 
-- 
2.28.0.rc2.windows.1