summaryrefslogtreecommitdiff
path: root/lisp/help-macro.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2005-12-14 07:42:20 +0000
committerJuri Linkov <juri@jurta.org>2005-12-14 07:42:20 +0000
commitce34887310b2ebd52248aea688e7d69b7d93eef4 (patch)
treecc128cd4710b936a1856cfbcbe98569f4f891145 /lisp/help-macro.el
parenta0b823503782aa780eb3d7f0cbaded443f405adb (diff)
downloademacs-ce34887310b2ebd52248aea688e7d69b7d93eef4.tar.gz
(make-help-screen): Bind `inhibit-read-only' to t
around `erase-buffer' and `insert'.
Diffstat (limited to 'lisp/help-macro.el')
-rw-r--r--lisp/help-macro.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/help-macro.el b/lisp/help-macro.el
index 33ee42abe7e..3170bf287b5 100644
--- a/lisp/help-macro.el
+++ b/lisp/help-macro.el
@@ -139,8 +139,9 @@ and then returns."
(setq new-frame (window-frame (selected-window))
config nil))
(setq buffer-read-only nil)
- (erase-buffer)
- (insert help-screen)
+ (let ((inhibit-read-only t))
+ (erase-buffer)
+ (insert help-screen))
(help-mode)
(goto-char (point-min))
(while (or (memq char (append help-event-list