Function: mpuz-offer-abort

mpuz-offer-abort is an interactive and byte-compiled function defined in mpuz.el.gz.

Signature

(mpuz-offer-abort)

Documentation

Ask if user wants to abort current puzzle.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/play/mpuz.el.gz
(defun mpuz-offer-abort ()
  "Ask if user wants to abort current puzzle."
  (interactive nil mpuz-mode)
  (if (y-or-n-p "Abort game? ")
      (let ((buf (mpuz-get-buffer)))
	(message "Mult Puzzle aborted.")
	(setq mpuz-in-progress nil
	      mpuz-nb-errors 0)
	(fillarray mpuz-board nil)
	(if buf (kill-buffer buf)))
    (mpuz-ask-for-try)))