summaryrefslogtreecommitdiff
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
commit2b632b1668bbf671c84af69db30ac8865ef6d812 (patch)
tree6024da6b8eecf98aa4dd4a5d1c5ab673b48ce56e
parent2f4fbe7a92ac9ebaf27c09d1db52e07c48e06ba8 (diff)
downloademacs-2b632b1668bbf671c84af69db30ac8865ef6d812.tar.gz
(tetris-mode): Avoid warning.
-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)