Commit 61c6e8fd authored by Glenn Morris's avatar Glenn Morris
Browse files

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
parent 81fdff00
2012-03-30 Glenn Morris <rgm@gnu.org>
* tutorial.el (help-with-tutorial): Ensure local variables don't
happen to make the buffer read-only. (Bug#11127)
2012-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/perl-mode.el (perl-indent-line): Use `noindent' in strings.
......
......@@ -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)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment