]> code.delx.au - gnu-emacs/commitdiff
(tetris-mode): Avoid warning.
authorRichard M. Stallman <rms@gnu.org>
Sat, 16 Jul 2005 18:38:33 +0000 (18:38 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 16 Jul 2005 18:38:33 +0000 (18:38 +0000)
lisp/play/tetris.el

index 7ef997a986565d771cf4fe7a359553a817ccb292..9ecb9261241dfbc7666d97a231ec4dc8d00e275a 100644 (file)
@@ -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)