summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/autoload.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-09-17 18:02:44 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-09-17 18:02:44 +0200
commit64ba14f3661f163ebac431293c92e8b22bb31f9c (patch)
tree850b30512857b4cb64d35bf02ca57affccde2681 /lisp/emacs-lisp/autoload.el
parentf7e68759d033e2a503f47cd7d97b760bd92e375f (diff)
downloademacs-64ba14f3661f163ebac431293c92e8b22bb31f9c.tar.gz
Make package install not bug out on weird stuff in find-file-hooks
* lisp/emacs-lisp/autoload.el (autoload-find-generated-file): Users may have read-only-mode in find-file-hooks (bug#43460) so just disable all the hooks here.
Diffstat (limited to 'lisp/emacs-lisp/autoload.el')
-rw-r--r--lisp/emacs-lisp/autoload.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el
index 2eef4512009..80ac90895af 100644
--- a/lisp/emacs-lisp/autoload.el
+++ b/lisp/emacs-lisp/autoload.el
@@ -258,6 +258,7 @@ expression, in which case we want to handle forms differently."
"Visit the autoload file for the current buffer, and return its buffer."
(let ((enable-local-variables :safe)
(enable-local-eval nil)
+ (find-file-hooks nil)
(delay-mode-hooks t)
(file (autoload-generated-file)))
;; We used to use `raw-text' to read this file, but this causes