tag: 1.2
commit 746505fb1deba50913a184fb95a01bb35bb11efd
Author: Alex Branham <[email protected]>
Commit: João Távora <[email protected]>

    Require subr-x at compile time (#139)
    
    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.
---
 eglot.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/eglot.el b/eglot.el
index 297d6f4..a234e17 100644
--- a/eglot.el
+++ b/eglot.el
@@ -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)

Reply via email to