diff options
Diffstat (limited to 'lisp/tutorial.el')
| -rw-r--r-- | lisp/tutorial.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/tutorial.el b/lisp/tutorial.el index 1f37687d7e4..be50d793f0f 100644 --- a/lisp/tutorial.el +++ b/lisp/tutorial.el | |||
| @@ -644,9 +644,10 @@ showing changed keys. It also saves the point position and the | |||
| 644 | position where the display of changed bindings was inserted." | 644 | position where the display of changed bindings was inserted." |
| 645 | ;; This runs in a hook so protect it: | 645 | ;; This runs in a hook so protect it: |
| 646 | (condition-case err | 646 | (condition-case err |
| 647 | (tutorial--save-tutorial-to (tutorial--saved-file)) | 647 | (if (y-or-n-p "Save your position in the tutorial? ") |
| 648 | (error (message "Error saving tutorial state: %s" (error-message-string err)) | 648 | (tutorial--save-tutorial-to (tutorial--saved-file))) |
| 649 | (sit-for 4)))) | 649 | (error (message "Error saving tutorial state: %s" |
| 650 | (error-message-string err))))) | ||
| 650 | 651 | ||
| 651 | (defun tutorial--save-tutorial-to (saved-file) | 652 | (defun tutorial--save-tutorial-to (saved-file) |
| 652 | "Save the tutorial buffer to SAVED-FILE. | 653 | "Save the tutorial buffer to SAVED-FILE. |