emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r107700: help-with-tutorial buffer-re


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r107700: help-with-tutorial buffer-read-only fix
Date: Thu, 29 Mar 2012 20:59:52 -0700
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 107700
fixes bug(s): http://debbugs.gnu.org/11127
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Thu 2012-03-29 20:59:52 -0700
message:
  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.
modified:
  lisp/ChangeLog
  lisp/tutorial.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2012-03-30 03:13:04 +0000
+++ b/lisp/ChangeLog    2012-03-30 03:59:52 +0000
@@ -1,3 +1,8 @@
+2012-03-30  Glenn Morris  <address@hidden>
+
+       * tutorial.el (help-with-tutorial): Ensure local variables don't
+       happen to make the buffer read-only.  (Bug#11127)
+
 2012-03-30  Stefan Monnier  <address@hidden>
 
        * progmodes/perl-mode.el (perl-indent-line): Use `noindent' in strings.

=== modified file 'lisp/tutorial.el'
--- a/lisp/tutorial.el  2012-01-19 07:21:25 +0000
+++ b/lisp/tutorial.el  2012-03-30 03:59:52 +0000
@@ -832,6 +832,7 @@
               (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 @@
           (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)))
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]