From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#56025: [WIP PATCH] 29.0.50; em-extpipe-test-2 times out on EMBA and Cygwin Date: Mon, 18 Jul 2022 18:58:45 -0700 Message-ID: References: <8e21db9c-0100-998e-f280-81304e7ff61a@cornell.edu> <040b3a36-459b-a94d-f879-7f45aac50bda@cornell.edu> <83sfnud26o.fsf@gnu.org> <96e47ba7-efaa-b6df-dd98-60f09068e68c@gmail.com> <874k097lbh.fsf@melete.silentflame.com> <8735frmjrr.fsf@athena.silentflame.com> <4676f52c-4758-38df-f0f4-dbcb5d848c1b@gmail.com> <8735fr2kq6.fsf@melete.silentflame.com> <10cf6a90-f86a-b0df-4dc2-c258b7494158@gmail.com> <18e79c02-3a2a-77d1-3798-33711f52d6b9@cornell.edu> <19c66901-2eeb-1f40-17a4-4ed54827e065@gmail.com> <5990de80-63a5-ac9b-1a11-c814aa9e38f2@gmail.com> <3779ea08-f481-5fb5-3257-ca9fa7c604bc@cornell.edu> <60cf587b-5d83-31d6-f0af-56979b221425@gmail.com> <83bktoqnru.fsf@gnu.org> <5f9b3680-d840-cc1d-14a6-1c8f71c30e62@gmail.com> <87zgh64zbp.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40053"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 56025@debbugs.gnu.org, larsi@gnus.org, kbrown@cornell.edu, spwhitton@email.arizona.edu To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 19 03:59:12 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDcW0-000A9q-LS for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jul 2022 03:59:12 +0200 Original-Received: from localhost ([::1]:60758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDcVz-00013M-Pi for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 Jul 2022 21:59:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDcVq-00012y-Vd for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2022 21:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54705) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oDcVq-0000pL-KF for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2022 21:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oDcVq-0004EM-DZ for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2022 21:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Jul 2022 01:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56025 X-GNU-PR-Package: emacs Original-Received: via spool by 56025-submit@debbugs.gnu.org id=B56025.165819594016253 (code B ref 56025); Tue, 19 Jul 2022 01:59:02 +0000 Original-Received: (at 56025) by debbugs.gnu.org; 19 Jul 2022 01:59:00 +0000 Original-Received: from localhost ([127.0.0.1]:52464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDcVo-0004E5-06 for submit@debbugs.gnu.org; Mon, 18 Jul 2022 21:59:00 -0400 Original-Received: from mail-pl1-f174.google.com ([209.85.214.174]:34665) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDcVg-0004Db-Jx for 56025@debbugs.gnu.org; Mon, 18 Jul 2022 21:58:58 -0400 Original-Received: by mail-pl1-f174.google.com with SMTP id z1so10656805plb.1 for <56025@debbugs.gnu.org>; Mon, 18 Jul 2022 18:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=to+LrU1Fmsan6lGW9I/akphvfoAH6pqXs9S9Q9XisVw=; b=S09SeQ2vZftlDJpEmf9tVH0X7vWyaXBPsPy0eG0ZADTYj9FuBTZD4Zmb4A9hlWWd/z wLCWQrnALjTNhhO5zTbmxbFiqe7o2hP1ykoF/eQlMTz+w6Ku4uujJ/Us8j81pv8bwpo/ CiGB3dWVuXMxSXKCebs3XVoLMTCwzPF4YeUrXXRu1Xf/224b1X7VUzXM+J55L9QBAxAI IJKr7Vvg3tOHjuzXoMS5iEVmrCopGzpqD/0cSS9vt5bTregjrqlJJyj3500Zt7WedYKM 3J5zWU43YQVpeQrV4ceYl7I+8R+A3b45sXlQWiwpcp7FYV2LsLumvlKlhOkoKqkfMQl5 fq4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=to+LrU1Fmsan6lGW9I/akphvfoAH6pqXs9S9Q9XisVw=; b=qsEyDbVZNYVGGFwzIjtRafkR+U2QlCkHdylUr5hbwBP5FKjvlB7i3o1c+OAyl47GLe 8SmMMBUfWjeJwfGfrgK9pO1QX+FvjqYmWIad3tX4kXrA76Od6xt8bReMkHgsksMzLw2m mfgIqX6ER0HmvwJjrAQdvgdl6xmiIlTTFTn/Bs+F6PqzLfEwHdK6zVBl0rY8JPL+kijd V2MRYgOv8S50AKz3OQz1pQ7tzKW/+7R+H45cpd6vCVM8D3o31yb/LmpK0skJSiyxFg4G CVpaEt8vY1Z8RihP977pj/FKkzwCZXL9hzU0j6OxBCQrDb6MWeXpGmudjJ2zRWz46Hg7 rxJA== X-Gm-Message-State: AJIora/0SXJIYnpp7P8lAqQXLedkXq6rJZ2UqCp/2BwCLPmVNdVklKp/ ugE0PSXAePrcklfXDgTBras= X-Google-Smtp-Source: AGRyM1u63G7ZZiVPYH2AnZLiT8F7B9H3W7LwgtjHwFbZZFMGcECDaHiib+5bU0/LK7uc1throVjCGg== X-Received: by 2002:a17:902:f689:b0:16c:4fb6:e097 with SMTP id l9-20020a170902f68900b0016c4fb6e097mr30441267plg.136.1658195926692; Mon, 18 Jul 2022 18:58:46 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id 64-20020a620443000000b005289a50e4c2sm9975801pfe.23.2022.07.18.18.58.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Jul 2022 18:58:46 -0700 (PDT) In-Reply-To: <87zgh64zbp.fsf@gmx.de> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:237396 Archived-At: On 7/18/2022 1:09 AM, Michael Albinus wrote: > I haven't tested, but it looks like it won't work with remote processes > foo and bar. Something like > > --8<---------------cut here---------------start------------->8--- > ~ $ cd /ssh:remotehost: > /ssh:remotehost:~ $ *ls | *grep a > --8<---------------cut here---------------end--------------->8--- Hmm, yeah. We'll need to do something with the Tramp case. I think the minimal fix would be to update `tramp-sh-handle-make-process' so that it doesn't signal an error when :connection-type is a cons cell. That's pretty easy. However, it seems that Tramp doesn't fully support :connection-type yet (testing on both Emacs 28.1 and 29). I used the following Python script, and tried a few varieties of `make-process' calls over Tramp. I'd expect that when I set :connection-type to `pipe', it would print False for all the streams, but it seems that the script always sees stdin and stdout as TTYs no matter what options I use. ------------------------------ #!/usr/bin/env python3 import sys print('stdin: {}\nstdout: {}\nstderr: {}\n'.format( sys.stdin.isatty(), sys.stdout.isatty(), sys.stderr.isatty() )) ------------------------------ On the other hand, if I set :stderr to be a buffer, then the script *does* see stderr as a pipe, but that makes sense looking at the code: when using :stderr, Tramp redirects the process's stderr to a file (and then cats it back out). Maybe there's a relatively easy way to get Tramp to respect :connection-type, but I tried a couple of things and they didn't work quite right. Still, that could be a followup for later. So long as it doesn't error out immediately when it's a cons cell, I think it would be ok.