Fix exiting Emacs after saving a tutorial
* lisp/tutorial.el (tutorial--lang) (tutorial--point-before-chkeys): Add both variables as permanent-local, so that saving the tutorial to some file doesn't kill these buffer-local variables. Otherwise, trying to exit Emacs after saving the tutorial will signal an error, because 'tutorial--lang' is nil. (Bug#74364)
This commit is contained in:
parent
d06a0153ce
commit
a8169bee20
1 changed files with 5 additions and 0 deletions
|
@ -650,7 +650,12 @@ with some explanatory links."
|
|||
(delete-region prop-start prop-end))))))
|
||||
|
||||
(defvar tutorial--starting-point)
|
||||
|
||||
;; For when the user saves the TUTORIAL to a file.
|
||||
(put 'tutorial--starting-point 'permanent-local t)
|
||||
(put 'tutorial--lang 'permanent-local t)
|
||||
(put 'tutorial--point-before-chkeys 'permanent-local t)
|
||||
|
||||
(defun tutorial--save-on-kill ()
|
||||
"Query the user about saving the tutorial when killing Emacs."
|
||||
(when (buffer-live-p tutorial--buffer)
|
||||
|
|
Loading…
Add table
Reference in a new issue