[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/07: ui: ‘display-hint’ checks column number for the right port.
From: |
guix-commits |
Subject: |
02/07: ui: ‘display-hint’ checks column number for the right port. |
Date: |
Sat, 23 Nov 2024 10:40:06 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 2b8d612f4ea8d0a681c7865a84c190533de3d2f3
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sat Nov 23 16:01:44 2024 +0100
ui: ‘display-hint’ checks column number for the right port.
This fixes (rather: works around) something like:
$ guix import pypi nipype -r >/dev/null
[…]
hint: Backtrace:
[…]
344:42 3 (display-hint "This indicates that the\npackage is a…" . #)
In ice-9/boot-9.scm:
1747:15 2 (with-exception-handler #<procedure 7f9ee8e5f120 at ic…> …)
In guix/build/syscalls.scm:
2334:35 1 (_)
2323:8 0 (terminal-window-size _)
guix/build/syscalls.scm:2323:8: In procedure terminal-window-size:
In procedure terminal-window-size: Inappropriate ioctl for device
* guix/ui.scm (display-hint): Pass PORT to ‘terminal-columns’.
Change-Id: Ica0096aee5e6b2c19814ae5d71de9ffe9ab32430
---
guix/ui.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/guix/ui.scm b/guix/ui.scm
index 447550635c..eba12c8616 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -341,7 +341,7 @@ other objects that must match the 'format' escapes in
MESSAGE."
(display (colorize (G_ "hint: ")) port)
(display
;; XXX: We should arrange so that the initial indent is wider.
- (parameterize ((%text-width (max 15 (- (terminal-columns) 5))))
+ (parameterize ((%text-width (max 15 (- (terminal-columns port) 5))))
(texi->plain-text (match arguments
(() (format #f message))
(_ (apply format #f message
- branch master updated (1eead56e2f -> 8d6389b866), guix-commits, 2024/11/23
- 02/07: ui: ‘display-hint’ checks column number for the right port.,
guix-commits <=
- 03/07: gnu: Add powertop-service-type., guix-commits, 2024/11/23
- 01/07: gnu: guix: Update to 1eead56., guix-commits, 2024/11/23
- 04/07: import: cpan: Support recursive imports., guix-commits, 2024/11/23
- 06/07: pack: Add support for AppImage pack format., guix-commits, 2024/11/23
- 05/07: gnu: appimage: New packages for the appimage runtime., guix-commits, 2024/11/23
- 07/07: news: Add entry for guix pack’s AppImage format, guix-commits, 2024/11/23