GNU bug report logs - #51454
Progress bar in Org source blocks

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: excalamus@HIDDEN; dated Thu, 28 Oct 2021 06:47:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 51454 <at> debbugs.gnu.org:


Received: (at 51454) by debbugs.gnu.org; 30 Oct 2021 16:43:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 30 12:43:55 2021
Received: from localhost ([127.0.0.1]:58329 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mgrSV-0007nd-BB
	for submit <at> debbugs.gnu.org; Sat, 30 Oct 2021 12:43:55 -0400
Received: from mail-wr1-f43.google.com ([209.85.221.43]:42973)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1mgrST-0007nQ-Nb
 for 51454 <at> debbugs.gnu.org; Sat, 30 Oct 2021 12:43:54 -0400
Received: by mail-wr1-f43.google.com with SMTP id v17so21524236wrv.9
 for <51454 <at> debbugs.gnu.org>; Sat, 30 Oct 2021 09:43:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=from:to:cc:subject:in-reply-to:references:date:message-id
 :mime-version:content-transfer-encoding;
 bh=WaVNKAHZlrnrshLOKi7NSg1JcvnBBhGR87/XH02ysu0=;
 b=DxCt0Ip7zWzqmpyg6MUizciouoUnWq8m1YbhFRVMMKRpekUrUAFcurNOE591/8vFY2
 rMn9z8Y05oDwSkiYUgct34czSjriw4rhiIOJ2VWhwCy3BwdYQMiuWoWjuS26cEOGcv4L
 WykBHzxiOG/vapDnxGIbtgZRysyexPOF2m1YgntbC/3BpU2ZZ32Ozi1hGFwGqCRlq5ut
 YLQYcM+MecMW9IN0v3Or039Yg72V+0whmvldREwC6CtaTu+CbgjMePtiwtfObFC2SvqC
 aY/LiONjjHlUNHesumZMWNaH/JuckhX4OOGo1Ia2jkOEqUZIQfCNmz9cvtKEuusyqbyy
 jDmA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date
 :message-id:mime-version:content-transfer-encoding;
 bh=WaVNKAHZlrnrshLOKi7NSg1JcvnBBhGR87/XH02ysu0=;
 b=WhrktI7tec6b+5HMDy1PYmuGV1PtoUvK4aCAcWszlPxlsAy+IbSQ1kxSbHAxpM/T8N
 7smwrYZ0OpJQ1gF5kTTFUYuOfhXj8wWn4+3LuvTMi/FIy9QyYft2CceFBrjNRlBoVSPH
 a+Lpv2J89g0Gi/YhQ2h0n1oMVTXae4vXRFEdU0T2O6z8SSLTpBv2hy/7ks4w1ju4CHd1
 rRFytN2OqYmFjxOueWYej9AvVGTIgxdvS4eqC00z0+A+uFit3xsVnh7EYx/+bCrmH+7M
 zU5PHYjBKj7thzOYyJs9c/P2XQZXHSr5PQaSVzaILiTNmvHBhW0hyhjRLKB+z1DZ2H8L
 apSA==
X-Gm-Message-State: AOAM530av59VIIbfHc/2BsFsC7Bic7jVpV1letp3+paRUzjfAEKKEeaX
 zWn6EJcbKtqbKU7hDaksmmqtBjcNNko=
X-Google-Smtp-Source: ABdhPJzUYA8gbqE5QAafQHZUDAOGaCKaWeXe7W5C2ODuxpJy/kFX3LBiO/qRroj/ZQeK9Bo1cFwNFw==
X-Received: by 2002:a5d:6d0a:: with SMTP id e10mr23051710wrq.348.1635612227854; 
 Sat, 30 Oct 2021 09:43:47 -0700 (PDT)
Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e])
 by smtp.gmail.com with ESMTPSA id n5sm11147039wme.6.2021.10.30.09.43.46
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 30 Oct 2021 09:43:47 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
To: excalamus@HIDDEN
Subject: Re: bug#51454: Progress bar in Org source blocks
In-Reply-To: <MnEYGl5--3-2@HIDDEN>
References: <Mn3eLkd--3-2@HIDDEN>
 <CAJ3okZ1P9LL1t5QzUQcvCtq3QYFT=wzoxbiNReM5TeP-AB8WKQ@HIDDEN>
 <MnEYGl5--3-2@HIDDEN>
Date: Sat, 30 Oct 2021 18:43:37 +0200
Message-ID: <867ddujwee.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 51454
Cc: 51454 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

On Sat, 30 Oct 2021 at 06:55, excalamus@HIDDEN wrote:
>> try the environment variable INSIDE_EMACS with turns off
>> some fancy shell things.
>>
> This is a good suggestion.=C2=A0 Maybe I'm misunderstanding how
> INSIDE_EMACS works. The docs say:

Thanks for the pointing the Emacs doc.  From my understanding, the
environment variable INSIDE_EMACS is used by Guix to turn on/off
hyperlink support.  It reads,

--8<---------------cut here---------------start------------->8---
(define* (supports-hyperlinks? #:optional (port (current-output-port)))
  "Return true if PORT is a terminal that supports hyperlink escapes."
  ;; Note that terminals are supposed to ignore OSC escapes they don't
  ;; understand (this is the case of xterm as of version 349, for instance.)
  ;; However, Emacs comint as of 26.3 does not ignore it and instead lets it
  ;; through, hence the 'INSIDE_EMACS' special case below.
  (and (isatty?* port)
       (not (getenv "INSIDE_EMACS"))))
--8<---------------cut here---------------end--------------->8---

> "Emacs sets the environment variable INSIDE_EMACS in thesubshell 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 variableto determine whether they are running
> inside an Emacs subshell."

Indeed, Emacs sets automatically this variable.  That=E2=80=99s why it is u=
sed
by Guix. :-)


> I understand this to mean that INSIDE_EMACS *is* being set and that
> it's the guix command's responsibility to do something with it (if it
> wants to).

Yes.


> If instead I set INSIDE_EMACS to something falsey (e.g. 1) and run
> through things, I see the same result with color and control
> characters.

Thanks for reporting. I though tweaking that variable would be enough to
fix the odd behaviour you are seeing,

--8<---------------cut here---------------start------------->8---
: guix package: [1;35mwarning: [0mnothing to do
--8<---------------cut here---------------end--------------->8---

which are related to shell fancy =E2=80=9Ccontrollers=E2=80=9D.  If you hav=
e not tried
yet, then NO_COLOR=3D1 should do the job.  Sorry to not have thought
before. :-)


Cheers,
simon





Information forwarded to bug-guix@HIDDEN:
bug#51454; Package guix. Full text available.

Message received at 51454 <at> debbugs.gnu.org:


Received: (at 51454) by debbugs.gnu.org; 30 Oct 2021 04:55:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 30 00:55:14 2021
Received: from localhost ([127.0.0.1]:56508 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mggOg-0001QQ-IM
	for submit <at> debbugs.gnu.org; Sat, 30 Oct 2021 00:55:14 -0400
Received: from w1.tutanota.de ([81.3.6.162]:36042)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <excalamus@HIDDEN>) id 1mggOd-0001Q1-OB
 for 51454 <at> debbugs.gnu.org; Sat, 30 Oct 2021 00:55:12 -0400
Received: from w3.tutanota.de (unknown [192.168.1.164])
 by w1.tutanota.de (Postfix) with ESMTP id 4C831FBF6E4;
 Sat, 30 Oct 2021 04:55:05 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1635569705; 
 s=s1; d=tutanota.com;
 h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender;
 bh=3ym5gKIj1r3P/CBEf4MADJ+2QroHsxlN6lcR1BOxqhY=;
 b=S/LkYovxrY3usKT9OouHhOrJzHSvapTDU3N30lV7UeNYpJQog7u4Qi49FBkcoR9M
 MtsSishJRJrKfvFkcDTcsD5+nr+6vINGtKIQ2C/MQKJXOlTr2eJMo+oAEOCr2ZtvpQQ
 bQ9AcF0nSxEp6p9ywnpHzER64FQxw/JWWfx/ZHLMBNjEwS08eo267XKj30BCHUxiK/8
 6M4Tj074iVXtWVyfbM4KF1T5/pqf36afvtsWcKHEOUMjxq3CKLRImFjr59Vq1tbTPcR
 goqPrk8VVJ4zIV3loagl1ZdcsWVjeePv4n3FfnLFCqpQ6Q8lpYLyQV4mJ1Ho5tgnp03
 AlgLS9twOQ==
Date: Sat, 30 Oct 2021 06:55:05 +0200 (CEST)
From: excalamus@HIDDEN
To: zimoun <zimon.toutoune@HIDDEN>
Message-ID: <MnEYGl5--3-2@HIDDEN>
In-Reply-To: <CAJ3okZ1P9LL1t5QzUQcvCtq3QYFT=wzoxbiNReM5TeP-AB8WKQ@HIDDEN>
References: <Mn3eLkd--3-2@HIDDEN>
 <CAJ3okZ1P9LL1t5QzUQcvCtq3QYFT=wzoxbiNReM5TeP-AB8WKQ@HIDDEN>
Subject: Re: bug#51454: Progress bar in Org source blocks
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 51454
Cc: 51454 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)



> try the environment variable INSIDE_EMACS with turns off
> some fancy shell things.
>
This is a good suggestion.=C2=A0 Maybe I'm misunderstanding how INSIDE_EMAC=
S works. The docs say:

"Emacs sets the environment variable INSIDE_EMACS in thesubshell to =E2=80=
=98version,comint=E2=80=99, where version is theEmacs version (e.g., =E2=80=
=9824.1=E2=80=99).  Programs can check this variableto determine whether th=
ey are running inside an Emacs subshell."

https://www.gnu.org/software/emacs/manual/html_node/emacs/Interactive-Shell=
.html

When I check it in a session set up as described above, I get the Emacs ver=
sion:

#+begin_src sh :results output :session unset
echo $INSIDE_EMACS
#+end_src

#+RESULTS:
:=20
: 27.2,comint

I understand this to mean that INSIDE_EMACS *is* being set and that it's th=
e guix command's responsibility to do something with it (if it wants to).

If instead I set INSIDE_EMACS to something falsey (e.g. 1) and run through =
things, I see the same result with color and control characters.




Information forwarded to bug-guix@HIDDEN:
bug#51454; Package guix. Full text available.

Message received at 51454 <at> debbugs.gnu.org:


Received: (at 51454) by debbugs.gnu.org; 29 Oct 2021 12:51:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 29 08:51:32 2021
Received: from localhost ([127.0.0.1]:54105 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mgRM4-000684-Eh
	for submit <at> debbugs.gnu.org; Fri, 29 Oct 2021 08:51:32 -0400
Received: from mail-qt1-f182.google.com ([209.85.160.182]:42524)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1mgRM0-00067m-Oo
 for 51454 <at> debbugs.gnu.org; Fri, 29 Oct 2021 08:51:31 -0400
Received: by mail-qt1-f182.google.com with SMTP id f1so8882103qto.9
 for <51454 <at> debbugs.gnu.org>; Fri, 29 Oct 2021 05:51:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=2nZ1nEE5CPB/GmFDcrXBNlfDKomOwadejlksIErm1Cg=;
 b=KvIVFqjn/oxgXE9zGcBKHYAAQFNMofsKYIRrAGX2xCRrh4W+BmbmEEziQlmJkhNVsT
 eYsitgDHPUN9jlNkKRnmZBc6T64tGmPo+O569AB7Itp3yiJZia5GiPiH451IMp+Egnb9
 vTxsMpGMJP/xJOgo2U1LL1JAtbRzN5gEoIBk7sfsnDDP9yKUuIkr4lIyB9nktJOTq8YK
 A1WBueJIW9UVxfgdGWxYRlh8yMDeWwOqURw10zpKc4BScF4mEazQKS8GO7XM/mBuTj8O
 pUwWZURorHZyKQU52t5+iP5gu1+GkH74zQMP4KJ7EZUnyyxnYdDNFltp59TrYg3VRakT
 x0AQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=2nZ1nEE5CPB/GmFDcrXBNlfDKomOwadejlksIErm1Cg=;
 b=dhaj+rRJCcX4UfqHqpI5SHS1xn5Hkw0KX8BGvY1pHYaTV62fhFB5Gdcd0sfeTQ2zgW
 AkYxwG3uNOnwP5R8LFZI/MhEcojhnAeQKoSxXBx3zx3EUAkhSVdQNy//x59bgEg+vKbD
 ztBo1szMUhklEBfZSww05GLzyl76e+7LNagiC3TuS7msUv2v9xi85AszJY0B2tuAuput
 XQstvCroav+X/kMRpx+vZAy/VuTC/qLgc5wDFdmw/QGllxvk7nSWedveIEtz0NabgYKd
 ofhwJkHpKGGGvJQsFOsim/l2sCq1ozuuIhmAGs7A527v9dzdRkm1w4BaftRv8RBJKIcd
 TmIw==
X-Gm-Message-State: AOAM5319kSdgBJezWXLjn5Te+QBvlddCCoM2ljCvozFUgp1aBgZp8+Kg
 3gVF0dE7h9HVZYh1ACQsS34i84PUf95fCslda3zyHt9R
X-Google-Smtp-Source: ABdhPJygLLriMsxLEUkq5UBW1+atspptteA6pO6Jwv8K5ygGFbLqpamb1ISdx4e5GLfX+ydzKYOZi29jVMhhlrpMdow=
X-Received: by 2002:a05:622a:58e:: with SMTP id
 c14mr7689930qtb.225.1635511883107; 
 Fri, 29 Oct 2021 05:51:23 -0700 (PDT)
MIME-Version: 1.0
References: <Mn3eLkd--3-2@HIDDEN>
In-Reply-To: <Mn3eLkd--3-2@HIDDEN>
From: zimoun <zimon.toutoune@HIDDEN>
Date: Fri, 29 Oct 2021 14:51:12 +0200
Message-ID: <CAJ3okZ1P9LL1t5QzUQcvCtq3QYFT=wzoxbiNReM5TeP-AB8WKQ@HIDDEN>
Subject: Re: bug#51454: Progress bar in Org source blocks
To: excalamus@HIDDEN
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 51454
Cc: 51454 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

On Fri, 29 Oct 2021 at 14:38, excalamus--- via Bug reports for GNU
Guix <bug-guix@HIDDEN> wrote:

> I'm trying to document my work with Guix using Emacs Org. If I run a shell/sh/bash source block in org-mode, the result has control characters in it.

[...]

> #+RESULTS:
> : guix package:  [1;35mwarning:  [0mnothing to do
>
> Switch to org-mode, eval the lisp, and C-c C-c the source block. If your system is like mine, you'll see control non-printable characters.

You should try the environment variable INSIDE_EMACS with turns off
some fancy shell things.

Cheers,
simon




Information forwarded to bug-guix@HIDDEN:
bug#51454; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Oct 2021 06:46:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 28 02:46:07 2021
Received: from localhost ([127.0.0.1]:51146 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mfzAp-00019p-7W
	for submit <at> debbugs.gnu.org; Thu, 28 Oct 2021 02:46:06 -0400
Received: from lists.gnu.org ([209.51.188.17]:32814)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <excalamus@HIDDEN>) id 1mfury-00037B-Ly
 for submit <at> debbugs.gnu.org; Wed, 27 Oct 2021 22:10:21 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:53490)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <excalamus@HIDDEN>)
 id 1mfury-0001eo-BV
 for bug-guix@HIDDEN; Wed, 27 Oct 2021 22:10:18 -0400
Received: from w1.tutanota.de ([81.3.6.162]:54980)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <excalamus@HIDDEN>)
 id 1mfurw-0008My-74
 for bug-guix@HIDDEN; Wed, 27 Oct 2021 22:10:18 -0400
Received: from w3.tutanota.de (unknown [192.168.1.164])
 by w1.tutanota.de (Postfix) with ESMTP id 74311FBF61A
 for <bug-guix@HIDDEN>; Thu, 28 Oct 2021 02:10:11 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1635387011; 
 s=s1; d=tutanota.com;
 h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender;
 bh=tP6BKFGTq247d2kKj8R0bALIKXz/C61ABqmNGkYpFb0=;
 b=4COJASjQ7viY/4amtG7jEXUNwoEo+E7z/MXjrtCYhyMIBesKjG4E9AAmfAiH3TPD
 FHWg2YTa45P55tFi6K+fpxjVdA8gTASai3a2WQwUw46P7CmkQGeSuDp+ei19N8eXWZP
 qWzTw1U0bY0XnZNyBHyrYZZRAxBb+phcQI7pVFyPe9atODZ16N/X45Ys14LS6lNOr6c
 RLJolNLCQF8qt2b753bORry2jCxocU0nhAhc9S/GczKRxvzPWy1JtEM4LR6U0wPD+fD
 Kk3nOVOY8/JNqOixuoVgcPUoHFEkoComHB5DvAWX0RbJdJR9IAlU7gzov7ppXYFxt5d
 8FrOLzFHPA==
Date: Thu, 28 Oct 2021 04:10:11 +0200 (CEST)
From: excalamus@HIDDEN
To: bug-guix@HIDDEN
Message-ID: <Mn3eLkd--3-2@HIDDEN>
Subject: Progress bar in Org source blocks
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=81.3.6.162; envelope-from=excalamus@HIDDEN;
 helo=w1.tutanota.de
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 28 Oct 2021 02:46:02 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

I'm trying to document my work with Guix using Emacs Org. If I run a shell/=
sh/bash source block in org-mode, the result has control characters in it.

To reproduce, open a clean instance of Emacs with emacs -q, switch to the s=
cratch buffer and insert:

;; eval this first so that source blocks can run sh
(org-babel-do-load-languages
=C2=A0'org-babel-load-languages
=C2=A0'((shell . t)))

#+begin_src sh :results output :session test
guix package -u
#+end_src

#+RESULTS:
: guix package: =1B[1;35mwarning: =1B[0mnothing to do

Switch to org-mode, eval the lisp, and C-c C-c the source block. If your sy=
stem is like mine, you'll see control non-printable characters.

When I check how org sees the shell, I get:

#+begin_src sh :results output :session test
echo $TERM
#+end_src

#+RESULTS:
: dumb

I've tried renaming .bashrc and .bash_profile to .bashrc.old and .bash_prof=
ile.old, starting a new shell and running through the steps above. The resu=
lt is the same.

Thoughts and suggestions?





Acknowledgement sent to excalamus@HIDDEN:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#51454; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 30 Oct 2021 16:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.