]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix "M-x man" when there's no 'man' program on PATH
authorEli Zaretskii <eliz@gnu.org>
Sat, 1 Dec 2018 09:30:41 +0000 (11:30 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 1 Dec 2018 09:30:41 +0000 (11:30 +0200)
* lisp/man.el (Man-bgproc-sentinel): Make sure the process
buffer is not read-only when inserting a message into it.
(Bug#33510)

lisp/man.el

index c62a61c708d05fa3f68fa8a2efd3016e2d469d92..3a5fd5d21cb86629037ed99c28b79779e26d0f25 100644 (file)
@@ -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$"))