emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 1.2 746505f 072/101: Require subr-x at compile time (#139)


From: Christian Johansson
Subject: [elpa] 1.2 746505f 072/101: Require subr-x at compile time (#139)
Date: Thu, 29 Apr 2021 15:09:03 -0400 (EDT)

tag: 1.2
commit 746505fb1deba50913a184fb95a01bb35bb11efd
Author: Alex Branham <jabranham@users.noreply.github.com>
Commit: João Távora <joaotavora@gmail.com>

    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

[Prev in Thread] Current Thread [Next in Thread]