branch: externals/auctex
commit e3d0a7dca5840a240a6d15b5adc4ff08eac7c496
Author: Arash Esbati <ar...@gnu.org>
Commit: Arash Esbati <ar...@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 642c7a9ae2..8cb9699d42 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