From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: Guix search, colors and INSIDE_EMACS Date: Tue, 4 Feb 2020 17:51:06 +0100 Message-ID: References: <87blqeml4w.fsf@ambrevar.xyz> <87tv46qqlf.fsf@elephly.net> <87d0aul354.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:42084) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iz1Pz-0003rt-Ly for guix-devel@gnu.org; Tue, 04 Feb 2020 11:51:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iz1Py-0007nX-GD for guix-devel@gnu.org; Tue, 04 Feb 2020 11:51:19 -0500 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:38465) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iz1Py-0007kp-BR for guix-devel@gnu.org; Tue, 04 Feb 2020 11:51:18 -0500 Received: by mail-qt1-x82a.google.com with SMTP id c24so14851199qtp.5 for ; Tue, 04 Feb 2020 08:51:18 -0800 (PST) In-Reply-To: <87d0aul354.fsf@ambrevar.xyz> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: Guix Devel On Tue, 4 Feb 2020 at 17:39, Pierre Neidhardt wrote: > In my experience, colors worked perfectly before the INSIDE_EMACS switch > was introduced. I don't understand what this change tried to fix. > Maybe one fix broke something else. INSIDE_EMACS fixes the terminals that render OSC character incorrectly. It appears in Emacs because there is a bug -- should be fixed in the next release, not sure. The other terminal deal correctly with this special character; except if they are configured the bad way as 'terminal-mate' on Trisquel [1]. [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=38940 INSIDE_EMACS turn off 'link' and 'highlight'. Another modification I did because I was annoyed. But it is broken because the highlight does not work anymore neither. --8<---------------cut here---------------start------------->8--- modified guix/ui.scm @@ -1625,7 +1625,7 @@ DURATION-RELATION with the current time." (let* ((file (generation-file-name profile number)) (link (if (supports-hyperlinks?) (cut file-hyperlink file <>) - identity)) + (cut format #f (G_ "~a~%file: ~a") <> file))) (header (format #f (link (highlight (G_ "Generation ~a\t~a"))) number (date->string --8<---------------cut here---------------end--------------->8--- Cheers, simon