From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61100: 29.0.60; `shell-command' displays all of *Shell Command Output* in the minibuffer Date: Fri, 27 Jan 2023 19:03:01 +0200 Message-ID: <83zga3c3lm.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29136"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61100@debbugs.gnu.org To: Reza Shafiei Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 27 18:04:25 2023 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 1pLS9J-0007Qc-7j for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Jan 2023 18:04:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLS8y-0005oQ-Ib; Fri, 27 Jan 2023 12:04:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLS8w-0005oG-K2 for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2023 12:04:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pLS8w-0001j7-9v for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2023 12:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pLS8v-0000jH-Sb for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2023 12:04:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Jan 2023 17:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61100 X-GNU-PR-Package: emacs Original-Received: via spool by 61100-submit@debbugs.gnu.org id=B61100.16748390122762 (code B ref 61100); Fri, 27 Jan 2023 17:04:01 +0000 Original-Received: (at 61100) by debbugs.gnu.org; 27 Jan 2023 17:03:32 +0000 Original-Received: from localhost ([127.0.0.1]:38373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLS8Q-0000iT-T2 for submit@debbugs.gnu.org; Fri, 27 Jan 2023 12:03:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLS8M-0000iB-Cl for 61100@debbugs.gnu.org; Fri, 27 Jan 2023 12:03:30 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLS8G-0001eN-VD; Fri, 27 Jan 2023 12:03:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=l2aoCj2Gc/QqkZ8OcNEV8y7jS2lF8okokPfY6TqYnUA=; b=m4xjJo9sbQMa qmCRZ54FQjta+2k9gwnu8yG74y6xx/KHsNs4bPo+sRL4RR+Vck3kZiJqhcbJeCYlyjHoTmmb6HXym zFa+0rRodUghuNTV3rkyzrub/GlGTVxzapGinWWgG2/9YraRYfbr6qi8SsZZ8kRtfwaJcW8ra/D2C ixbSWbqpVs+dQDqJjFV+FSrwEbWXL6u9PZyfJy5NXfPuXNA6Z5CGC2TstuANzQ/3RIS4Z837hKmMD Jwpg43mLbGBNjn3ScM7s033j6145vzNMxJIsVsc1K76UTGQtUv7cbfRm8Rp8slCAdJK+4/Ed1eVH+ 2MMUIwO8BO3PMdDjAEHiLA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLS8C-00077y-J6; Fri, 27 Jan 2023 12:03:18 -0500 In-Reply-To: (message from Reza Shafiei on Fri, 27 Jan 2023 15:16:01 +0000) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254266 Archived-At: > From: Reza Shafiei > Date: Fri, 27 Jan 2023 15:16:01 +0000 > msip_labels: > > I apologize in advance for any mistakes since English is not my native > language and it is the first time that I report a bug. > > How to reproduce: > 1) emacs -Q > 2) (setq shell-command-dont-erase-buffer t) > 3) M-! with some command that generates short output, like > M-! echo "foo". Output is displayed in the minibuffer: > ---------------- > foo > ---------------- > 4) M-! with another command that also generates short output, > like M-! echo "bar". You will see that the output of previous > commands is also displayed again in the minibuffer: > ---------------- > foo > bar > ---------------- > > `shell-command-on-region' has the same behavior. > > What I understand form the documentation of these two commands is > that only the output of the most recent command should be > displayed in the minibuffer (if it is short of course), not the > entire content of *Shell Command Output*. Thanks. The documentation describes the default situation, where shell-command-dont-erase-buffer is not customized. I've now updated the documentation to describe this effect of customizing that variable. I think this fixes the discrepancy.