branch: externals/mmm-mode
commit 5fce57da7c27bb48dee9272a8d10b6a7b506d8c3
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
Fix Emacs 26+
---
mmm-compat.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mmm-compat.el b/mmm-compat.el
index e3da616..c594575 100644
--- a/mmm-compat.el
+++ b/mmm-compat.el
@@ -118,7 +118,8 @@ This text should not be modified."
;;}}}
;;{{{ Emacs < 26 requires namespaced CL functions
-(when (< emacs-major-version 26)
+(if (>= emacs-major-version 26)
+ (defalias 'mmm-mapcan 'mapcan)
(require 'cl-lib)
(defalias 'mmm-mapcan 'cl-mapcan))