Skip to content

Commit 04d9d4b

Browse files
committed
compat: Load subr-x for Emacs < 28 compatibility
* lisp/org-compat.el: Require subr-x at compile time to define string-trim for older Emacs versions. Before Emacs 28.1, string-trim was defined in subr-x, leading to 'make single' complaining about an undefined string-trim in the recently added org-string-clean-whitespace. Reported-by: Ihor Radchenko <yantar92@gmail.com> Link: https://list.orgmode.org/8735c01aho.fsf@localhost
1 parent 233ad88 commit 04d9d4b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lisp/org-compat.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
(require 'seq)
3535
(require 'org-macs)
3636

37+
(eval-when-compile (require 'subr-x)) ; Emacs < 28
38+
3739
;; We rely on org-compat when generating Org version. Checking Org
3840
;; version here will interfere with Org build process.
3941
;; (org-assert-version)

0 commit comments

Comments
 (0)