[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/tutorial.el,v
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/tutorial.el,v |
Date: |
Fri, 22 Dec 2006 15:24:10 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Chong Yidong <cyd> 06/12/22 15:24:10
Index: tutorial.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/tutorial.el,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- tutorial.el 22 Dec 2006 15:17:24 -0000 1.8
+++ tutorial.el 22 Dec 2006 15:24:10 -0000 1.9
@@ -644,9 +644,10 @@
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.