mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 03:39:38 +00:00
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)
This commit is contained in:
parent
44145bf07e
commit
dec2ac0c65
1 changed files with 1 additions and 0 deletions
|
@ -650,6 +650,7 @@ with some explanatory links."
|
||||||
(delete-region prop-start prop-end))))))
|
(delete-region prop-start prop-end))))))
|
||||||
|
|
||||||
(defvar tutorial--starting-point)
|
(defvar tutorial--starting-point)
|
||||||
|
(put 'tutorial--starting-point 'permanent-local t)
|
||||||
(defun tutorial--save-on-kill ()
|
(defun tutorial--save-on-kill ()
|
||||||
"Query the user about saving the tutorial when killing Emacs."
|
"Query the user about saving the tutorial when killing Emacs."
|
||||||
(when (buffer-live-p tutorial--buffer)
|
(when (buffer-live-p tutorial--buffer)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue