Fix flymake's loading of subr-x
* lisp/progmodes/flymake.el, test/lisp/progmodes/flymake-tests.el: No need to load subr-x at run-time.
This commit is contained in:
parent
b500e06f4d
commit
11bd8aa24b
2 changed files with 3 additions and 2 deletions
|
@ -48,7 +48,8 @@
|
||||||
(require 'thingatpt) ; end-of-thing
|
(require 'thingatpt) ; end-of-thing
|
||||||
(require 'warnings) ; warning-numeric-level, display-warning
|
(require 'warnings) ; warning-numeric-level, display-warning
|
||||||
(require 'compile) ; for some faces
|
(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
|
(defgroup flymake nil
|
||||||
"Universal on-the-fly syntax checker."
|
"Universal on-the-fly syntax checker."
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
;;; Code:
|
;;; Code:
|
||||||
(require 'ert)
|
(require 'ert)
|
||||||
(require 'flymake)
|
(require 'flymake)
|
||||||
(require 'subr-x) ; string-trim
|
(eval-when-compile (require 'subr-x)) ; string-trim
|
||||||
|
|
||||||
(defvar flymake-tests-data-directory
|
(defvar flymake-tests-data-directory
|
||||||
(expand-file-name "lisp/progmodes/flymake-resources"
|
(expand-file-name "lisp/progmodes/flymake-resources"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue