summaryrefslogtreecommitdiff
path: root/lisp/play/tetris.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2005-07-16 18:38:33 +0000
committerRichard M. Stallman <rms@gnu.org>2005-07-16 18:38:33 +0000
commitc2ff35d4bf9aabeb12a7d38a54807e5efecd7b32 (patch)
tree7c2de0a73f47a593b5e3fb3213ceb6fdcca8b9bb /lisp/play/tetris.el
parentf9502baa04ddd72028deb3f54f1d8ba97c9771c9 (diff)
downloademacs-c2ff35d4bf9aabeb12a7d38a54807e5efecd7b32.tar.gz
(tetris-mode): Avoid warning.
Diffstat (limited to 'lisp/play/tetris.el')
-rw-r--r--lisp/play/tetris.el19
1 files changed, 10 insertions, 9 deletions
diff --git a/lisp/play/tetris.el b/lisp/play/tetris.el
index 7ef997a9865..9ecb9261241 100644
--- a/lisp/play/tetris.el
+++ b/lisp/play/tetris.el
@@ -601,15 +601,16 @@ tetris-mode keybindings:
(setq major-mode 'tetris-mode)
(setq mode-name "Tetris")
- (setq mode-popup-menu
- '("Tetris Commands"
- ["Start new game" tetris-start-game]
- ["End game" tetris-end-game
- (tetris-active-p)]
- ["Pause" tetris-pause-game
- (and (tetris-active-p) (not tetris-paused))]
- ["Resume" tetris-pause-game
- (and (tetris-active-p) tetris-paused)]))
+ (unless (featurep 'emacs)
+ (setq mode-popup-menu
+ '("Tetris Commands"
+ ["Start new game" tetris-start-game]
+ ["End game" tetris-end-game
+ (tetris-active-p)]
+ ["Pause" tetris-pause-game
+ (and (tetris-active-p) (not tetris-paused))]
+ ["Resume" tetris-pause-game
+ (and (tetris-active-p) tetris-paused)])))
(setq gamegrid-use-glyphs tetris-use-glyphs)
(setq gamegrid-use-color tetris-use-color)