From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Guix search, colors and INSIDE_EMACS Date: Tue, 04 Feb 2020 16:23:43 +0100 Message-ID: <87blqeml4w.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:41156) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iz03I-0002CI-Pk for guix-devel@gnu.org; Tue, 04 Feb 2020 10:23:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iz03H-0001IG-Rw for guix-devel@gnu.org; Tue, 04 Feb 2020 10:23:48 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:49191) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iz03H-0001AH-LS for guix-devel@gnu.org; Tue, 04 Feb 2020 10:23:47 -0500 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: guix-devel@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi! I just discovered the existence of the INSIDE_EMACS variable (thank you, Zimoun!) which disable the funky characters in `guix describe`, etc. when run from Eshell or Emacs' M-x shell. Sadly, it also disables colours. On a related topic, I think we should disable the =20 =2D-8<---------------cut here---------------start------------->8--- hint: Run `guix search ... | less' to view all the results. =2D-8<---------------cut here---------------end--------------->8--- feature when run inside Emacs, since Emacs is its own pager. To sum up, I suggest to send a patch to fix the following: =2D Rename it to GUIX_INSIDE_EMACS? =2D Document the existence of INSIDE_EMACS. =2D Leave colors on when inside Emacs. =2D Disable the pager hint and display all research result when inside Emacs. Thoughts? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl45jH8ACgkQm9z0l6S7 zH8kuwf+KSV0BXBS4nqFim7yGpyCJD3uq834sg8vzJ2gRbMYgzBPB6dMtm5u2t46 jFtOH7cQp2gFdVLqLEXl4Qfn3wTelcSvIUAQ6Ru0PEA2qXumc88OaExLqrQ+JMSt gzsf5PlwPCEE21xSH8ccQDLQlxATcvkFpjqqOipVKrZwCAeqYfr2ROz1V9DEhx5n s94RurhFMofboP/zC70PV8oRTQATYd8l1wQBGyccg2HsQ98GjqdduJA/vep/Mj6q r+BXJfwsw13jmOkujPdJXK1Te5nfyMYb8ukFUuYxvsF5ij1SJ5zyO6YALG9IEI4o porNjKbMrM+OhmswGidqVxbVmRmtDg== =fO72 -----END PGP SIGNATURE----- --=-=-=--