From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: Guix search, colors and INSIDE_EMACS Date: Tue, 11 Feb 2020 19:09:43 +0100 Message-ID: References: <87blqeml4w.fsf@ambrevar.xyz> <87tv46qqlf.fsf@elephly.net> <878slamdzp.fsf@ambrevar.xyz> <87r1z13ap2.fsf@ambrevar.xyz> <87v9od2oyw.fsf@gnu.org> <87ftfhkxzt.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]:59489) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1Zyv-0003b8-DB for guix-devel@gnu.org; Tue, 11 Feb 2020 13:09:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1Zyu-0003Lf-4s for guix-devel@gnu.org; Tue, 11 Feb 2020 13:09:57 -0500 Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]:45937) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j1Zyt-0003JW-CN for guix-devel@gnu.org; Tue, 11 Feb 2020 13:09:55 -0500 Received: by mail-qt1-x831.google.com with SMTP id d9so8627602qte.12 for ; Tue, 11 Feb 2020 10:09:55 -0800 (PST) In-Reply-To: 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: Jack Hill Cc: Guix Devel Hi Jack, On Tue, 11 Feb 2020 at 17:37, Jack Hill wrote: > I've been trying to follow this discussion as I have observed problems > with the linking characters in eshell. However, it seems I am having > seeing different behavior than others. In both Emacs 26.3 and Emacs-next > 27.0.50, running as `emacs -q`, INSIDE_EMACS is not being set in eshell > so, guix describe looks like > > guix describe > ]8;;file://lib-its13/var/guix/profiles/per-user/install/current-guix-66-link\Generation 66 Feb 07 2020 10:38:56]8;;\ (current) We are discussing the character ]8;; which is the special character OSC. The terminal emulator should either provide an hyperlink, either do nothing and ignore what is inside the special character. As you see, the terminal emulator does not render it correctly. Setting INSIDE_EMACS turn off that. If it is by default is another story. :-) However, I thought that it was fixed in Emacs 27. Ouch! > commit: ]8;;https://git.savannah.gnu.org/cgit/guix.git/commit/?id=232f344f9b9dc775fe8f9c7db2e45ba20431b071\232f344f9b9dc775fe8f9c7db2e45ba20431b071]8;;\ Note that the OSC also appears in some 'guix system' subcommand if I remember correctly. > In shell and term mode, INSIDE_EMACS is being set, and everything looks fine > (although without any highlighting). You mean set by default, right? However, note that '*shell*' render correctly the highlighting (Generation in bold face) so the OSC could be turned off and the highlight on. All the best, simon