* bug#42731: 28.0.50; Snake doesn't quit when pressing "q"
@ 2020-08-06 17:46 Peder O. Klingenberg
2020-08-07 10:31 ` Stefan Kangas
0 siblings, 1 reply; 2+ messages in thread
From: Peder O. Klingenberg @ 2020-08-06 17:46 UTC (permalink / raw)
To: 42731
[-- Attachment #1: Type: text/plain, Size: 204 bytes --]
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...
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-play-snake.el-snake-null-map-Add-quitting-by-pr.patch --]
[-- Type: text/x-patch, Size: 729 bytes --]
From 72713a7d52f2ee823a4e81c16a9c64104fcca012 Mon Sep 17 00:00:00 2001
From: "Peder O. Klingenberg" <peder@klingenberg.no>
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#42731: 28.0.50; Snake doesn't quit when pressing "q"
2020-08-06 17:46 bug#42731: 28.0.50; Snake doesn't quit when pressing "q" Peder O. Klingenberg
@ 2020-08-07 10:31 ` Stefan Kangas
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Kangas @ 2020-08-07 10:31 UTC (permalink / raw)
To: Peder O. Klingenberg; +Cc: 42731
close 42731 28.1
thanks
"Peder O. Klingenberg" <peder@klingenberg.no> writes:
> 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.
Thanks for the patch. I amended the commit message to include the bug
number and pushed this to master.
Best regards,
Stefan Kangas
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-07 10:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-06 17:46 bug#42731: 28.0.50; Snake doesn't quit when pressing "q" Peder O. Klingenberg
2020-08-07 10:31 ` Stefan Kangas
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.