From dec2ac0c657c24ae03f1632508cb3ebbc1fd0b82 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 22 Apr 2023 13:35:36 +0300 Subject: [PATCH] Fix exiting Emacs after saving a tutorial * lisp/tutorial.el (tutorial--starting-point): Make it permanent-local, so that saving the tutorial to some file doesn't kill this buffer-local variable. Otherwise, trying to exit Emacs after saving the tutorial will signal an error, because 'tutorial--starting-point' is void. (Bug#37326) --- lisp/tutorial.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/tutorial.el b/lisp/tutorial.el index 0afe565c80b..eb494be8d4d 100644 --- a/lisp/tutorial.el +++ b/lisp/tutorial.el @@ -650,6 +650,7 @@ with some explanatory links." (delete-region prop-start prop-end)))))) (defvar tutorial--starting-point) +(put 'tutorial--starting-point 'permanent-local t) (defun tutorial--save-on-kill () "Query the user about saving the tutorial when killing Emacs." (when (buffer-live-p tutorial--buffer) -- 2.39.2