[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/idris-mode fce35c4349 3/7: Move idris-protocol-version var
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/idris-mode fce35c4349 3/7: Move idris-protocol-version vars and access function to common-utils |
Date: |
Wed, 5 Jan 2022 05:58:10 -0500 (EST) |
branch: elpa/idris-mode
commit fce35c43492493c979d56a9d4f585c4173f4e80b
Author: Ohad Kammar <ohad.kammar@ed.ac.uk>
Commit: Ohad Kammar <ohad.kammar@ed.ac.uk>
Move idris-protocol-version vars and access function to common-utils
to avoid circular module dependency
---
idris-common-utils.el | 8 ++++++++
inferior-idris.el | 8 --------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/idris-common-utils.el b/idris-common-utils.el
index d08b451acc..be9b8c4382 100644
--- a/idris-common-utils.el
+++ b/idris-common-utils.el
@@ -402,4 +402,12 @@ relative to SRC-DIR"
(when (file-exists-p lidr)
(make-link lidr))))))
+(defvar idris-protocol-version 0 "The protocol version")
+(defvar idris-protocol-version-minor 0 "The protocol minor version")
+
+(defun >=-protocol-version (major minor)
+ (or (> idris-protocol-version major)
+ (and (>= idris-protocol-version major)
+ (>= idris-protocol-version-minor minor))))
+
(provide 'idris-common-utils)
diff --git a/inferior-idris.el b/inferior-idris.el
index 4e70d57a47..7f73923fc6 100644
--- a/inferior-idris.el
+++ b/inferior-idris.el
@@ -66,14 +66,6 @@
(defvar idris-connection nil
"The Idris connection.")
-(defvar idris-protocol-version 0 "The protocol version")
-(defvar idris-protocol-version-minor 0 "The protocol minor version")
-
-(defun >=-protocol-version (major minor)
- (or (> idris-protocol-version major)
- (and (>= idris-protocol-version major)
- (>= idris-protocol-version-minor minor))))
-
(defun idris-version-hook-function (event)
(pcase event
(`(:protocol-version ,version ,minor)
- [nongnu] elpa/idris-mode updated (2e4b5c6a97 -> edc2f60c75), ELPA Syncer, 2022/01/05
- [nongnu] elpa/idris-mode e3d1266db6 2/7: Fix more 'bounds' to spec in newer IDE protocols, ELPA Syncer, 2022/01/05
- [nongnu] elpa/idris-mode 8b6f76da89 6/7: Merge remote-tracking branch 'origin/main' into ide-messages, ELPA Syncer, 2022/01/05
- [nongnu] elpa/idris-mode d9aa6cb9d5 4/7: [ CI ] When refreshing package contexts need to intialise in batch mode., ELPA Syncer, 2022/01/05
- [nongnu] elpa/idris-mode 7d834ebbf8 5/7: Merge pull request #548 from jfdm/fix-emacs-testing, ELPA Syncer, 2022/01/05
- [nongnu] elpa/idris-mode 8d69b70432 1/7: Update semantic highlighting code in line with the update IDE protocol, ELPA Syncer, 2022/01/05
- [nongnu] elpa/idris-mode edc2f60c75 7/7: Merge pull request #547 from ohad/ide-messages, ELPA Syncer, 2022/01/05
- [nongnu] elpa/idris-mode fce35c4349 3/7: Move idris-protocol-version vars and access function to common-utils,
ELPA Syncer <=