Function: tutorial--save-on-kill

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

Signature

(tutorial--save-on-kill)

Documentation

Query the user about saving the tutorial when killing Emacs.

Source Code

;; Defined in /usr/src/emacs/lisp/tutorial.el.gz
(defun tutorial--save-on-kill ()
  "Query the user about saving the tutorial when killing Emacs."
  (when (buffer-live-p tutorial--buffer)
    (with-current-buffer tutorial--buffer
      (unless (= (point) tutorial--starting-point)
        (if (y-or-n-p "Save your position in the tutorial? ")
	    (tutorial--save-tutorial-to (tutorial--saved-file))
	  (message "Tutorial position not saved")))))
  t)