diff options
| author | Eli Zaretskii | 2023-04-22 13:35:36 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2023-04-22 13:35:36 +0300 |
| commit | dec2ac0c657c24ae03f1632508cb3ebbc1fd0b82 (patch) | |
| tree | 4d013ceaf85c3d7d670ed44e33df19fd14e1e679 | |
| parent | 44145bf07e296efe28a29f03edcb685c84afe69a (diff) | |
| download | emacs-dec2ac0c657c24ae03f1632508cb3ebbc1fd0b82.tar.gz emacs-dec2ac0c657c24ae03f1632508cb3ebbc1fd0b82.zip | |
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)
| -rw-r--r-- | lisp/tutorial.el | 1 |
1 files changed, 1 insertions, 0 deletions
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." | |||
| 650 | (delete-region prop-start prop-end)))))) | 650 | (delete-region prop-start prop-end)))))) |
| 651 | 651 | ||
| 652 | (defvar tutorial--starting-point) | 652 | (defvar tutorial--starting-point) |
| 653 | (put 'tutorial--starting-point 'permanent-local t) | ||
| 653 | (defun tutorial--save-on-kill () | 654 | (defun tutorial--save-on-kill () |
| 654 | "Query the user about saving the tutorial when killing Emacs." | 655 | "Query the user about saving the tutorial when killing Emacs." |
| 655 | (when (buffer-live-p tutorial--buffer) | 656 | (when (buffer-live-p tutorial--buffer) |