[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat 948535b0c7 1/4: Define make-prop-match in compat
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat 948535b0c7 1/4: Define make-prop-match in compat-tests.el if missing |
Date: |
Tue, 30 Aug 2022 09:57:24 -0400 (EDT) |
branch: externals/compat
commit 948535b0c758da5f00b3bc18af205c3ef933630a
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Define make-prop-match in compat-tests.el if missing
This is necessary since there are two separate 'make-prop-match'
implementations that cannot be referred to directly using a realname.
An alternative might be to define a compile-time cond and insert the
right code ad the right time.
---
compat-tests.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/compat-tests.el b/compat-tests.el
index 85ca26d4fa..6875db1ed5 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -1862,6 +1862,12 @@ being compared against."
(ought three three one.5 two one three)
(ought three three one.5 three two one)))
+(unless (fboundp 'make-prop-match)
+ (defalias 'make-prop-match
+ (if (version< emacs-version "26.1")
+ #'compat--make-prop-match-with-vector
+ #'compat--make-prop-match-with-record)))
+
(ert-deftest text-property-search-forward ()
(when (fboundp 'text-property-search-forward)
(with-temp-buffer