emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 64ba14f: Make package install not bug out on weird stuff in find-


From: Lars Ingebrigtsen
Subject: master 64ba14f: Make package install not bug out on weird stuff in find-file-hooks
Date: Thu, 17 Sep 2020 12:02:53 -0400 (EDT)

branch: master
commit 64ba14f3661f163ebac431293c92e8b22bb31f9c
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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.
---
 lisp/emacs-lisp/autoload.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el
index 2eef451..80ac908 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]