From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: async-shell-command and prefix argument Date: Sat, 19 Jan 2019 23:19:19 +0200 Organization: LINKOV.NET Message-ID: <87won0fia8.fsf@mail.linkov.net> References: <87bm4jnevo.fsf@mbork.pl> <83zhs1ddxw.fsf@gnu.org> <871s5dt3cj.fsf@mbork.pl> NNTP-Posting-Host: ciao.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ciao.gmane.org 1547935101 143728 195.159.176.228 (19 Jan 2019 21:58:21 GMT) X-Complaints-To: usenet@ciao.gmane.org NNTP-Posting-Date: Sat, 19 Jan 2019 21:58:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Marcin Borkowski Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 19 22:58:19 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1gkyd7-000bMK-8s for ged-emacs-devel@m.gmane.org; Sat, 19 Jan 2019 22:58:17 +0100 Original-Received: from localhost ([127.0.0.1]:60327 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkydG-0002vW-9b for ged-emacs-devel@m.gmane.org; Sat, 19 Jan 2019 16:58:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkyab-0001hr-FV for emacs-devel@gnu.org; Sat, 19 Jan 2019 16:55:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkyaa-0002vB-NB for emacs-devel@gnu.org; Sat, 19 Jan 2019 16:55:41 -0500 Original-Received: from firebrick.maple.relay.mailchannels.net ([23.83.214.59]:56164) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gkyaZ-0002qu-0Y; Sat, 19 Jan 2019 16:55:39 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id AB40B5C4193; Sat, 19 Jan 2019 21:55:37 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a6.g.dreamhost.com (unknown [100.96.35.77]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 5CB135C36D4; Sat, 19 Jan 2019 21:55:37 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a6.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Sat, 19 Jan 2019 21:55:37 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Coil-Cellar: 3fd3e0583db927a0_1547934937490_2595497612 X-MC-Loop-Signature: 1547934937490:1810287329 X-MC-Ingress-Time: 1547934937490 Original-Received: from pdx1-sub0-mail-a6.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a6.g.dreamhost.com (Postfix) with ESMTP id 1F61180B34; Sat, 19 Jan 2019 13:55:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=t/geGl+Nybt/rwy/ChZNCMVgzss=; b= pSb1HVBQoJilmQPYN4HpujBkCtjXIKRafE62jS/LkXGbt3kpHqDvEY1JeMxTiZk7 pmcwuSH4k5TvdlXNs0cfKBiu12fmPRSo0OTu6f4KAocPX27FMYpbk2FJvZpqusXX LIT34V0nKZUj+Fe/sJMqQki6frsew65drF+/8LIlZ9M= Original-Received: from mail.jurta.org (m91-129-101-91.cust.tele2.ee [91.129.101.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a6.g.dreamhost.com (Postfix) with ESMTPSA id 2BA9C80B33; Sat, 19 Jan 2019 13:55:33 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a6 In-Reply-To: <871s5dt3cj.fsf@mbork.pl> (Marcin Borkowski's message of "Wed, 16 Jan 2019 09:26:52 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrhedvgdduheejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucffohhmrghinhepmhgsohhrkhdrphhlnecukfhppeeluddruddvledruddtuddrledunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtuddrledupdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepmhgsohhrkhesmhgsohhrkhdrphhlnecuvehluhhsthgvrhfuihiivgeptd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.214.59 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:232506 Archived-At: >>> Basically, the post explains most of my problem: >>> http://mbork.pl/2016-04-12_Showing_some_of_those_Async_Shell_Command_buffers >>> and an (extremely hackish) solution. Since the prefix argument to >>> `async-shell-command' is pretty useless, I would like it to make the >>> output window disappear (or appear, whichever is the saner default, >>> possibly decided by some variable). >>> >>> Does such an idea make sense? Should I file a feature request? >> >> Is something wrong with customizing async-shell-command-display-buffer? >> I have it set to nil for quite some time. > > Would it help for this use-case? That is, make the output buffers > disappear (even in the presence of some output), but not if a prefix > argument is used? Does C-u already mean inserting the output in the current buffer? Maybe then you could use e.g. M-0 prefix arg?