diff options
| author | Stefan Kangas | 2019-10-20 19:01:33 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2019-10-20 19:09:15 +0200 |
| commit | b0af024bb7b2c652ceeb60789edcf4c2bf8c0605 (patch) | |
| tree | 0b3d8e808282d2ff58f72b2afd42ff5b2742f054 | |
| parent | 5ddbd8d191e7e38167a63728c6ead5a6401c63f6 (diff) | |
| download | emacs-b0af024bb7b2c652ceeb60789edcf4c2bf8c0605.tar.gz emacs-b0af024bb7b2c652ceeb60789edcf4c2bf8c0605.zip | |
Disable pause/resume from menu in snake and tetris
* lisp/play/tetris.el (tetris--menu-def):
* lisp/play/snake.el (snake--menu-def): Disable pause/resume from
menu.
| -rw-r--r-- | lisp/play/snake.el | 17 | ||||
| -rw-r--r-- | lisp/play/tetris.el | 17 |
2 files changed, 22 insertions, 12 deletions
diff --git a/lisp/play/snake.el b/lisp/play/snake.el index 5e8a718f5a1..d645f960d1b 100644 --- a/lisp/play/snake.el +++ b/lisp/play/snake.el | |||
| @@ -202,12 +202,17 @@ and then start moving it leftwards.") | |||
| 202 | ["End game" snake-end-game | 202 | ["End game" snake-end-game |
| 203 | :active (snake-active-p) | 203 | :active (snake-active-p) |
| 204 | :help "End the current Snake game"] | 204 | :help "End the current Snake game"] |
| 205 | ["Pause" snake-pause-game | 205 | ;; FIXME: Pause and resume from the menu currently doesn't work |
| 206 | :active (and (snake-active-p) (not snake-paused)) | 206 | ;; very well and is therefore disabled. The game continues |
| 207 | :help "Pause running Snake game"] | 207 | ;; running while navigating the menu. See also |
| 208 | ["Resume" snake-pause-game | 208 | ;; `tetris--menu-def' which has the same problem. |
| 209 | :active (and (snake-active-p) snake-paused) | 209 | ;; ["Pause" snake-pause-game |
| 210 | :help "Resume paused Snake game"]) | 210 | ;; :active (and (snake-active-p) (not snake-paused)) |
| 211 | ;; :help "Pause running Snake game"] | ||
| 212 | ;; ["Resume" snake-pause-game | ||
| 213 | ;; :active (and (snake-active-p) snake-paused) | ||
| 214 | ;; :help "Resume paused Snake game"] | ||
| 215 | ) | ||
| 211 | "Menu for `snake'. Used to initialize menus.") | 216 | "Menu for `snake'. Used to initialize menus.") |
| 212 | 217 | ||
| 213 | (easy-menu-define | 218 | (easy-menu-define |
diff --git a/lisp/play/tetris.el b/lisp/play/tetris.el index b5b77721ece..ea42e1297fd 100644 --- a/lisp/play/tetris.el +++ b/lisp/play/tetris.el | |||
| @@ -289,12 +289,17 @@ each one of its four blocks.") | |||
| 289 | ["End game" tetris-end-game | 289 | ["End game" tetris-end-game |
| 290 | :active (tetris-active-p) | 290 | :active (tetris-active-p) |
| 291 | :help "End the current Tetris game"] | 291 | :help "End the current Tetris game"] |
| 292 | ["Pause" tetris-pause-game | 292 | ;; FIXME: Pause and resume from the menu currently doesn't work |
| 293 | :active (and (tetris-active-p) (not tetris-paused)) | 293 | ;; very well and is therefore disabled. The game continues |
| 294 | :help "Pause running Tetris game"] | 294 | ;; running while navigating the menu. See also |
| 295 | ["Resume" tetris-pause-game | 295 | ;; `snake--menu-def' which has the same problem. |
| 296 | :active (and (tetris-active-p) tetris-paused) | 296 | ;; ["Pause" tetris-pause-game |
| 297 | :help "Resume paused Tetris game"]) | 297 | ;; :active (and (tetris-active-p) (not tetris-paused)) |
| 298 | ;; :help "Pause running Tetris game"] | ||
| 299 | ;; ["Resume" tetris-pause-game | ||
| 300 | ;; :active (and (tetris-active-p) tetris-paused) | ||
| 301 | ;; :help "Resume paused Tetris game"] | ||
| 302 | ) | ||
| 298 | "Menu for `tetris'. Used to initialize menus.") | 303 | "Menu for `tetris'. Used to initialize menus.") |
| 299 | 304 | ||
| 300 | (easy-menu-define | 305 | (easy-menu-define |