diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2006-12-22 15:24:10 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2006-12-22 15:24:10 +0000 |
commit | 9ccc1a31ee48336e0ee9bd58e52d7a83eafd942d (patch) | |
tree | 931d81b44490d9f329e4bddfb4ffb6cdfe84bfe8 | |
parent | ce9ff7846b179e56f9db08b25e2901898f6542c7 (diff) | |
download | emacs-9ccc1a31ee48336e0ee9bd58e52d7a83eafd942d.tar.gz |
(tutorial--save-tutorial): Prompt before saving tutorial state.
-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 position where the display of changed bindings was inserted." ;; This runs in a hook so protect it: (condition-case err - (tutorial--save-tutorial-to (tutorial--saved-file)) - (error (message "Error saving tutorial state: %s" (error-message-string err)) - (sit-for 4)))) + (if (y-or-n-p "Save your position in the tutorial? ") + (tutorial--save-tutorial-to (tutorial--saved-file))) + (error (message "Error saving tutorial state: %s" + (error-message-string err))))) (defun tutorial--save-tutorial-to (saved-file) "Save the tutorial buffer to SAVED-FILE. |