summaryrefslogtreecommitdiff
path: root/chess.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-15 03:25:50 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-15 03:25:50 +0000
commitd123dde58b908d0f06a8b07fc99d48fbea1512b2 (patch)
treea27bb8aeeeaf4da91e68a6d636b94c4c52429778 /chess.el
parent7ec02c0ab499c2cebbbe3e8ccd5680501db90b9b (diff)
*** no comment ***
Diffstat (limited to 'chess.el')
-rw-r--r--chess.el19
1 files changed, 2 insertions, 17 deletions
diff --git a/chess.el b/chess.el
index f4c71cc..5e1ffb7 100644
--- a/chess.el
+++ b/chess.el
@@ -88,7 +88,8 @@
(defcustom chess-default-displays
'((chess-images chess-ics1 chess-plain)
- (chess-sound chess-announce))
+ (chess-sound chess-announce)
+ chess-autosave)
"Default displays to be used when starting a chess session.
This is a list of display modules, all of which will be invoked. If
any entry is itself a list, then it specifies a series of alternatives
@@ -250,22 +251,6 @@ making it easy to go on to the next puzzle once you've solved one."
(chess-game-set-data chess-display-game key
(chess-game-data next-game key))))))
-(defun chess-write-game (game file)
- "Write a chess GAME to FILE as raw Lisp."
- (let ((game-copy (copy-alist game)))
- (chess-game-set-hooks game-copy nil)
- (chess-game-set-data-alist game-copy nil)
- (with-current-buffer (find-file-noselect)
- (erase-buffer)
- (prin1 game)
- (save-buffer))))
-
-(defun chess-read-game (file)
- "Read a chess game as raw Lisp from FILE."
- (with-current-buffer (find-file-noselect)
- (goto-char (point-min))
- (read)))
-
(provide 'chess)
;;; chess.el ends here