diff options
| author | John Wiegley <jwiegley@gmail.com> | 2017-02-26 14:42:51 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-26 14:42:51 -0500 |
| commit | 372309e8e566024d546bff5fb5e8d906bd8e3850 (patch) | |
| tree | 2ae37a7b155eb01a936e11c4ff5d60490a12fc99 /chess-puzzle.el | |
| parent | e21d9a389d8d73329ce3786b5ed8ab0c3f9e8f63 (diff) | |
| parent | 6c0af04049283354fc718c814c705d020aeb7303 (diff) | |
Merge pull request #15 from dwcoates/master
Correct previous mis-commit; remove erroneous code remnants
Diffstat (limited to 'chess-puzzle.el')
| -rw-r--r-- | chess-puzzle.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chess-puzzle.el b/chess-puzzle.el index 1274746..5cff25c 100644 --- a/chess-puzzle.el +++ b/chess-puzzle.el @@ -75,7 +75,9 @@ it. Useful if you have all of your puzzles in a single file." ;;;###autoload (defun chess-puzzle-set-defualt-file (file) - "Set the default puzzle file to FILE for the current session." + "Set the default puzzle file to FILE for the current session. + +Useful mostly if you use `chess-puzzle-autoload-file'." (interactive (list (let* ((file-name (or chess-puzzle-default-file (file-name-directory (buffer-file-name)))) @@ -90,7 +92,7 @@ it. Useful if you have all of your puzzles in a single file." (setq chess-puzzle-default-file file) (when (yes-or-no-p "Load a chess puzzle?: ") (let ((chess-puzzle-autoload-file t)) - (unless (call-interactively 'chess-puzzle)))) + (call-interactively 'chess-puzzle))) (message "chess-puzzle-default-file set to '%s'" file)) ;;;###autoload @@ -116,7 +118,6 @@ making it easy to go on to the next puzzle once you've solved one." (when file-p file-name) t) file-name)))) - (abbreviate-file-name (buffer-file-name)) (let* ((database (chess-database-open file)) (objects (and database (chess-session))) (engine (car objects)) |
