From: Alex Branham Date: Tue, 30 Oct 2018 21:59:05 +0000 (-0500) Subject: Require subr-x at compile time () X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~415 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d84d55e6e4c239faafc4f4de5e0295a8b99e15af;p=emacs.git Require subr-x at compile time () 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 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 297d6f4f0ea..a234e17c0b1 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/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)