]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix flymake's loading of subr-x
authorGlenn Morris <rgm@gnu.org>
Fri, 20 Oct 2017 17:07:30 +0000 (13:07 -0400)
committerGlenn Morris <rgm@gnu.org>
Fri, 20 Oct 2017 17:07:30 +0000 (13:07 -0400)
* lisp/progmodes/flymake.el, test/lisp/progmodes/flymake-tests.el:
No need to load subr-x at run-time.

lisp/progmodes/flymake.el
test/lisp/progmodes/flymake-tests.el

index 9c546fd9667e5c36be211b69597799d735e54d7a..3c588f02fa6d149cc6b9e512d2bc76757327f521 100644 (file)
@@ -48,7 +48,8 @@
 (require 'thingatpt) ; end-of-thing
 (require 'warnings) ; warning-numeric-level, display-warning
 (require 'compile) ; for some faces
-(require 'subr-x) ; when-let*, if-let*, hash-table-keys, hash-table-values
+;; when-let*, if-let*, hash-table-keys, hash-table-values:
+(eval-when-compile (require 'subr-x))
 
 (defgroup flymake nil
   "Universal on-the-fly syntax checker."
index eddd964ad14df43bf38b21f7717f0b41b0e7b9f7..cfa810053ca077e24362e77bf0256727987a1b19 100644 (file)
@@ -24,7 +24,7 @@
 ;;; Code:
 (require 'ert)
 (require 'flymake)
-(require 'subr-x) ; string-trim
+(eval-when-compile (require 'subr-x)) ; string-trim
 
 (defvar flymake-tests-data-directory
   (expand-file-name "lisp/progmodes/flymake-resources"