From 9e297f35a093b4d684a0f5034293b8b8279ff29e Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Mon, 10 Sep 2018 14:55:14 -0400 Subject: [PATCH] Remove useless requires of subr-x at runtime * lisp/thread.el, lisp/net/nsm.el, lisp/erc/erc.el: Don't require subr-x at runtime. --- lisp/erc/erc.el | 2 +- lisp/net/nsm.el | 2 +- lisp/thread.el | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index 8c4da32e83e..fc510096419 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el @@ -75,7 +75,7 @@ (require 'thingatpt) (require 'auth-source) (require 'erc-compat) -(require 'subr-x) +(eval-when-compile (require 'subr-x)) (defvar erc-official-location "https://www.emacswiki.org/emacs/ERC (mailing list: erc-discuss@gnu.org)" diff --git a/lisp/net/nsm.el b/lisp/net/nsm.el index dab9003e023..9eb914e107f 100644 --- a/lisp/net/nsm.el +++ b/lisp/net/nsm.el @@ -26,7 +26,7 @@ (require 'cl-lib) (require 'rmc) ; read-multiple-choice -(require 'subr-x) +(eval-when-compile (require 'subr-x)) (defvar nsm-permanent-host-settings nil) (defvar nsm-temporary-host-settings nil) diff --git a/lisp/thread.el b/lisp/thread.el index 1c5dccf5ce4..199fac279e3 100644 --- a/lisp/thread.el +++ b/lisp/thread.el @@ -28,7 +28,7 @@ (require 'cl-lib) (require 'backtrace) (require 'pcase) -(require 'subr-x) +(eval-when-compile (require 'subr-x)) ;;;###autoload (defun thread-handle-event (event) -- 2.39.2