[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/idris-mode e3d1266db6 2/7: Fix more 'bounds' to spec in ne
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/idris-mode e3d1266db6 2/7: Fix more 'bounds' to spec in newer IDE protocols |
Date: |
Wed, 5 Jan 2022 05:58:10 -0500 (EST) |
branch: elpa/idris-mode
commit e3d1266db6765bf2e1a24fb4e86090a8bbc12a72
Author: Ohad Kammar <ohad.kammar@ed.ac.uk>
Commit: Ohad Kammar <ohad.kammar@ed.ac.uk>
Fix more 'bounds' to spec in newer IDE protocols
---
idris-warnings.el | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/idris-warnings.el b/idris-warnings.el
index bec2ad1a53..927d6a9cc8 100644
--- a/idris-warnings.el
+++ b/idris-warnings.el
@@ -81,10 +81,18 @@ WARNING is of form (filename (startline startcolumn)
(endline endcolumn) message
As of 20140807 (Idris 0.9.14.1-git:abee538) (endline endcolumn) is mostly the
same as (startline startcolumn)
"
(cl-destructuring-bind (filename sl1 sl2 message spans) warning
- (let ((startline (nth 0 sl1))
- (startcol (1- (nth 1 sl1)))
- (endline (nth 0 sl2))
- (endcol (1- (nth 1 sl2))))
+ (let ((startline (if (>=-protocol-version 2 1)
+ (1+ (nth 0 sl1))
+ (nth 0 sl1)))
+ (startcol (if (>=-protocol-version 2 1)
+ (nth 1 sl1)
+ (1- (nth 1 sl1))))
+ (endline (if (>=-protocol-version 2 1)
+ (1+ (nth 0 sl2))
+ (nth 0 sl2)))
+ (endcol (if (>=-protocol-version 2 1)
+ (nth 1 sl2)
+ (1- (nth 1 sl2)))))
(push (list filename startline startcol message spans)
idris-raw-warnings)
(let* ((fullpath (concat (file-name-as-directory
idris-process-current-working-directory)
filename))
- [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 <=
- [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, 2022/01/05