From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: Guix search, colors and INSIDE_EMACS Date: Thu, 13 Feb 2020 15:22:50 +0100 Message-ID: References: <87blqeml4w.fsf@ambrevar.xyz> <87tv46qqlf.fsf@elephly.net> <87d0aul354.fsf@ambrevar.xyz> <87pneuqhyo.fsf@elephly.net> <871rr8hwmv.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56404) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2FOT-0006Pt-CS for guix-devel@gnu.org; Thu, 13 Feb 2020 09:23:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2FOS-0008G8-4D for guix-devel@gnu.org; Thu, 13 Feb 2020 09:23:05 -0500 Received: from mail-qk1-x744.google.com ([2607:f8b0:4864:20::744]:41654) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j2FOR-0008DI-UR for guix-devel@gnu.org; Thu, 13 Feb 2020 09:23:04 -0500 Received: by mail-qk1-x744.google.com with SMTP id d11so5777101qko.8 for ; Thu, 13 Feb 2020 06:23:03 -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: Alex Griffin Cc: Guix Devel Hi, On Thu, 13 Feb 2020 at 14:42, Alex Griffin wrote: > > On Thu, Feb 13, 2020, at 9:30 AM, zimoun wrote: > > Therefore, IMHO you need to set the environment variable by yourself > > in your config file. Or send a patch upstream. > > Because the reason is that EShell is not doing the right thing and it > > is not compliant to the doc. > > Compliant to which doc? The only place I can find documentation for INSID= E_EMACS is in the shell-mode docs. I can't find any doc that suggests it sh= ould be set by any other package. I badly worded. Sorry. As Ricardo pointed [1], the Emacs doc [2] says: --8<---------------cut here---------------start------------->8--- Emacs sets the environment variable INSIDE_EMACS in the subshell to =E2=80=98version,comint=E2=80=99, where version is the Emacs version (e.g.= , =E2=80=9824.1=E2=80=99). Programs can check this variable to determine whe= ther they are running inside an Emacs subshell. --8<---------------cut here---------------end--------------->8--- So EShell should manage INSIDE_EMACS since it could be considered as an Interactive Shell or subshell. It is how I understand it. Maybe, I misread. Well, concretely, if you use EShell and you want a readable "guix describe", you have to put in your '.emacs' config file something like '(setenv "INSIDE_EMACS" "1")'. Or you should patch EShell and report it upstream. [1] https://lists.gnu.org/archive/html/guix-devel/2020-02/msg00040.html [2] https://www.gnu.org/software/emacs/manual/html_node/emacs/Interactive-S= hell.html Hope that helps, simon