]> git.eshelyaron.com Git - emacs.git/commitdiff
Require subr-x at compile time ()
authorAlex Branham <alex.branham@gmail.com>
Tue, 30 Oct 2018 21:59:05 +0000 (16:59 -0500)
committerJoão Távora <joaotavora@gmail.com>
Tue, 30 Oct 2018 21:59:05 +0000 (21:59 +0000)
if-let and when-let are macros that the byte compiler can expand
at compile time. No need to require subr-x at run time.

* eglot.el (subr-x): Require only when compiling.

GitHub-reference: https://github.com/joaotavora/eglot/issues/139

lisp/progmodes/eglot.el

index 297d6f4f0ea499271e36c1cf400aeef5a2b0c609..a234e17c0b1297ca32ad55ec8717b1d3ac57e361 100644 (file)
@@ -65,7 +65,8 @@
 (require 'warnings)
 (require 'flymake)
 (require 'xref)
-(require 'subr-x)
+(eval-when-compile
+  (require 'subr-x))
 (require 'jsonrpc)
 (require 'filenotify)
 (require 'ert)