auctex-diffs
[Top][All Lists]
Advanced

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

master e3d0a7dc 1/3: * latex.el: Require subr-x.el during byte-compilati


From: Arash Esbati
Subject: master e3d0a7dc 1/3: * latex.el: Require subr-x.el during byte-compilation.
Date: Fri, 18 Aug 2023 06:29:27 -0400 (EDT)

branch: master
commit e3d0a7dca5840a240a6d15b5adc4ff08eac7c496
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    * latex.el: Require subr-x.el during byte-compilation.
---
 latex.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/latex.el b/latex.el
index 642c7a9a..8cb9699d 100644
--- a/latex.el
+++ b/latex.el
@@ -33,7 +33,10 @@
 (require 'tex-ispell)
 (require 'latex-flymake)
 (eval-when-compile
-  (require 'cl-lib))
+  (require 'cl-lib)
+  ;; Require subr-x.el for `string-trim' which wasn't autoloaded:
+  (when (< emacs-major-version 29)
+    (require 'subr-x)))
 
 ;; Silence the compiler for functions:
 (declare-function outline-level "ext:outline"



reply via email to

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