emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 dec2ac0c657: Fix exiting Emacs after saving a tutorial


From: Eli Zaretskii
Subject: emacs-29 dec2ac0c657: Fix exiting Emacs after saving a tutorial
Date: Sat, 22 Apr 2023 06:36:08 -0400 (EDT)

branch: emacs-29
commit dec2ac0c657c24ae03f1632508cb3ebbc1fd0b82
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]