X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/8546720e6f25eb988e8215de6678798053031440..0e963201d03d9229bb8ac4323291d2b0119526ed:/lisp/play/solitaire.el diff --git a/lisp/play/solitaire.el b/lisp/play/solitaire.el index 2fe62ed0e6..8dcaa6144c 100644 --- a/lisp/play/solitaire.el +++ b/lisp/play/solitaire.el @@ -1,6 +1,6 @@ ;;; solitaire.el --- game of solitaire in Emacs Lisp -;; Copyright (C) 1994, 2001-2011 Free Software Foundation, Inc. +;; Copyright (C) 1994, 2001-2016 Free Software Foundation, Inc. ;; Author: Jan Schormann ;; Created: Fri afternoon, Jun 3, 1994 @@ -126,7 +126,7 @@ the game is over, or off, if you are working on a slow machine." '(solitaire-left solitaire-right solitaire-up solitaire-down)) ;;;###autoload -(defun solitaire (arg) +(defun solitaire (_arg) "Play Solitaire. To play Solitaire, type \\[solitaire]. @@ -190,7 +190,7 @@ That's all. Here's the board after two moves: o o o -Pick your favourite shortcuts: +Pick your favorite shortcuts: \\{solitaire-mode-map}" @@ -201,12 +201,12 @@ Pick your favourite shortcuts: (setq buffer-read-only t) (setq solitaire-stones 32) (solitaire-insert-board) - (solitaire-build-modeline) + (solitaire-build-mode-line) (goto-char (point-max)) (setq solitaire-center (search-backward ".")) (setq buffer-undo-list (list (point))))) -(defun solitaire-build-modeline () +(defun solitaire-build-mode-line () (setq mode-line-format (list "" "---" 'mode-line-buffer-identification (if (< 1 solitaire-stones) @@ -353,7 +353,7 @@ which a stone will be taken away) and target." (insert ?o) (goto-char target) (setq solitaire-stones (1- solitaire-stones)) - (solitaire-build-modeline) + (solitaire-build-mode-line) (if solitaire-auto-eval (solitaire-do-check)))))) (defun solitaire-undo (arg) @@ -372,7 +372,7 @@ which a stone will be taken away) and target." (<= (solitaire-current-line) solitaire-end-y) (setq count (1+ count)))) count))) - (solitaire-build-modeline) + (solitaire-build-mode-line) (when solitaire-auto-eval (solitaire-do-check))) (defun solitaire-check () @@ -393,7 +393,7 @@ which a stone will be taken away) and target." solitaire-valid-directions))) count)))) -(defun solitaire-do-check (&optional arg) +(defun solitaire-do-check (&optional _arg) "Check for any possible moves in Solitaire." (interactive "P") (let ((moves (solitaire-check)))