help-with-tutorial buffer-read-only fix
authorGlenn Morris <rgm@gnu.org>
Fri, 30 Mar 2012 03:59:52 +0000 (20:59 -0700)
committerGlenn Morris <rgm@gnu.org>
Fri, 30 Mar 2012 03:59:52 +0000 (20:59 -0700)
* lisp/tutorial.el (help-with-tutorial):
Ensure local variables don't happen to make the buffer read-only.

Fixes: debbugs:11127

lisp/ChangeLog
lisp/tutorial.el

index 1adaa8b..fa53caf 100644 (file)
@@ -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.
index 80d8f28..3843cec 100644 (file)
@@ -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)))