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 10:30:56 +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" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45202) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2Apy-0004Nr-TC for guix-devel@gnu.org; Thu, 13 Feb 2020 04:31:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2Apx-0006X3-Jg for guix-devel@gnu.org; Thu, 13 Feb 2020 04:31:10 -0500 Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]:41764) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j2Apx-0006W4-FI for guix-devel@gnu.org; Thu, 13 Feb 2020 04:31:09 -0500 Received: by mail-qv1-xf32.google.com with SMTP id s7so2291565qvn.8 for ; Thu, 13 Feb 2020 01:31:09 -0800 (PST) In-Reply-To: <871rr8hwmv.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 Pierre, On Thu, 6 Feb 2020 at 10:51, Pierre Neidhardt wrote: > Ricardo Wurmus writes: > > I suppose you are not using a comint-derived mode for your shell then. > > Precision: It works with M-x shell but not with Eshell. Yes, it is expected. 1. INSIDE_EMACS is set by 'comint-mode' http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/comint.el#n830 2. 'shell-mode' derives from 'comint-mode' so INSIDE_EMACS is ok. http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/shell.el#n504 3. 'esh-mode' is derived from 'fundamental-mode' and I do not find where INSIDE_EMACS is set by this mode. http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/eshell/esh-mode.el#n319 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. The issue is not related to Guix but to EShell. :-) Cheers, simon