From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Othacehe Subject: bug#35542: Installer does not display full backtrace on error Date: Sat, 04 May 2019 11:43:28 +0200 Message-ID: <87y33msgmy.fsf@gmail.com> References: <20190503085927.ib5gudynudeknclm@pelzflorian.localdomain> <87ef5fetnv.fsf@gnu.org> <8736lvka3k.fsf@gmail.com> <20190503174633.otzjizlfjhr4bkca@pelzflorian.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:54856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMrDA-0005dz-Ss for bug-guix@gnu.org; Sat, 04 May 2019 05:44:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMrD8-0004IP-Vj for bug-guix@gnu.org; Sat, 04 May 2019 05:44:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36850) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hMrD8-0004IF-3i for bug-guix@gnu.org; Sat, 04 May 2019 05:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hMrD7-0001zK-UA for bug-guix@gnu.org; Sat, 04 May 2019 05:44:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <20190503174633.otzjizlfjhr4bkca@pelzflorian.localdomain> o--text follows this line-- List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: "pelzflorian (Florian Pelz)" Cc: 35542@debbugs.gnu.org --=-=-= Content-Type: text/plain Hello, > I believe I read about Guile error messages not doing line wrapping in > terminals on the Guix or Guile mailing lists recently, but I cannot > find it. Proper line wrapping may be the better solution. In fact the textbox where the backtrace is displayed isn't doing any line wrapping. The attached patch fixes the issue. Thanks, Mathieu --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-installer-Reflow-run-file-textbox-page-text.patch >From f68ded2f134d55c20f98300c0514c4fc18cd1d50 Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Sat, 4 May 2019 11:33:33 +0200 Subject: [PATCH] installer: Reflow run-file-textbox-page text. * gnu/installer/newt/page.scm (run-file-textbox-page): Reflow FILE-TEXT so that it fits horizontally in the textbox. --- gnu/installer/newt/page.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/installer/newt/page.scm b/gnu/installer/newt/page.scm index 3173d54737..8a32c403df 100644 --- a/gnu/installer/newt/page.scm +++ b/gnu/installer/newt/page.scm @@ -559,7 +559,12 @@ ITEMS when 'Ok' is pressed." '()))))) (form (make-form))) - (set-textbox-text file-textbox file-text) + (set-textbox-text file-textbox + (receive (_w _h text) + (reflow-text file-text + file-textbox-width + 0 0) + text)) (add-form-to-grid grid form #t) (make-wrapped-grid-window grid title) -- 2.17.1 --=-=-=--