summaryrefslogtreecommitdiff
path: root/lisp/man.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2018-12-01 11:30:41 +0200
committerEli Zaretskii <eliz@gnu.org>2018-12-01 11:30:41 +0200
commite06562ce7c164fd1f1b93154e34e6edab004719b (patch)
tree494643066d1ff1175706c19e543ddf81d9aaec2d /lisp/man.el
parent7ecf49b5a5741cc4a895c8ff42bbb4577659192c (diff)
downloademacs-e06562ce7c164fd1f1b93154e34e6edab004719b.tar.gz
Fix "M-x man" when there's no 'man' program on PATH
* lisp/man.el (Man-bgproc-sentinel): Make sure the process buffer is not read-only when inserting a message into it. (Bug#33510)
Diffstat (limited to 'lisp/man.el')
-rw-r--r--lisp/man.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/man.el b/lisp/man.el
index c62a61c708d..3a5fd5d21cb 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -1378,7 +1378,8 @@ manpage command."
(with-current-buffer Man-buffer
(save-excursion
- (let ((case-fold-search nil))
+ (let ((case-fold-search nil)
+ (inhibit-read-only t))
(goto-char (point-min))
(cond ((or (looking-at "No \\(manual \\)*entry for")
(looking-at "[^\n]*: nothing appropriate$"))