diff options
| author | John Wiegley <johnw@newartisans.com> | 2002-05-01 06:07:25 +0000 |
|---|---|---|
| committer | John Wiegley <johnw@newartisans.com> | 2002-05-01 06:07:25 +0000 |
| commit | 986af48943f06c660b935551c1be38ec2153fe32 (patch) | |
| tree | 6c2320f971de5b8e05b2415b457283e8034bf8fd /chess-display.el | |
| parent | 4917d45b9eb5a09002b2f5006fe9e5b818ecc608 (diff) | |
*** no comment ***
Diffstat (limited to 'chess-display.el')
| -rw-r--r-- | chess-display.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chess-display.el b/chess-display.el index c90f180..2faf4b3 100644 --- a/chess-display.el +++ b/chess-display.el @@ -527,6 +527,7 @@ See `chess-display-type' for the different kinds of displays." (define-key map [?\{] 'chess-display-annotate) (define-key map [?\"] 'chess-display-chat) (define-key map [?\'] 'chess-display-chat) + (define-key map [?\~] 'chess-display-check-autosave) (define-key map [(control ?r)] 'chess-display-search-backward) (define-key map [(control ?s)] 'chess-display-search-forward) @@ -830,6 +831,12 @@ Basically, it means we are playing, not editing or reviewing." (chess-game-run-hooks chess-module-game 'force) (ding))) +(defun chess-display-check-autosave () + (interactive) + (if (chess-display-active-p) + (chess-game-run-hooks chess-module-game 'check-autosave) + (ding))) + (defun chess-display-resign () "Resign the current game." (interactive) |
