Function: tutorial--save-tutorial

tutorial--save-tutorial is a byte-compiled function defined in tutorial.el.gz.

Signature

(tutorial--save-tutorial)

Documentation

Save the tutorial buffer.

This saves the part of the tutorial before and after the area showing changed keys. It also saves the point position and the position where the display of changed bindings was inserted.

Source Code

;; Defined in /usr/src/emacs/lisp/tutorial.el.gz
(defun tutorial--save-tutorial ()
  "Save the tutorial buffer.
This saves the part of the tutorial before and after the area
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
      (if (y-or-n-p "Save your position in the tutorial? ")
	  (tutorial--save-tutorial-to (tutorial--saved-file))
	(message "Tutorial position not saved"))
    (error (message "Error saving tutorial state: %s"
		    (error-message-string err)))))