[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/flymake-guile 56e161d368 05/11: improve diagnostic column
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/flymake-guile 56e161d368 05/11: improve diagnostic column position |
Date: |
Tue, 5 Sep 2023 04:01:04 -0400 (EDT) |
branch: elpa/flymake-guile
commit 56e161d368803b2aa7628e21c4bfd1b1ba1603a7
Author: Distopico <distopico@riseup.net>
Commit: Distopico <distopico@riseup.net>
improve diagnostic column position
---
flymake-guile.el | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/flymake-guile.el b/flymake-guile.el
index 4bd6c698ed..fa1770459f 100644
--- a/flymake-guile.el
+++ b/flymake-guile.el
@@ -65,6 +65,8 @@ The list of supported warning types/levels can be found by
running
(defvar flymake-guile--diag-lnum-rx
":\\([[:digit:]]+\\):\\([[:digit:]]+\\):\s")
+(defvar flymake-guile--fix-col-rule-rx "unbound variable")
+
(defun flymake-guile--project-path ()
"Determine project paths from geiser configuration."
(when-let ((geiser-repl-add-project-paths)
@@ -124,7 +126,14 @@ Also verify if the `STACK-FILE' and the source file are te
same."
(setq lnum "0")
(setq cnum "0"))
(cons (cons (string-to-number lnum)
- (string-to-number cnum))
+ (let ((col (string-to-number cnum)))
+ (if (and (> col 0)
+ ;; The column in this type of errors are not
+ ;; consistent And will mark all the lines in a
+ ;; multi-line definition.
+ (string-match-p flymake-guile--fix-col-rule-rx text))
+ (+ col 1)
+ (- col 1))))
text)))
(flymake-quickdef-backend flymake-guile-backend
- [nongnu] branch elpa/flymake-guile created (now 3fab1652a4), ELPA Syncer, 2023/09/05
- [nongnu] elpa/flymake-guile d06fe2827a 03/11: fix warning list as arguments, ELPA Syncer, 2023/09/05
- [nongnu] elpa/flymake-guile 08a3c4b488 04/11: bump version to 0.2, ELPA Syncer, 2023/09/05
- [nongnu] elpa/flymake-guile 7bca2c8b09 08/11: Update guix.scm hash and version, ELPA Syncer, 2023/09/05
- [nongnu] elpa/flymake-guile 4a094bf3c2 09/11: Add .elpaignore, ELPA Syncer, 2023/09/05
- [nongnu] elpa/flymake-guile e31c1e8b6a 07/11: Update example and coumentation, ELPA Syncer, 2023/09/05
- [nongnu] elpa/flymake-guile cf3fa333a8 10/11: Remove flymake-quickdef dependency, ELPA Syncer, 2023/09/05
- [nongnu] elpa/flymake-guile 13750c2785 01/11: add flymake-guile, ELPA Syncer, 2023/09/05
- [nongnu] elpa/flymake-guile c46528e752 06/11: Update defcustom types and values, ELPA Syncer, 2023/09/05
- [nongnu] elpa/flymake-guile d1ae59f7d6 02/11: add guix definition, ELPA Syncer, 2023/09/05
- [nongnu] elpa/flymake-guile 56e161d368 05/11: improve diagnostic column position,
ELPA Syncer <=
- [nongnu] elpa/flymake-guile 3fab1652a4 11/11: Update guile version hash, ELPA Syncer, 2023/09/05