From unknown Tue Aug 19 09:59:52 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#61100 <61100@debbugs.gnu.org> To: bug#61100 <61100@debbugs.gnu.org> Subject: Status: 29.0.60; `shell-command' displays all of *Shell Command Output* in the minibuffer Reply-To: bug#61100 <61100@debbugs.gnu.org> Date: Tue, 19 Aug 2025 16:59:52 +0000 retitle 61100 29.0.60; `shell-command' displays all of *Shell Command Outpu= t* in the minibuffer reassign 61100 emacs submitter 61100 Reza Shafiei severity 61100 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 27 11:35:48 2023 Received: (at submit) by debbugs.gnu.org; 27 Jan 2023 16:35:48 +0000 Received: from localhost ([127.0.0.1]:38341 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLRhZ-0008OA-OF for submit@debbugs.gnu.org; Fri, 27 Jan 2023 11:35:48 -0500 Received: from lists.gnu.org ([209.51.188.17]:54604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLQXO-0006Pu-MR for submit@debbugs.gnu.org; Fri, 27 Jan 2023 10:21:14 -0500 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 1pLQXO-0002UZ-Fz for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2023 10:21:10 -0500 Received: from mail-ve1eur01olkn082f.outbound.protection.outlook.com ([2a01:111:f400:fe1f::82f] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLQXM-0001JW-6k for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2023 10:21:10 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cVEp7aygqEChyjDi605LmRNgJ856wxkjoHwJNxLLmdo+mGWyKlV4qSvzEw146KXk8F+zU1ierNlNzdkgTlobnXgMr8U2pAdOP13dVvdwur3myllA3K/NiVJ+Mtp2LuAGvHjzHllRp/CjmfdE2ikBIfr2xxhvWYTVqddCjeTOHgLRu9g6dc0chYhGL/Q2QCnGzdLby4fIFQPThByOgwvgybvqLWCLz/ShRnt5MgansBywsl39IsXmCp3bvAuzvqbGgk1tWQExBnFAq2zHgvW1TeWnCqmSmTJb5VCuIXhmrRLg03Z8O66hypPuQBzBVV6A4FfaX1IVX0+AjVt1PeVO6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AU18FE5bDBGz3KpA/L2QBQlg1TvadDI/R9TZg0CfHvQ=; b=Pnmwneybe7X231Cwe/h3Loy8+lzKLzR+CXuzHy8sGIZPvrT/YtcJGZRlKC/lqu3FrMDOjFdDcq1EJbo6Q/DFAR604KgIVsJwCwD73FgSFosSF1CnQhLkvuDg4oRK867/HTDepl4DC2eQRmaN3XzeX2OXjh4MqkUVzn4oJVDq+Zl/nmjXS0uVPxpyOBNzyc12jp75gyQ5l2DLOZ4UYKGz7nvFNaU2vcyPPM+O8sEYHW4IrTbT1WiVS4/n30CSNK+q5befWkmwk6oa/57ms4o8aTy8odRBYYl2DrAqipYOtg4J4niv4v2U8mo7Vdh5sYqrz2qElERvmtXIrjY1bA6H1w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AU18FE5bDBGz3KpA/L2QBQlg1TvadDI/R9TZg0CfHvQ=; b=fUzY7SzGS5w10z03NjVWEYNeB4c5TFCl/yGQO+Dh3ubfaUMwcUyw09yaFCyTuBFGMhpkRGiLQeWaBmlIEUg9nHb4AWggtpETNKDGpDnQ4Cy97eYRhQ5Oxj85tOaS839t7kc+0aZFfqV40bCKm8cqI7qG9wJDMoEhfePlt4L3JUv62lhRyIbjfWCsJ7cm6rq/iOne9rc7CNm4KLhlZPWtioABkR2iKH6p4oVMM0XiBpYJEkcSe+z32EX+n7Gk2rWo3rpjZh+ajov6iorxoas6nZx32kRk5mfjbnR36W0wY22+zULgOeaZ4S5a6zaYPvRRf1tAFA0Izg8WwqQTdFBTNw== Received: from PA4P189MB1311.EURP189.PROD.OUTLOOK.COM (2603:10a6:102:cb::17) by AM0P189MB0626.EURP189.PROD.OUTLOOK.COM (2603:10a6:208:199::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.22; Fri, 27 Jan 2023 15:16:01 +0000 Received: from PA4P189MB1311.EURP189.PROD.OUTLOOK.COM ([fe80::be1:e5d4:98bd:b2a9]) by PA4P189MB1311.EURP189.PROD.OUTLOOK.COM ([fe80::be1:e5d4:98bd:b2a9%8]) with mapi id 15.20.6043.023; Fri, 27 Jan 2023 15:16:01 +0000 From: Reza Shafiei To: "bug-gnu-emacs@gnu.org" Subject: 29.0.60; `shell-command' displays all of *Shell Command Output* in the minibuffer Thread-Topic: 29.0.60; `shell-command' displays all of *Shell Command Output* in the minibuffer Thread-Index: AQHZMmASRFqBxKPzmkW4L1BdVeMpOQ== Date: Fri, 27 Jan 2023 15:16:01 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-tmn: [t2azKXEntVe7/FJ7IK64DvhgILWgQmgF] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PA4P189MB1311:EE_|AM0P189MB0626:EE_ x-ms-office365-filtering-correlation-id: 214122e7-8987-4750-0df2-08db0079669b x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: nc9VtjVMgULTKNugih9GcCggtCbPQvx4fVP1SzZIDw22n0F/1TJR/sIuOMhHpBLWMqb0NRbO2USrvqJw/bN/GcSCRn7VMjFL1aoKjsneZPE1TfX0dLjgOnXFO9fYcA/a25hc/9sMd8zkbTNBUVVTTs2FNk+2RIWQBa1PfMB2VUSBYt5gpmeByqg6ic1xukB77n6m83Ek1/05mtKeSFs70GsuEgH97ZAw0egfXEGZxI5HP8sEBQKX0kRpl9VUQXaGath2G5Vb38HmZHch7i08JA0RvaRBjF0lwgZ+Zy0ktWz/Yo3O4BSuzv7A8IB7esmsXkjQ7LkWXg7yTWJgFKQHqxSHbO6yk7+zfQDEtdDDtdwR/Szh2VbdP27N8iZ8WzNcoIp/qM8vQpOERGlnan71YSMFoj5ICj6oqHU8cqHZ5K/XZeGQeiqKugsFaJjKfo+Ty8qrHyL4mE2WYlxHO+Evr9PGgmrhabhLK7GUclvroiRd0OqGfIPCIlJJ9ZEmdCHkqDXSUEa23SjegsvRZobB3jeJO6y8+L0vBoUxNTfoXbMujGw8lB6KYiFo8CNorEpSwzZ6lbAfOdzIzd4v3Z48yrmZZoFcIQ2BfsLLz1NYRI0= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?sKI+XZ9QEmrJgJfM8ONA3A0feI+98LfXTWT1Lnw0OrQ4elw0G5m8hc48J2?= =?iso-8859-1?Q?COdSnGCkXbQGMwq1z6NItLjH3Dvwz/rbnPFAe7rY1DfUKyrlthCt3ZsTKF?= =?iso-8859-1?Q?jV5jK5i+Ns5wkBqkdsWNk/UX+JnqVWXx9Kkfkb6ioFfHxMA+GxUtFPLWf6?= =?iso-8859-1?Q?5pmBE8h7N2JfX5ylyruYgrF985YR30qWQVP2LlpZtrDw6d4fRzhBBzKWZS?= =?iso-8859-1?Q?RcukKCNqPnFJUZ8Ql3PDu9PPGsIoZydPPyYCXM7QVUPYSNi180MX2mFQvR?= =?iso-8859-1?Q?1f8z9fbSmY8seQgQfc+6KRBMJUKa8osutpHeMiyFEzMEz3aKLE8SRcr6RP?= =?iso-8859-1?Q?hUZOSXZcc50KImo+xJ4d1VNJz/N9JM7A3s5mcHmReViKQDs4YqtjzIqvCq?= =?iso-8859-1?Q?gJyCOFNxkrWI4ljxbF2Lq3a9ryERKxAy4S+BUAyqa7mEvkRyJTBhNvZHd9?= =?iso-8859-1?Q?RFZIqfW8kCRtryf6sfHStTbx/yBD1eCpbRyEAihCZtze1Mt4Omv8hMLcMr?= =?iso-8859-1?Q?K85gaQTT7Joya/i+vIeMpTtIWsPGehWN2q2X0BwQg3oUTpHC0qMoNphUcT?= =?iso-8859-1?Q?sahoRKerzdsToOJ4HLdfveHUIm33ANO/0QCN3dvz75W8YuVXtSGLG2npCp?= =?iso-8859-1?Q?VqQJ6HExVIx4LlD9r4T6j7Ji3uNa9wIdPTCS9IqgKb1QuVW8Qs/zHRA9xK?= =?iso-8859-1?Q?CqFmHOaA101AXJ3XK0IGr6IyTLPKEpEMy40LMBpaT2ApvVKz2mQfPe7oa7?= =?iso-8859-1?Q?M1Ji+cw1FgO55wEReZcj6+uztTEcAxMSCQisYemwsuG19ZespdBKovku/B?= =?iso-8859-1?Q?nWVuuT5IrBYlRlJYTsz3gAIoAsd9+Sj1uGKF70EEHBPAmzozYiR6RUaX7d?= =?iso-8859-1?Q?TeYzILdwaCiLsdIVJv1YQ5N8Kl0l7heDmedMN9TNlhySXc4gIScHgF1Mv0?= =?iso-8859-1?Q?C64Ijizpun5YXbfvbAjJimpWwC5UJHiPzDiyOwyP2GzRP781gMdWy8GynQ?= =?iso-8859-1?Q?bKliNOVP/bPKFIYWanZEtnmRYjL2l6fR7nnwS5Xfy7lvudCy13zooopMGW?= =?iso-8859-1?Q?Z0EkES3WA9K/fI8oU5vk0TzLhPMjl57Dado+BWjErfqD7M3Ui0YbCX1Da3?= =?iso-8859-1?Q?MFnNB6zS8CUksrfmZpTRrkHy2GgcKbBW4LJZfITpqKpEKA2Eu1uiWRweTY?= =?iso-8859-1?Q?dTVOR0uGCLY80GBSGTTTNWfNFbgj1D49OlF9n3QbnqmNbcNR04LC0NaHVp?= =?iso-8859-1?Q?nBIhPiu5QAgEDTIpnb1I9ujg8t4zJ4BNDoazQ5yA8X/ZX615gNe1NR5tkl?= =?iso-8859-1?Q?p/Qb?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PA4P189MB1311.EURP189.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 214122e7-8987-4750-0df2-08db0079669b X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jan 2023 15:16:01.5381 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0P189MB0626 Received-SPF: pass client-ip=2a01:111:f400:fe1f::82f; envelope-from=joghd1988@outlook.com; helo=EUR01-VE1-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 27 Jan 2023 11:35:44 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) Hello Emacs maintainers,=0A= =0A= I apologize in advance for any mistakes since English is not my native=0A= language and it is the first time that I report a bug.=0A= =0A= How to reproduce:=0A= 1) emacs -Q=0A= 2) (setq shell-command-dont-erase-buffer t)=0A= 3) M-! with some command that generates short output, like=0A= M-! echo "foo". Output is displayed in the minibuffer:=0A= ----------------=0A= foo=0A= ----------------=0A= 4) M-! with another command that also generates short output,=0A= like M-! echo "bar". You will see that the output of previous=0A= commands is also displayed again in the minibuffer:=0A= ----------------=0A= foo=0A= bar=0A= ----------------=0A= =0A= `shell-command-on-region' has the same behavior.=0A= =0A= What I understand form the documentation of these two commands is=0A= that only the output of the most recent command should be=0A= displayed in the minibuffer (if it is short of course), not the=0A= entire content of *Shell Command Output*.=0A= =0A= Thanks=0A= =0A= In GNU Emacs 29.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version=0A= 3.24.36, cairo version 1.17.6) of 2023-01-25 built on reza-manjaro=0A= Repository revision: cfb180329b567d907c11fc9f2bd24728729ec689=0A= Repository branch: makepkg=0A= System Description: Manjaro Linux=0A= =0A= Configured using:=0A= 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib=0A= --localstatedir=3D/var --mandir=3D/usr/share/man --with-gameuser=3D:games= =0A= --with-modules --without-libotf --without-m17n-flt --without-gconf=0A= --with-native-compilation --with-xinput2 --with-pgtk --without-xaw3d=0A= --with-sound=3Dalsa --with-tree-sitter --without-gpm=0A= --without-compress-install --with-mailutils=0A= '--program-transform-name=3Ds/\([ec]tags\)/\1.emacs/'=0A= 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fno-plt -fexceptions= =0A= -Wp,-D_FORTIFY_SOURCE=3D2 -Wformat -Werror=3Dformat-security=0A= -fstack-clash-protection -fcf-protection'=0A= LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'=0A= =0A= Configured features:=0A= ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON=0A= LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK=0A= PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS=0A= TREE_SITTER WEBP XIM GTK3 ZLIB=0A= =0A= Important settings:=0A= value of $LC_MONETARY: en_GB.UTF-8=0A= value of $LC_NUMERIC: en_GB.UTF-8=0A= value of $LC_TIME: en_GB.UTF-8=0A= value of $LANG: en_GB.UTF-8=0A= value of $XMODIFIERS: @im=3Dibus=0A= locale-coding-system: utf-8-unix=0A= =0A= Major mode: Lisp Interaction=0A= =0A= Minor modes in effect:=0A= tooltip-mode: t=0A= global-eldoc-mode: t=0A= eldoc-mode: t=0A= show-paren-mode: t=0A= electric-indent-mode: t=0A= mouse-wheel-mode: t=0A= tool-bar-mode: t=0A= menu-bar-mode: t=0A= file-name-shadow-mode: t=0A= global-font-lock-mode: t=0A= font-lock-mode: t=0A= blink-cursor-mode: t=0A= line-number-mode: t=0A= indent-tabs-mode: t=0A= transient-mark-mode: t=0A= auto-composition-mode: t=0A= auto-encryption-mode: t=0A= auto-compression-mode: t=0A= =0A= Load-path shadows:=0A= None found.=0A= =0A= Features:=0A= (shadow sort mail-extr emacsbug message mailcap yank-media puny dired=0A= dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068=0A= epg-config gnus-util text-property-search time-date mm-decode mm-bodies=0A= mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs=0A= comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra=0A= help-mode bytecomp byte-compile cl-lib sendmail rfc2047 rfc2045=0A= ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv=0A= eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type=0A= elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd=0A= tool-bar dnd fontset image regexp-opt fringe tabulated-list replace=0A= newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar=0A= rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock=0A= font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq=0A= simple cl-generic indonesian philippine cham georgian utf-8-lang=0A= misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms=0A= cp51932 hebrew greek romanian slovak czech european ethiopic indian=0A= cyrillic chinese composite emoji-zwj charscript charprop case-table=0A= epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button=0A= loaddefs theme-loaddefs faces cus-face macroexp files window=0A= text-properties overlay sha1 md5 base64 format env code-pages mule=0A= custom widget keymap hashtable-print-readable backquote threads dbusbind=0A= inotify dynamic-setting system-font-setting font-render-setting cairo=0A= gtk pgtk lcms2 multi-tty make-network-process native-compile emacs)=0A= =0A= Memory information:=0A= ((conses 16 76291 5234)=0A= (symbols 48 7101 0)=0A= (strings 32 19469 2200)=0A= (string-bytes 1 588970)=0A= (vectors 16 15606)=0A= (vector-slots 8 321294 14309)=0A= (floats 8 27 46)=0A= (intervals 56 252 0)=0A= (buffers 984 10))=0A= From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 27 12:03:32 2023 Received: (at 61100) by debbugs.gnu.org; 27 Jan 2023 17:03:32 +0000 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 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 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==; 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 Date: Fri, 27 Jan 2023 19:03:01 +0200 Message-Id: <83zga3c3lm.fsf@gnu.org> From: Eli Zaretskii To: Reza Shafiei In-Reply-To: (message from Reza Shafiei on Fri, 27 Jan 2023 15:16:01 +0000) Subject: Re: bug#61100: 29.0.60; `shell-command' displays all of *Shell Command Output* in the minibuffer References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61100 Cc: 61100@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 27 14:43:10 2023 Received: (at 61100) by debbugs.gnu.org; 27 Jan 2023 19:43:10 +0000 Received: from localhost ([127.0.0.1]:38533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLUcv-0004vV-Ke for submit@debbugs.gnu.org; Fri, 27 Jan 2023 14:43:10 -0500 Received: from mail-am7eur03olkn2053.outbound.protection.outlook.com ([40.92.59.53]:40032 helo=EUR03-AM7-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLUCB-0004E6-Dq for 61100@debbugs.gnu.org; Fri, 27 Jan 2023 14:15:31 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O1INncWIfGwJZuN6UPB+XJ2nH4vXbr6r6Hai44PwSAzv1fKmO9rz3mQrHM9XedMxomJ0SCyL45ycvXix0YGYP6acoNKFuXtjUYkeoqj1pTWN/Wu1VyefDZkljGcoqyv/P9zqRtw9rqG7ISDAuO9nTKlW2aVrOikFd869D4eyNi30jhkw77dz+fqMmQefqPJLU9Lv53LelwRcM7rTfja/oOBeTc/QTd/xnZNwfJpflOoRHoe/yPsjbVIv3CgTeSflJt7oDwmKaTcFNc5+0/cdHc/KXtL8WOq8YPuSathXyMnSeNf1yl0iJ4ZA0d5ad/i4LpPbNfzoGUG9yiJuh1nnsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TaVqf2BYneMbGnW0ZruNUObsjJbRCu8HwADe0lxgAAk=; b=Dc6MPg9cpAGGn3z9B69cloDm7FhkWbAsVN74OE6AZVSbXj7B3GFknNRSVoCRtRMzhB4bLFq4qWPUEY5jaekQg2SIQCkqbb4N0IWCZ3b7Spn/hc5kh4EGLpg9kkh51l5FnGbve3RpQGvm2KQ9EmxDWXsyv/VBneXOwJ46lcHclcy6F2QYOSvJanflldlr0uEe+JX6wwkkrCGKr3P4gfnmO7xeY7b+vTV6JPMoVVry/gqXlIqp68T8fit4zcZaXV75WsPaCyt2cyqsH2RdwKRwU5cwdcxkEuK5FFhMvmOgFXJk/pnBsAgfPcv8Fme7GWw43CwVF55N9Nu3mbgmyVsOjQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TaVqf2BYneMbGnW0ZruNUObsjJbRCu8HwADe0lxgAAk=; b=W+U1f5g9YzNh7NCKqazauyuhOnHrlcwpkePgIB4OuSKmOrJ89/2gBWqhHbJ4rOSa7bX+VnoUVaZdST0kFmKAbRg+RfwjXhwqGD2hgTWhOR1rSDloo6a4y7TZloZXjMZyPG0gPzSnW+4c6kARNDiM5XupsQvTN3X9jQisi4PK7yYmhLKewrsQ0yuoCFiG1KiQEpL3ip/RXZsgZO+Hhpu2A0GTlvH3a+/9yT9PJYrAZ4wTKYy2gYAQ9Rr+KR8fbDvAnQ5g7NHBkc9HKTCpsnl7Hn5QqtJlasBtc1iTmTFH+5PqaGmQ78dsUmbPBNTtgna/UHc7166KUfLcvBLNFssTTw== Received: from PA4P189MB1311.EURP189.PROD.OUTLOOK.COM (2603:10a6:102:cb::17) by AS4P189MB1893.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:4b4::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.22; Fri, 27 Jan 2023 19:15:24 +0000 Received: from PA4P189MB1311.EURP189.PROD.OUTLOOK.COM ([fe80::be1:e5d4:98bd:b2a9]) by PA4P189MB1311.EURP189.PROD.OUTLOOK.COM ([fe80::be1:e5d4:98bd:b2a9%8]) with mapi id 15.20.6043.023; Fri, 27 Jan 2023 19:15:24 +0000 From: Reza Shafiei To: Eli Zaretskii Subject: Re: bug#61100: 29.0.60; `shell-command' displays all of *Shell Command Output* in the minibuffer Thread-Topic: bug#61100: 29.0.60; `shell-command' displays all of *Shell Command Output* in the minibuffer Thread-Index: AQHZMmASRFqBxKPzmkW4L1BdVeMpOa6yfcndgAAkgRc= Date: Fri, 27 Jan 2023 19:15:24 +0000 Message-ID: References: <83zga3c3lm.fsf@gnu.org> In-Reply-To: <83zga3c3lm.fsf@gnu.org> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [GlvGL7++feGAYQG6onWBl37l3tU3P05+] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PA4P189MB1311:EE_|AS4P189MB1893:EE_ x-ms-office365-filtering-correlation-id: 0fa81fc8-64a0-490e-7e85-08db009ad75a x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: b2he91VFEgZnObbhGbbaIZJD31EPcMaS9ovzZTkYXaY3DZgHt16MUYxl58ayBLy0sddkHXzQYVslqSVwowrpnZ1E/4FJk74XYjDIPuDVpSTHKOSCFeUXotYEX75uwD2IIGps+aAJc+o2de7aGgWZ46kd3U7AcwmmM21zMMKLy0if/jn8/EBUBe96Ny/ORZQ4Q5QUnunsE5X7aprMq6IV5pJ8WUBC6XsbeAqMxm0zFTae/6RLE5rPdRpCyDqxqPw4v//3onJw7HGWx0oZZy3eTxBW+VqKAxm/qYDDmP4ITRMK+twV4qKzLoY0N0Or6o6DH/B1/w+EEv1dtPTZ3x7s10ACJsIA+8jAqKZ7++nAYf+QsHl83oDxSkagEN0Sak2DVqPYKxBpTbbpnpDQKS4hP6tCXRzM554r4u+QYh1gL7C8ywKGD7ixC2enBV7JxrjsgPy5/LI2D26I5ZEugssC5c1GRD8xxJqPukl4V4OblAzbhKUNP+o+TrzX5nYkoJ5d3nEl50X9kb6xgpLg5t2Pvz4DvijS75PFR/KyIGRtiQt8p4j3toRrvBq+gZAFZNTpsEMBHiMWxK4e/J5ZG1I/8+W/ATFBAwqqn8+3dQlk49Bl5mQH575t2PN28xkLOlV2ZWzUPeCjy7RqGfslygXeuA== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?CIi2Sj9QAkgFWJ3nHalM67lcwW8rGYQQFbds/qrOC0SqgZuzryPsLya83+?= =?iso-8859-1?Q?a9t9W9FXfJhYPibBhIV2QRKtByW9rOkJpJ1vQ/hNNEsIrjNR1k5LiMoet6?= =?iso-8859-1?Q?Ifqvuui+cw9XM7RPiEADLvVilKro45b8AficA6RsAcldN6emhWBEDhkXLQ?= =?iso-8859-1?Q?4ZbxyuGxqVmUwnMSrDxkS3bz1VKB89c1gzbY403HMfRKXZhF5Zt9J7Ui4A?= =?iso-8859-1?Q?7vSQ56F7honpBIWUI8R+i+ZBI+HJrbsh6OlycXjEF34xotg8uq2FuYAi5M?= =?iso-8859-1?Q?8QR20KucHStFiG10fMAB5ONtfuZzK8GRFJ3+f4VDDoky0vOlNshZElAS5+?= =?iso-8859-1?Q?b8N0W1xT1Zfz8mpOm4eBVCUgG8PtRv71JF/DcqiAzHL/qWPThNIreBXKva?= =?iso-8859-1?Q?NppmY9CP+AEGCDHq15u+sB1xMjvm49gZWHBtGhWJ09feag53+YILZ89rZA?= =?iso-8859-1?Q?+g1YlKishBjAxt0Ynda1mSmwlp8sKiaKAWOzOWFdbBS5I2HfBn8uz/e4CE?= =?iso-8859-1?Q?uuwMjCFrrDRXb0pWFNfEnQVgLBhRTTaqqS12unfo8LNkmyeHVcVv1VJ52w?= =?iso-8859-1?Q?r3eOgNWJWPImZ8waBYK+te4Hc7vuP5pGFQUmuYzNtpl4TriqvqMINWlkkd?= =?iso-8859-1?Q?TTESkgnyptrgKy1LAtaU2E5XX7eF15FDaPCEEQ06GpTimnuezHiTqv5wit?= =?iso-8859-1?Q?Z0APWBKJGz4hPelr+OnFOTHziu3DXzhIXTabKuq2hKHD4RYrumI3/ftsiz?= =?iso-8859-1?Q?Vp7MiPVIgISUJlv+oSR5QPVmpmlxRwSGUIhnPmQCchdEK3iagr89IC5Blj?= =?iso-8859-1?Q?zP5qalQqYBzMf5Gt/SujrXoyrgUtp4jzPZhyHPHoRLA+mPw9tYwhbgi+FD?= =?iso-8859-1?Q?dd5S31r2ypH8ZEs+e3LXwHUQUF17/OB88auVCzjiKeKlWbAsepO28rhskh?= =?iso-8859-1?Q?u12veudknjGx8VQKKpDnhkVm0usRBtTvbBOWDMZDe+ygst0ZVfILXEMeMN?= =?iso-8859-1?Q?sD/6Xwyk84pT9cXjO8DAi4Nd1K1o3gpETDw1cJXgrmRNrUWPR1Gd9B396N?= =?iso-8859-1?Q?4Nlr3sTQ1HuDq14CydT87M7uzNkDjRgJmVSeSrhYeqwi+YxFbvYi3fqe39?= =?iso-8859-1?Q?cdwXxccUkI7q3uBitNuYEI5QpGaAIZI5U3pD83af/xdJweEHxxVlOb7bzu?= =?iso-8859-1?Q?D+1UsaR62HyUEoiLleb0cJPuIRnvE1rSAYKUfb6tOUnDcnJNwChA6UJY3b?= =?iso-8859-1?Q?HJza13Ok9yk1JJyCm/S+K0sbppAnTK/mei0xbHKtqbr+o/8X9DJp5Ulnvs?= =?iso-8859-1?Q?tjzx?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PA4P189MB1311.EURP189.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 0fa81fc8-64a0-490e-7e85-08db009ad75a X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jan 2023 19:15:24.0428 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4P189MB1893 X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 61100 X-Mailman-Approved-At: Fri, 27 Jan 2023 14:43:08 -0500 Cc: "61100@debbugs.gnu.org" <61100@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) =0A= > From: Eli Zaretskii =0A= >=0A= > I've now updated the documentation to describe this effect of=0A= > customizing that variable. I think this fixes the discrepancy.=0A= =0A= Yes, it does. Thanks.=0A= =0A= But is it really the intended/expected behavior? I thought it is not;=0A= that's why I reported it. I customize shell-command-dont-erase-buffer=0A= because I like to be able to see and compare the output of different=0A= commands in *Shell Command Output*, and refer to them later.=0A= =0A= If it is the intended behavior, then now the documentation clarifies it.=0A= Thanks again.=0A= From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 27 14:56:42 2023 Received: (at 61100) by debbugs.gnu.org; 27 Jan 2023 19:56:42 +0000 Received: from localhost ([127.0.0.1]:38547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLUq2-0005Ks-0r for submit@debbugs.gnu.org; Fri, 27 Jan 2023 14:56:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLUpy-0005Kb-1c for 61100@debbugs.gnu.org; Fri, 27 Jan 2023 14:56:40 -0500 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 1pLUps-0003Fy-Eb; Fri, 27 Jan 2023 14:56:32 -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=WTb7AJUEte+ZMCu2Lqi06LoNc+KYJkqzPMMt0iOlFBg=; b=a1G1yjp0jCTI loTF9pw8UZNFcu/Nfm29qxnZdtA1F4XaHkeYyreRWFD0grTWgk7eoB4E/7t5oDJbULuFvfsKcTA5l zhDGE5w74dNxJhYQKL/KTvfgUCwyPS1Aee26tRxtx2POf9tDoYlNsIMnQO9rA42rF8Z5dX5VjRXti muGfoxekhpuoDLHBLlqTbN+UFODX32U6L2RVNzfiTmxfIGvJAZCZa/HuUWX+d+NZDpZJZDT+IJ9yW rAiNK1G5FQZ4tVLDpSxZ3+IncBtwPDDhj51QEQ4pwy1rWSOaTePMTiBhwzUiCmsZupCmpi0sr5sLs rLKVn0yuASrUmh6ywATRbA==; 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 1pLUpr-0008SC-U7; Fri, 27 Jan 2023 14:56:32 -0500 Date: Fri, 27 Jan 2023 21:56:17 +0200 Message-Id: <83tu0bbvku.fsf@gnu.org> From: Eli Zaretskii To: Reza Shafiei In-Reply-To: (message from Reza Shafiei on Fri, 27 Jan 2023 19:15:24 +0000) Subject: Re: bug#61100: 29.0.60; `shell-command' displays all of *Shell Command Output* in the minibuffer References: <83zga3c3lm.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61100 Cc: 61100@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Reza Shafiei > CC: "61100@debbugs.gnu.org" <61100@debbugs.gnu.org> > Date: Fri, 27 Jan 2023 19:15:24 +0000 > msip_labels: > > > > From: Eli Zaretskii > > > > I've now updated the documentation to describe this effect of > > customizing that variable. I think this fixes the discrepancy. > > Yes, it does. Thanks. > > But is it really the intended/expected behavior? I thought it is not; > that's why I reported it. I customize shell-command-dont-erase-buffer > because I like to be able to see and compare the output of different > commands in *Shell Command Output*, and refer to them later. > > If it is the intended behavior, then now the documentation clarifies it. I don't see how we can have the behavior you expected without a complete redesign of how the output buffer and the text in it are managed. I won't object to such a redesign if someone wants to work on that, but I also don't think it's very important to do that on behalf of a minor feature such as shell-command-dont-erase-buffer.