From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: bug#18133: Suppressing asynchronous command output Date: Wed, 28 Jun 2017 22:53:56 +0100 Message-ID: References: <83eg100vy5.fsf@gnu.org> <585C132B.1030709@gmx.at> <585C347D.9050309@gmx.at> <585D740B.40303@gmx.at> <585D8120.1090300@gmx.at> <87fula1dbk.fsf@mail.linkov.net> <83r34tx53w.fsf@gnu.org> <83eg0twwje.fsf@gnu.org> <83r34sujou.fsf@gnu.org> <8737h6z63w.fsf@mail.linkov.net> <87mvfdowg5.fsf@mail.linkov.net> <83zijch4nc.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113b0ab68a791505530c3857" X-Trace: blaine.gmane.org 1498686913 19225 195.159.176.226 (28 Jun 2017 21:55:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Jun 2017 21:55:13 +0000 (UTC) Cc: 18133@debbugs.gnu.org, Juri Linkov To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 28 23:55:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQKvT-0004k9-9s for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Jun 2017 23:55:07 +0200 Original-Received: from localhost ([::1]:35861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQKvY-0007dm-N6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Jun 2017 17:55:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQKvS-0007cJ-8L for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2017 17:55:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQKvO-00067G-6B for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2017 17:55:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40375) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dQKvO-000676-30 for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2017 17:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dQKvN-0006ra-M0 for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2017 17:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jun 2017 21:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18133 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18133-submit@debbugs.gnu.org id=B18133.149868684426313 (code B ref 18133); Wed, 28 Jun 2017 21:55:01 +0000 Original-Received: (at 18133) by debbugs.gnu.org; 28 Jun 2017 21:54:04 +0000 Original-Received: from localhost ([127.0.0.1]:43052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQKuS-0006qL-EY for submit@debbugs.gnu.org; Wed, 28 Jun 2017 17:54:04 -0400 Original-Received: from mail-oi0-f49.google.com ([209.85.218.49]:34908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQKuQ-0006po-Ks for 18133@debbugs.gnu.org; Wed, 28 Jun 2017 17:54:03 -0400 Original-Received: by mail-oi0-f49.google.com with SMTP id c189so52620839oia.2 for <18133@debbugs.gnu.org>; Wed, 28 Jun 2017 14:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=l8IQ8XGeXDaPT3W8pf4TLKJUUNkW4QhY014AAy3wB0s=; b=3YZ9iXkLVHBxvGSfmFJhp8UIguSTZXXY90RAeN9ZxtYaKdhrl9musY4shrSpGkDBq7 1NgpZRPqJwaHUjY9U592Py3LOMa1mYm/QoKxR8If8IiivLBvGZsP8fORv5MYl4tC2qX0 CQoaPc2+3mR42QeIuT7JeNpWuY+fQtC6H8R1M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=l8IQ8XGeXDaPT3W8pf4TLKJUUNkW4QhY014AAy3wB0s=; b=ZjByqAZjxSP7jtGXqvM6AA90sCkusnBl1+JfSP4pJAIgqJmdq1UvXN98BmkoGZMZ4p 9ePLhYRfrgLdy/fscHs9kyRWxhSG/O8UA8rXGWuuIQDr5NhRv+eoBKA9m+nl9ZBkx2q+ PXM4DtP9cDnsxcnmlOebKtL1W83heduSi8EIEk6Gwf9JpEkLBdNxkMHHRVWYV0V1flVM c4MpcsIuR/DIfJp4D0uB+gMwfcbob6s8HgfSs1+lIzSAZApyt71X89OEctGG2UL/vIgI DSET6IYdqiwtWsRUZyILrb/8THdFi7V7BeIg253jiy7NaKfozQ33R+ndQiaw/zT0/l21 2JgA== X-Gm-Message-State: AKS2vOxheQX3Y6ImNn5NBq6cOiAZ2ibasjZyZ5EPThMyWRnvQ07a0/dM IMsUnH2aEkLgQbWpYH+kAxI/NACjyGzq X-Received: by 10.202.81.197 with SMTP id f188mr982901oib.173.1498686836854; Wed, 28 Jun 2017 14:53:56 -0700 (PDT) Original-Received: by 10.202.193.136 with HTTP; Wed, 28 Jun 2017 14:53:56 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:134002 Archived-At: --001a113b0ab68a791505530c3857 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 28 June 2017 at 22:45, Reuben Thomas wrote: > > On 31 December 2016 at 08:41, Eli Zaretskii wrote: > >> > From: Reuben Thomas >> > Date: Sat, 31 Dec 2016 00:19:21 +0000 >> > Cc: Eli Zaretskii , martin rudalics , >> 18133@debbugs.gnu.org >> > >> > Thanks, Juri; can you converge with Eli, and then I'll have a coherent >> proposal I can program? >> >> I'm okay with Juri's approach as well. >> > > =E2=80=8BHere is a patch that attempts to implement Juri's approach.=E2= =80=8B > > =E2=80=8BHowever, at the moment it doesn't work. I think the problem is t= o do with > combining process filters. As suggested in the Emacs manual, I use > add-function to combine the new process filter with the default > comint-output-filter. But no matter what I try, the original filter does > not seem to be run any more, even if I pass a trivial function to > add-function. I've studied the documentation, and I can't see what I'm > doing wrong. > =E2=80=8B S =E2=80=8Borry, my diagnosis above is nonsense. The output is indeed being i= nserted in the buffer; the problem is with the display of the buffer when async-shell-command-display-buffer is set to nil. I will have another look. =E2=80=8B --=20 https://rrt.sc3d.org --001a113b0ab68a791505530c3857 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On 2= 8 June 2017 at 22:45, Reuben Thomas <rrt@sc3d.org> wrote:

=
On 31 December 2016 at 08= :41, Eli Zaretskii <eliz@gnu.org> wrote:
> From: Reuben Thomas <rrt@sc3d.org>
> Date: Sat, 31 Dec 2016 00:19:21 +0000
> Cc: Eli Zaretskii <eliz@gnu.org>, martin rudalics <rudalics@gmx.at>, 18133@debbugs.gnu.org
>
> Thanks, Juri; can you converge with Eli, and then I'll have a cohe= rent proposal I can program?

I'm okay with Juri's approach as well.

=E2=80=8BHere is a patch that attem= pts to implement Juri's approach.=E2=80=8B

=E2=80=8BHowev= er, at the moment it doesn't work. I think the problem is to do with co= mbining process filters. As suggested in the Emacs manual, I use add-functi= on to combine the new process filter with the default comint-output-filter.= But no matter what I try, the original filter does not seem to be run any = more, even if I pass a trivial function to add-function. I've studied t= he documentation, and I can't see what I'm doing wrong.
=E2=80=8B
S
=E2=80=8Borry, my diagnosis above is non= sense. The output is indeed being inserted in the buffer; the problem is wi= th the display of the buffer when async-shell-command-display-buffer is set= to nil. I will have another look.
=E2=80=8B

--
--001a113b0ab68a791505530c3857--