(checkdoc-start-section, checkdoc-error):
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 20 Jun 2008 16:20:48 +0000 (16:20 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 20 Jun 2008 16:20:48 +0000 (16:20 +0000)
Bind inhibit-read-only since the buffer is always read-only.

lisp/ChangeLog
lisp/emacs-lisp/checkdoc.el

index 37400de..1e207f7 100644 (file)
@@ -1,3 +1,8 @@
+2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/checkdoc.el (checkdoc-start-section, checkdoc-error):
+       Bind inhibit-read-only since the buffer is always read-only.
+
 2008-06-20  Ulf Jasper  <ulf@web.de>
 
        * net/newst-treeview.el (newsticker-treeview-own-frame): Changed
index de23111..dc3bbe9 100644 (file)
@@ -2605,7 +2605,9 @@ function called to create the messages."
       (checkdoc-output-mode)
       (setq default-directory dir)
       (goto-char (point-max))
-      (insert "\n\n\C-l\n*** " label ": " check-type " V " checkdoc-version))))
+      (let ((inhibit-read-only t))
+        (insert "\n\n\C-l\n*** " label ": "
+                check-type " V " checkdoc-version)))))
 
 (defun checkdoc-error (point msg)
   "Store POINT and MSG as errors in the checkdoc diagnostic buffer."
@@ -2616,7 +2618,8 @@ function called to create the messages."
                    ": " msg)))
     (with-current-buffer (get-buffer checkdoc-diagnostic-buffer)
       (goto-char (point-max))
-      (apply 'insert text))))
+      (let ((inhibit-read-only t))
+        (apply 'insert text)))))
 
 (defun checkdoc-show-diagnostics ()
   "Display the checkdoc diagnostic buffer in a temporary window."