From b260aab7e0f28c6fa97558845c285107963abc85 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 20 Jun 2008 16:20:48 +0000 Subject: [PATCH] (checkdoc-start-section, checkdoc-error): Bind inhibit-read-only since the buffer is always read-only. --- lisp/ChangeLog | 5 +++++ lisp/emacs-lisp/checkdoc.el | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 37400ded85d..1e207f74f92 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2008-06-20 Stefan Monnier + + * 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 * net/newst-treeview.el (newsticker-treeview-own-frame): Changed diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el index de23111754a..dc3bbe9a7cf 100644 --- a/lisp/emacs-lisp/checkdoc.el +++ b/lisp/emacs-lisp/checkdoc.el @@ -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." -- 2.39.2