diff options
| author | Richard M. Stallman | 1996-03-07 18:15:59 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-03-07 18:15:59 +0000 |
| commit | e024a2f4ab5c253fe040d3fd2edf7be902e21823 (patch) | |
| tree | f668153286b81113e75d6e5f72cb5a3ebe2cd800 /lisp/ehelp.el | |
| parent | 2d9cdda805dbdeccb0410f7421d4d64518ee5922 (diff) | |
| download | emacs-e024a2f4ab5c253fe040d3fd2edf7be902e21823.tar.gz emacs-e024a2f4ab5c253fe040d3fd2edf7be902e21823.zip | |
(with-electric-help): Make buffer read-only as last thing.
Diffstat (limited to 'lisp/ehelp.el')
| -rw-r--r-- | lisp/ehelp.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/ehelp.el b/lisp/ehelp.el index 8063ec3954c..5964157d748 100644 --- a/lisp/ehelp.el +++ b/lisp/ehelp.el | |||
| @@ -134,9 +134,9 @@ BUFFER is put into `default-major-mode' (or `fundamental-mode') when we exit." | |||
| 134 | (if (and minheight (< (window-height) minheight)) | 134 | (if (and minheight (< (window-height) minheight)) |
| 135 | (enlarge-window (- minheight (window-height)))) | 135 | (enlarge-window (- minheight (window-height)))) |
| 136 | (electric-help-mode) | 136 | (electric-help-mode) |
| 137 | (setq buffer-read-only nil) | ||
| 137 | (or noerase | 138 | (or noerase |
| 138 | (let ((inhibit-read-only t)) | 139 | (erase-buffer))) |
| 139 | (erase-buffer)))) | ||
| 140 | (let ((standard-output buffer)) | 140 | (let ((standard-output buffer)) |
| 141 | (if (not (funcall thunk)) | 141 | (if (not (funcall thunk)) |
| 142 | (progn | 142 | (progn |
| @@ -146,6 +146,7 @@ BUFFER is put into `default-major-mode' (or `fundamental-mode') when we exit." | |||
| 146 | (if one (shrink-window-if-larger-than-buffer (selected-window)))))) | 146 | (if one (shrink-window-if-larger-than-buffer (selected-window)))))) |
| 147 | (set-buffer buffer) | 147 | (set-buffer buffer) |
| 148 | (run-hooks 'electric-help-mode-hook) | 148 | (run-hooks 'electric-help-mode-hook) |
| 149 | (setq buffer-read-only t) | ||
| 149 | (if (eq (car-safe (electric-help-command-loop)) | 150 | (if (eq (car-safe (electric-help-command-loop)) |
| 150 | 'retain) | 151 | 'retain) |
| 151 | (setq config (current-window-configuration)) | 152 | (setq config (current-window-configuration)) |