;; Bubbles is an implementation of the "Same Game", similar to "Same
;; GNOME" and many others, see <https://en.wikipedia.org/wiki/SameGame>.
+;;; Code:
+
;; ======================================================================
;;; History:
;; ======================================================================
-;;; Code:
-
(require 'gamegrid)
;; User options
(defvar-keymap bubbles-mode-map
:doc "Mode map for `bubbles'."
:name 'bubbles-mode-map
- "q" #'bubbles-quit
+ "q" #'quit-window
"C-j" #'bubbles-plop
"SPC" #'bubbles-plop
"C-m" #'bubbles-plop
["Save all settings" bubbles-save-settings]
"---"
["New game" bubbles]
- ["Quit" bubbles-quit]))
+ ["Quit" quit-window]))
;; bind menu to mouse
(define-key bubbles-mode-map [down-mouse-3] bubbles-menu)
(defun bubbles-quit ()
"Quit Bubbles."
+ (declare (obsolete quit-window "29.1"))
(interactive nil bubbles-mode)
(message "bubbles-quit")
(bury-buffer))