Subject: bug#43460: 26.3; Package install fails if read-only-mode hooked to find-file

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 17 Sep 2020 18:03:21 +0200

Pablo Aguado <[email-masked]> writes:

> I have set the following to always open files in read-only-mode:
>     (add-hook 'find-file-hook 'read-only-mode)
>
> When I tried to install a new package through package-install, I got
> (buffer-read-only #<buffer adaptive-wrap-autoloads.el>)

I've now made package install autoload generation ignore find-file-hook
in Emacs 28, which seems to fix the problem there.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no