Speed up byte-compilation and autoload generation by avoiding mode-hooks
commit3ba6b3a9c1e0565ee5f45f11a9c09702a24f8453
authorArtur Malabarba <bruce.connor.am@gmail.com>
Sun, 12 Apr 2015 02:23:35 +0000 (12 03:23 +0100)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Sun, 12 Apr 2015 02:57:59 +0000 (12 03:57 +0100)
tree3c042822631e92cfe0876f2f3bed59ff0abf0240
parent50ddc67739d14c4371e11ba52b91308efe21b3db
Speed up byte-compilation and autoload generation by avoiding mode-hooks

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.
lisp/emacs-lisp/autoload.el
lisp/emacs-lisp/bytecomp.el