From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: Guix search, colors and INSIDE_EMACS Date: Wed, 12 Feb 2020 17:30:36 +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> <87k14rzzzj.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]:35128) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1uuX-0007nR-EB for guix-devel@gnu.org; Wed, 12 Feb 2020 11:30:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1uuW-0001Ig-Eu for guix-devel@gnu.org; Wed, 12 Feb 2020 11:30:49 -0500 Received: from mail-qk1-x72c.google.com ([2607:f8b0:4864:20::72c]:46749) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j1uuW-0001GH-A7 for guix-devel@gnu.org; Wed, 12 Feb 2020 11:30:48 -0500 Received: by mail-qk1-x72c.google.com with SMTP id u124so2097654qkh.13 for ; Wed, 12 Feb 2020 08:30:48 -0800 (PST) In-Reply-To: <87k14rzzzj.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 Hi, On Wed, 12 Feb 2020 at 14:39, Pierre Neidhardt wrote: > zimoun writes: > > However, I thought that it was fixed in Emacs 27. Ouch! > I tried with Guix' emacs-next and I get the same problem. Ok, I should have misread some news. :-) Well, I am not following what we are talking about. There is 2 issues: 1. By default with Emacs, *shell* is doing right and EShell not. Is it coming from Emacs or other? Could the Emacs from Guix do always the right thing? Other said, *shell* sets by default INSIDE_EMACS to "26.3,comint". And EShell does nothing by default. Is it Guix specific or Emacs specific? 2. In Guix, the environment variable INSIDE_EMACS escapes the special character OSC (and turns off the colour face). So, Guix commands can change their behaviour depending if INSIDE_EMACS is set or not; independently of the terminal emulator. The patches that I sent are about this point 2. I am using the terminal emulator 'xterm' which does not support the special character OSC but does the expected standard when it sees one (i.e., does nothing). All descent terminal emulator does the correct thing with the OSC character; which is: a) does nothing if not supported or b) does fancy display if supported. The only terminal emulator that I know* which is not doing the standard is terminal emulator in Emacs. That's why the environment variable to turn on/off the OSC is named INSIDE_EMACS. *except when the terminal emulator is incorrectly built, as terminal-mate in Trisquel shows. So, I have no idea about the point 1. nor investigate. All the best, simon