[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55424] [PATCH 006/602] diagnostics: Fix typo about 0-indexed COL in
From: |
Maxim Cournoyer |
Subject: |
[bug#55424] [PATCH 006/602] diagnostics: Fix typo about 0-indexed COL in location. |
Date: |
Sun, 15 May 2022 00:36:33 -0400 |
* guix/diagnostics.scm (source-properties->location): The location column is
0-indexed, not 1-indexed (the same as in source-properties, so the code is
accurate).
---
guix/diagnostics.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/guix/diagnostics.scm b/guix/diagnostics.scm
index bf1ced8140..9f0d558f2f 100644
--- a/guix/diagnostics.scm
+++ b/guix/diagnostics.scm
@@ -232,7 +232,7 @@ (define (source-properties->location loc)
by Guile's `source-properties', `frame-source', `current-source-location',
etc."
;; In accordance with the GCS, start line and column numbers at 1. Note
- ;; that unlike LINE and `port-column', COL is actually 1-indexed here...
+ ;; that unlike LINE and `port-column', COL is actually 0-indexed here...
(match loc
((('line . line) ('column . col) ('filename . file)) ;common case
(and file line col
--
2.36.0
- [bug#55424] [PATCH 000/602] Purge Python 2 packages, Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 001/602] packages: Fix typo in package-superseded doc., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 004/602] utils: Add a 'delete-expression' procedure., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 002/602] etc/committer: Prefix (sxml xpath) symbols to avoid name conflict., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 003/602] etc/committer: Teach it how to commit package removal., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 005/602] utils: Add a %guix-source-root-directory procedure., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 007/602] gnu: Remove python-pytest-runner-2., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 033/602] gnu: Remove python2-nose-timer., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 006/602] diagnostics: Fix typo about 0-indexed COL in location.,
Maxim Cournoyer <=
- [bug#55424] [PATCH 008/602] gnu: Remove python2-langkit., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 009/602] gnu: Remove graphios., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 034/602] gnu: Remove python2-pytest-catchlog., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 084/602] gnu: Remove python2-pygpgme., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 080/602] gnu: Remove python2-tmx., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 092/602] gnu: Remove python2-tegaki-recognize., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 096/602] gnu: Remove python2-mailmanclient., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 103/602] gnu: Remove python2-ipy., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 104/602] gnu: Remove sala., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 085/602] gnu: pius: Update to 3.0.0., Maxim Cournoyer, 2022/05/15