diff options
author | Glenn Morris <rgm@gnu.org> | 2012-03-29 20:59:52 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2012-03-29 20:59:52 -0700 |
commit | 61c6e8fd0ef5423e1b500608747a3b77b0e96ae9 (patch) | |
tree | 226e96a8df05e70d469f6a03c1c54e3e14ff3260 | |
parent | 81fdff0036dd12c4d0ef9ef742def02bdb0dc502 (diff) | |
download | emacs-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
-rw-r--r-- | lisp/ChangeLog | 5 | ||||
-rw-r--r-- | lisp/tutorial.el | 2 |
2 files changed, 7 insertions, 0 deletions
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 <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. 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))) |