Fix up previous autoload-find-generated-file change

* lisp/emacs-lisp/autoload.el (autoload-find-generated-file): Use
the correct name for find-file-hook.
This commit is contained in:
Lars Ingebrigtsen 2020-09-17 18:09:01 +02:00
parent 64ba14f366
commit 5e031c5e70

View file

@ -258,7 +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)
(find-file-hook nil)
(delay-mode-hooks t)
(file (autoload-generated-file)))
;; We used to use `raw-text' to read this file, but this causes