summaryrefslogtreecommitdiff
path: root/lisp/tutorial.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2012-03-29 20:59:52 -0700
committerGlenn Morris <rgm@gnu.org>2012-03-29 20:59:52 -0700
commit61c6e8fd0ef5423e1b500608747a3b77b0e96ae9 (patch)
tree226e96a8df05e70d469f6a03c1c54e3e14ff3260 /lisp/tutorial.el
parent81fdff0036dd12c4d0ef9ef742def02bdb0dc502 (diff)
downloademacs-61c6e8fd0ef5423e1b500608747a3b77b0e96ae9.tar.gz
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
Diffstat (limited to 'lisp/tutorial.el')
-rw-r--r--lisp/tutorial.el2
1 files changed, 2 insertions, 0 deletions
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)))