X-Loop: help-debbugs@HIDDEN Subject: bug#51454: Progress bar in Org source blocks Resent-From: excalamus@HIDDEN Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Thu, 28 Oct 2021 06:47:02 +0000 Resent-Message-ID: <handler.51454.B.16354035674466 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 51454 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 51454 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-guix@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.16354035674466 (code B ref -1); Thu, 28 Oct 2021 06:47:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Oct 2021 06:46:07 +0000 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 Message-ID: <Mn3eLkd--3-2@HIDDEN> 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-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?
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: excalamus@HIDDEN Subject: bug#51454: Acknowledgement (Progress bar in Org source blocks) Message-ID: <handler.51454.B.16354035674466.ack <at> debbugs.gnu.org> References: <Mn3eLkd--3-2@HIDDEN> X-Gnu-PR-Message: ack 51454 X-Gnu-PR-Package: guix Reply-To: 51454 <at> debbugs.gnu.org Date: Thu, 28 Oct 2021 06:47:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guix@HIDDEN If you wish to submit further information on this problem, please send it to 51454 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 51454: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D51454 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#51454: Progress bar in Org source blocks Resent-From: zimoun <zimon.toutoune@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Fri, 29 Oct 2021 12:52:01 +0000 Resent-Message-ID: <handler.51454.B51454.163551189223569 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 51454 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: excalamus@HIDDEN Cc: 51454 <at> debbugs.gnu.org Received: via spool by 51454-submit <at> debbugs.gnu.org id=B51454.163551189223569 (code B ref 51454); Fri, 29 Oct 2021 12:52:01 +0000 Received: (at 51454) by debbugs.gnu.org; 29 Oct 2021 12:51:32 +0000 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> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) 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
X-Loop: help-debbugs@HIDDEN Subject: bug#51454: Progress bar in Org source blocks Resent-From: excalamus@HIDDEN Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Sat, 30 Oct 2021 04:56:02 +0000 Resent-Message-ID: <handler.51454.B51454.16355697145486 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 51454 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: zimoun <zimon.toutoune@HIDDEN> Cc: 51454 <at> debbugs.gnu.org Received: via spool by 51454-submit <at> debbugs.gnu.org id=B51454.16355697145486 (code B ref 51454); Sat, 30 Oct 2021 04:56:02 +0000 Received: (at 51454) by debbugs.gnu.org; 30 Oct 2021 04:55:14 +0000 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 Message-ID: <MnEYGl5--3-2@HIDDEN> In-Reply-To: <CAJ3okZ1P9LL1t5QzUQcvCtq3QYFT=wzoxbiNReM5TeP-AB8WKQ@HIDDEN> References: <Mn3eLkd--3-2@HIDDEN> <CAJ3okZ1P9LL1t5QzUQcvCtq3QYFT=wzoxbiNReM5TeP-AB8WKQ@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) 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.
X-Loop: help-debbugs@HIDDEN Subject: bug#51454: Progress bar in Org source blocks Resent-From: zimoun <zimon.toutoune@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Sat, 30 Oct 2021 16:44:01 +0000 Resent-Message-ID: <handler.51454.B51454.163561223529989 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 51454 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: excalamus@HIDDEN Cc: 51454 <at> debbugs.gnu.org Received: via spool by 51454-submit <at> debbugs.gnu.org id=B51454.163561223529989 (code B ref 51454); Sat, 30 Oct 2021 16:44:01 +0000 Received: (at 51454) by debbugs.gnu.org; 30 Oct 2021 16:43:55 +0000 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> 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-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
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.