• Artur Malabarba's avatar
    Speed up byte-compilation and autoload generation by avoiding mode-hooks · 3ba6b3a9
    Artur Malabarba authored
    This prevents emacs-lisp-mode-hook from being run everytime an
    autoload file is generated, which can account for a fraction of
    package installation time depending on the hooks the user has
    configured.
    
    * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Use delay-mode-hooks.
    
    * lisp/emacs-lisp/autoload.el (autoload-find-file)
    (autoload-find-generated-file): Use delay-mode-hooks.
    3ba6b3a9
autoload.el 37 KB