From 61c6e8fd0ef5423e1b500608747a3b77b0e96ae9 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 29 Mar 2012 20:59:52 -0700 Subject: [PATCH] help-with-tutorial buffer-read-only fix * lisp/tutorial.el (help-with-tutorial): Ensure local variables don't happen to make the buffer read-only. Fixes: debbugs:11127 --- lisp/ChangeLog | 5 +++++ lisp/tutorial.el | 2 ++ 2 files changed, 7 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1adaa8b5984..fa53caf7ba8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-03-30 Glenn Morris + + * tutorial.el (help-with-tutorial): Ensure local variables don't + happen to make the buffer read-only. (Bug#11127) + 2012-03-30 Stefan Monnier * progmodes/perl-mode.el (perl-indent-line): Use `noindent' in strings. diff --git a/lisp/tutorial.el b/lisp/tutorial.el index 80d8f287cb1..3843cece45f 100644 --- a/lisp/tutorial.el +++ b/lisp/tutorial.el @@ -832,6 +832,7 @@ Run the Viper tutorial? ")) (insert-file-contents (tutorial--saved-file)) (let ((enable-local-variables :safe)) (hack-local-variables)) + (setq buffer-read-only nil) ; bug#11118 (goto-char (point-min)) (setq old-tut-point (string-to-number @@ -849,6 +850,7 @@ Run the Viper tutorial? ")) (insert-file-contents (expand-file-name filename tutorial-directory)) (let ((enable-local-variables :safe)) (hack-local-variables)) + (setq buffer-read-only nil) ; bug#11118 (forward-line) (setq tutorial--point-before-chkeys (point-marker))) -- 2.39.2