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

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

[nongnu] elpa/dart-mode f5962c3 080/192: Make version check work in Emac


From: ELPA Syncer
Subject: [nongnu] elpa/dart-mode f5962c3 080/192: Make version check work in Emacs 25.
Date: Sun, 29 Aug 2021 11:01:54 -0400 (EDT)

branch: elpa/dart-mode
commit f5962c38a55ef30763e18f7e78f083eaa69ea68f
Author: Philipp Stephani <phst@google.com>
Commit: Philipp Stephani <phst@google.com>

    Make version check work in Emacs 25.
    
    Use the version comparison functions for a more future-proof version
    check.  While there, also replace the other version comparison by a
    similar test.
---
 dart-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dart-mode.el b/dart-mode.el
index 36623fe..07bc3da 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -59,10 +59,10 @@
     (require 'cl)))
 
 (eval-and-compile
-  (if (and (= emacs-major-version 24) (>= emacs-minor-version 4))
+  (if (version<= "24.4" emacs-version)
     (require 'cl)))
 
-(if (and (= emacs-major-version 24) (< emacs-minor-version 3))
+(if (version< emacs-version "24.3")
     (unless (fboundp 'cl-set-difference)
       (defalias 'cl-set-difference 'set-difference)))
 



reply via email to

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