diff options
author | Glenn Morris <rgm@gnu.org> | 2017-04-18 19:07:28 -0400 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2017-04-18 19:07:28 -0400 |
commit | 0f8343394675480f18c121520eed2203bbe1d6ec (patch) | |
tree | b81cc99b9128b7f3b429a25e29a4b63f39abe919 /lisp/emacs-lisp | |
parent | d831312d668fbedeffe3711b13cd455309da84a1 (diff) | |
download | emacs-0f8343394675480f18c121520eed2203bbe1d6ec.tar.gz emacs-0f8343394675480f18c121520eed2203bbe1d6ec.tar.bz2 emacs-0f8343394675480f18c121520eed2203bbe1d6ec.zip |
Avoid unnecessary loading of subr-x at run-time
* lisp/doc-view.el, lisp/filenotify.el, lisp/info-look.el:
* lisp/svg.el, lisp/emacs-lisp/byte-opt.el, lisp/net/shr.el:
* lisp/textmodes/sgml-mode.el, test/lisp/dom-tests.el:
No need to load subr-x at run-time.
* lisp/gnus/nnheader.el: No need to load subr-x.
; * lisp/emacs-lisp/subr-x.el, lisp/gnus/message.el, lisp/net/nsm.el:
; Comments.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/byte-opt.el | 2 | ||||
-rw-r--r-- | lisp/emacs-lisp/subr-x.el | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el index 004f2e28653..2a240f502c4 100644 --- a/lisp/emacs-lisp/byte-opt.el +++ b/lisp/emacs-lisp/byte-opt.el @@ -185,7 +185,7 @@ (require 'bytecomp) (eval-when-compile (require 'cl-lib)) (require 'macroexp) -(require 'subr-x) +(eval-when-compile (require 'subr-x)) (defun byte-compile-log-lap-1 (format &rest args) ;; Newer byte codes for stack-ref make the slot 0 non-nil again. diff --git a/lisp/emacs-lisp/subr-x.el b/lisp/emacs-lisp/subr-x.el index 5ad482d1eac..c0e5ae5984a 100644 --- a/lisp/emacs-lisp/subr-x.el +++ b/lisp/emacs-lisp/subr-x.el @@ -30,6 +30,9 @@ ;; Do not document these functions in the lispref. ;; http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01006.html +;; NB If you want to use this library, it's almost always correct to use: +;; (eval-when-compile (require 'subr-x)) + ;;; Code: (require 'pcase) |