From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18133: Suppressing asynchronous command output Date: Wed, 28 Dec 2016 18:01:21 +0200 Message-ID: <83r34sujou.fsf@gnu.org> 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> <87fula1dbk.fsf@mail.linkov.net> <83r34tx53w.fsf@gnu.org> <83eg0twwje.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1482940940 15915 195.159.176.226 (28 Dec 2016 16:02:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Dec 2016 16:02:20 +0000 (UTC) Cc: 18133@debbugs.gnu.org, juri@linkov.net To: Reuben Thomas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 28 17:02:16 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 1cMGgB-0003ST-On for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Dec 2016 17:02:15 +0100 Original-Received: from localhost ([::1]:59812 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMGgE-0002C0-Ut for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Dec 2016 11:02:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMGg3-0002Ah-5V for bug-gnu-emacs@gnu.org; Wed, 28 Dec 2016 11:02:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMGfy-0007la-RS for bug-gnu-emacs@gnu.org; Wed, 28 Dec 2016 11:02:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42800) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cMGfy-0007lS-Ol for bug-gnu-emacs@gnu.org; Wed, 28 Dec 2016 11:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cMGfy-00036g-9O for bug-gnu-emacs@gnu.org; Wed, 28 Dec 2016 11:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Dec 2016 16:02: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.148294090411914 (code B ref 18133); Wed, 28 Dec 2016 16:02:02 +0000 Original-Received: (at 18133) by debbugs.gnu.org; 28 Dec 2016 16:01:44 +0000 Original-Received: from localhost ([127.0.0.1]:58199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cMGfd-000361-8P for submit@debbugs.gnu.org; Wed, 28 Dec 2016 11:01:44 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cMGfc-00035o-6x for 18133@debbugs.gnu.org; Wed, 28 Dec 2016 11:01:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMGfR-0007e7-6x for 18133@debbugs.gnu.org; Wed, 28 Dec 2016 11:01:34 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMGfR-0007e2-4g; Wed, 28 Dec 2016 11:01:29 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3787 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cMGfQ-00046T-Ai; Wed, 28 Dec 2016 11:01:28 -0500 In-reply-to: (message from Reuben Thomas on Tue, 27 Dec 2016 22:21:11 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:127518 Archived-At: > From: Reuben Thomas > Date: Tue, 27 Dec 2016 22:21:11 +0000 > Cc: Juri Linkov , martin rudalics , 18133@debbugs.gnu.org > > > Why are we hard-coding a certain buffer name in a function that is > > supposed to be more general, judging by its name and doc string? > > > > ​I found it hard-coded several times in other places, so I hard-coded it here. What do you suggest? > > I don't see it hard-coded in any context such as this. > > ​I'm not quite sure what you mean by "in any context such as this". I see the string repeated in source code, > and never assigned to a variable name. This seems OK, since strings and symbols are pretty much > interchangeable when of this sort (e.g. not internationalised).​ It appears: . in ibuf-ext.el, as one of several strings users can select . in tramp-adb.el as a buffer where the shell output should go . in tramp.el, likewise . in simple.el, likewise . in comments in some other files By contrast, you were hard-coding it in a function that should provide optional behavior for buffers that are not necessarily related to shell output. In that context, I think the user should be able to instruct Emacs about the buffers which should exhibit this behavior. > I think the regexp against which buffer names are matched in > comint-make-newly-written-buffer-visible should be customizable, with > "*Async Shell Command*" being (in) the default value. > > This is already the case.​ Maybe, but in that case I'm missing something here. > And another question: where's the user option to turn this feature on > or off (including the default being off)? > > ​M-x​ customize-variable RET display-buffer-alist RET > > You can tick/untick the option for "*Async Shell Command*", and, when it is ticked, the regexp can be edited. But if I select that, what I get is that the buffer will not be displayed at all, right? What will trigger its display when it becomes non-empty? Sorry if I'm missing something obvious.