emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master abded5f 14/21: Check for compositions on old Emacsen.


From: Jackson Ray Hamilton
Subject: [elpa] master abded5f 14/21: Check for compositions on old Emacsen.
Date: Fri, 23 Dec 2016 20:27:52 +0000 (UTC)

branch: master
commit abded5f8b0eb4b56753b97fab742f873f0481beb
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>

    Check for compositions on old Emacsen.
    
    Prettify Symbols Mode used to use the `composition' text property for
    prettification.
---
 context-coloring-test.el |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/context-coloring-test.el b/context-coloring-test.el
index 79e5f23..fef12d5 100644
--- a/context-coloring-test.el
+++ b/context-coloring-test.el
@@ -347,8 +347,12 @@ signaled."
 (when (fboundp 'prettify-symbols-mode)
 
   (defun context-coloring-test-assert-prettify-symbols-text-properties ()
-    (unless (and (get-text-property 2 'prettify-symbols-start)
-                 (get-text-property 2 'prettify-symbols-end))
+    (unless (cond
+             ((version< emacs-version "25.0")
+              (get-text-property 2 'composition))
+             (t
+              (and (get-text-property 2 'prettify-symbols-start)
+                   (get-text-property 2 'prettify-symbols-end))))
       (ert-fail "Expected buffer to have it's symbols prettified, but it 
didn't.")))
 
   (context-coloring-test-deftest prettify-symbols-enabled-before



reply via email to

[Prev in Thread] Current Thread [Next in Thread]