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: Mon, 26 Dec 2016 23:43:45 +0000 Message-ID: References: <83zijp180n.fsf@gnu.org> <83eg100vy5.fsf@gnu.org> <585C132B.1030709@gmx.at> <585C347D.9050309@gmx.at> <585D740B.40303@gmx.at> <585D8120.1090300@gmx.at> <585E3CF2.4070800@gmx.at> <837f6pzg2s.fsf@gnu.org> <585E7DF8.30205@gmx.at> <83zijlxqkl.fsf@gnu.org> <585EA33D.5010904@gmx.at> <83tw9txo31.fsf@gnu.org> <585EBB20.7040302@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c075f46860e2c0544984e7d X-Trace: blaine.gmane.org 1482795866 19762 195.159.176.226 (26 Dec 2016 23:44:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Dec 2016 23:44:26 +0000 (UTC) Cc: 18133@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 27 00:44:20 2016 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 1cLewB-0003dQ-Uo for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Dec 2016 00:44:16 +0100 Original-Received: from localhost ([::1]:52087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLewF-00085s-7x for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Dec 2016 18:44:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLew1-00085c-Pa for bug-gnu-emacs@gnu.org; Mon, 26 Dec 2016 18:44:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cLevy-00059C-Lk for bug-gnu-emacs@gnu.org; Mon, 26 Dec 2016 18:44:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40734) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cLevy-00058z-I8 for bug-gnu-emacs@gnu.org; Mon, 26 Dec 2016 18:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cLevy-0003Rt-7J for bug-gnu-emacs@gnu.org; Mon, 26 Dec 2016 18:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Dec 2016 23:44:02 +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.148279583313234 (code B ref 18133); Mon, 26 Dec 2016 23:44:02 +0000 Original-Received: (at 18133) by debbugs.gnu.org; 26 Dec 2016 23:43:53 +0000 Original-Received: from localhost ([127.0.0.1]:56133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cLevp-0003RO-F9 for submit@debbugs.gnu.org; Mon, 26 Dec 2016 18:43:53 -0500 Original-Received: from mail-qk0-f171.google.com ([209.85.220.171]:35241) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cLevo-0003R9-3p for 18133@debbugs.gnu.org; Mon, 26 Dec 2016 18:43:52 -0500 Original-Received: by mail-qk0-f171.google.com with SMTP id u25so196856753qki.2 for <18133@debbugs.gnu.org>; Mon, 26 Dec 2016 15:43:52 -0800 (PST) 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=jR0Ohv38dXfFGFm2d374utllmRZ5tpBJLMH5sULY31c=; b=mggiLdxBxTCBg4ublD45KGexIpwXbyIfIivbgle5CqfWreZ09vRNJHQ+0Ba3G+uoMK t8e7LV7CtuOB6peHZuBGJSV7FrHQdV5mIMfQIDT+/1l1dsu8ZkuUw/Xu5paMn+DDG0Cm FUEeJoN9QnOjoGIOZt1SIL40W0Y0fEyjt+j0I= 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=jR0Ohv38dXfFGFm2d374utllmRZ5tpBJLMH5sULY31c=; b=ddffHj5NvBHBhp8MOUjcRV3q5/l/o7LB1TiJPsCYmxZfcNvIPebyjquunX/iVOeOAd TCuPSXFAcO2Knu4xAx7tuJaMcANKTOI4Zc2nnrRihLTbXCyhQX4El44TKjnJU/eYAWEf 46DvnoqZFQZeETo2rH58H32ulrh4a6v6DqsTK4/Ww5UxjH87HyPpvdN0e2lsbJnHKo9H CGY4ZkyjZ0xrxZ8AfpT8ly0jhuJskAhj/GeNEK7d9LBIUuqn+vbf7fOVUGFl+TGpJRVk JotMYOYscDlXe2znMsuVrAG9nvJLeYb4NTP+ze0exUdaI+maJKz9k2za4iDuLm7BKTTe LNTQ== X-Gm-Message-State: AIkVDXKb2U20mff7QrlblFYPz4T4U730Qux3H8eBC/sgBt8J5BdLY4FRpwbUOJvwUYO5QTvW1wUKWNVk6ap6I8sO X-Received: by 10.55.135.69 with SMTP id j66mr28751706qkd.31.1482795826672; Mon, 26 Dec 2016 15:43:46 -0800 (PST) Original-Received: by 10.140.88.51 with HTTP; Mon, 26 Dec 2016 15:43:45 -0800 (PST) In-Reply-To: <585EBB20.7040302@gmx.at> 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:127473 Archived-At: --94eb2c075f46860e2c0544984e7d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 24 December 2016 at 18:14, martin rudalics wrote: > >> It would be nice if the user only had to change one thing to enabl= e > hiding > >> the async output buffer until there is output. If we only added th= e > >> function to display-buffer--action-function-custom-type, the user > still has > >> to manually add the right buffer name pattern and the action to > >> display-buffer-alist. > > > > Yes, I meant to add a value that would handle "*Async Shell Output*" > > buffer like described above. > > The type specification of =E2=80=98display-buffer-alist=E2=80=99 goes as: > > :type `(alist :key-type > (choice :tag "Condition" > regexp > (function :tag "Matcher function")) > :value-type ,display-buffer--action-custom-type) > > This associates regexps/matcher functions with actions. How, in such a > specification, can I splice in a buffer name associated with a key > _without_ assigning that pair to the default of =E2=80=98display-buffer-a= list=E2=80=99? > Maybe I'm missing some detail of the customization interface. =E2=80=8BThe detail I think you're missing is that when you add an ":option= s" entry, that is a selectable option, off by default.=E2=80=8B >> And how should =E2=80=98display-buffer=E2=80=99 know whether "there's so= me material" in > >> that buffer? > =E2=80=8BThe answer to that is, display-buffer does not know. > > That's up to Reuben, I thought he had this figured out already. > > Whatever he figures out, it will affect the decision whether to display > the buffer initially. =E2=80=8BInitially, the buffer is not displayed. Every time output is added= to it, it is displayed, by the filter function. (According to Juri's later message, this is inefficient.) --=20 http://rrt.sc3d.org --94eb2c075f46860e2c0544984e7d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On = 24 December 2016 at 18:14, martin rudalics <rudalics@gmx.at> w= rote:
>>=C2=A0 =C2=A0 =C2=A0It wo= uld be nice if the user only had to change one thing to enable hiding
>>=C2=A0 =C2=A0 =C2=A0the async output buffer until there is output. = If we only added the
>>=C2=A0 =C2=A0 =C2=A0function to display-buffer--action-functio= n-custom-type, the user still has
>>=C2=A0 =C2=A0 =C2=A0to manually add the right buffer name pattern a= nd the action to
>>=C2=A0 =C2=A0 =C2=A0display-buffer-alist.
>
> Yes, I meant to add a value that would handle "*Async Shell Outpu= t*"
> buffer like described above.

The type specification of =E2=80=98display-buffer-alist=E2=80=99 goes as:
=C2=A0 :type `(alist :key-type
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (choice :tag "= Condition"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 regexp
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 (function :tag "Matcher function"))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :value-type ,displa= y-buffer--action-custom-type)

This associates regexps/matcher functions with actions.=C2=A0 How, in such = a
specification, can I splice in a buffer name associated with a key
_without_ assigning that pair to the default of =E2=80=98display-buffer-ali= st=E2=80=99?
Maybe I'm missing some detail of the customization interface.

= =E2=80=8BThe detail I think you're missing is that when you add an &quo= t;:options" entry, that is a selectable option, off by default.=E2=80= =8B

<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">>> And how should =E2= =80=98display-buffer=E2=80=99 know whether "there's some material&= quot; in
>> that buffer?

=E2=80=8BThe answer to that is= , display-buffer does not know.
=C2=A0
> That's up to Reuben, I thought he= had this figured out already.

Whatever he figures out, it will affect the decision whether to display
the buffer initially.

=E2=80=8BInitially, the buffer is not dis= played. Every time output is added to it, it is displayed, by the filter fu= nction. (According to Juri's later message, this is inefficient.)
=

--
--94eb2c075f46860e2c0544984e7d--