branch: externals/compat
commit 948535b0c758da5f00b3bc18af205c3ef933630a
Author: Philip Kaludercic <[email protected]>
Commit: Philip Kaludercic <[email protected]>

    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

Reply via email to