From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: Guix search, colors and INSIDE_EMACS Date: Mon, 24 Feb 2020 17:59:19 +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> <87blpoj6vn.fsf@gnu.org> <8736b0c4sy.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]:46140) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6H4v-0006yl-HR for guix-devel@gnu.org; Mon, 24 Feb 2020 11:59:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6H4u-00030p-Gy for guix-devel@gnu.org; Mon, 24 Feb 2020 11:59:33 -0500 In-Reply-To: <8736b0c4sy.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 Mon, 24 Feb 2020 at 17:45, Pierre Neidhardt wrote: > Done, and it's fixed upstream! You mean that INSIDE_EMACS is now correctly set with EShell, right? Then, the Emacs manual is correct too in *eshell*: --8<---------------cut here---------------start------------->8--- Emacs sets the environment variable =E2=80=98INSIDE_EMACS=E2=80=99 in th= e 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 whether they are running inside an Emacs subshell. --8<---------------cut here---------------end--------------->8--- > Question: Which INSIDE_EMACS hack? INSIDE_EMACS has been introduced as a hack because then: --8<---------------cut here---------------start------------->8--- Programs can check this variable to determine whether they are running inside an Emacs subshell. --8<---------------cut here---------------end--------------->8--- and the GNU tools can be better integrated with Emacs, IMHO. All the best, simon