[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/07: diagnostics: Turn diagnostic locations into hyperlinks.
From: |
guix-commits |
Subject: |
07/07: diagnostics: Turn diagnostic locations into hyperlinks. |
Date: |
Fri, 8 Apr 2022 18:01:04 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 13307c198bcd1fbd9364bcb7ef4c6d19d287cf2c
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Apr 1 16:54:52 2022 +0200
diagnostics: Turn diagnostic locations into hyperlinks.
* guix/diagnostics.scm (print-diagnostic-prefix): Use
'location->hyperlink' when 'supports-hyperlinks?' returns true.
---
guix/diagnostics.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/guix/diagnostics.scm b/guix/diagnostics.scm
index 2b8cee1ccb..bf1ced8140 100644
--- a/guix/diagnostics.scm
+++ b/guix/diagnostics.scm
@@ -204,7 +204,10 @@ macro-expansion time."
(gettext prefix %gettext-domain))))
(if location
(format (guix-warning-port) "~a: ~a"
- (location-color (location->string location))
+ (location-color
+ (if (supports-hyperlinks? (guix-warning-port))
+ (location->hyperlink location)
+ (location->string location)))
(prefix-color prefix))
(format (guix-warning-port) "~:[~*~;guix ~a: ~]~a"
(program-name) (program-name)
- branch master updated (20645d8467 -> 13307c198b), guix-commits, 2022/04/08
- 02/07: doc: Build an empty index if the manual is missing., guix-commits, 2022/04/08
- 04/07: gnu: emacs-geiser: Add dependency on Project., guix-commits, 2022/04/08
- 01/07: doc: Allow different translations for 'guix-cookbook' and 'guix-manual'., guix-commits, 2022/04/08
- 03/07: gnu: lsof: Fix invalid G-Expression., guix-commits, 2022/04/08
- 06/07: ui: Move 'location->hyperlink' to (guix diagnostics)., guix-commits, 2022/04/08
- 07/07: diagnostics: Turn diagnostic locations into hyperlinks.,
guix-commits <=
- 05/07: ui: Move hyperlink facilities to (guix colors)., guix-commits, 2022/04/08