GNU bug report logs - #79885
shell-command-on-region: add REPLACE for ERROR-BUFFER too

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Dan Jacobson <jidanni@HIDDEN>; dated Tue, 25 Nov 2025 20:23:07 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Nov 2025 20:23:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 25 15:23:03 2025
Received: from localhost ([127.0.0.1]:41949 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vNzZ0-0001FF-Jy
	for submit <at> debbugs.gnu.org; Tue, 25 Nov 2025 15:23:03 -0500
Received: from lists.gnu.org ([2001:470:142::17]:59304)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <jidanni@HIDDEN>)
 id 1vNG8p-0001Iq-Tp
 for submit <at> debbugs.gnu.org; Sun, 23 Nov 2025 14:53:00 -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 <jidanni@HIDDEN>)
 id 1vNG8j-0003mM-Pi
 for bug-gnu-emacs@HIDDEN; Sun, 23 Nov 2025 14:52:53 -0500
Received: from cyan.elm.relay.mailchannels.net ([23.83.212.47])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jidanni@HIDDEN>)
 id 1vNG8h-000886-QF
 for bug-gnu-emacs@HIDDEN; Sun, 23 Nov 2025 14:52:53 -0500
X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 2A342920C62
 for <bug-gnu-emacs@HIDDEN>; Sun, 23 Nov 2025 19:52:50 +0000 (UTC)
Received: from pdx1-sub0-mail-a244.dreamhost.com
 (100-126-238-63.trex-nlb.outbound.svc.cluster.local [100.126.238.63])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id B0743920DF5
 for <bug-gnu-emacs@HIDDEN>; Sun, 23 Nov 2025 19:52:49 +0000 (UTC)
ARC-Seal: i=1; a=rsa-sha256; d=mailchannels.net; s=arc-2022; cv=none;
 t=1763927569;
 b=pSvcyFCVg2CqNNfVXvZpssYpvF/8sD3Ym6HuTD3VhdeQupUwBPO5REOekLmHJvzl2T21ls
 xXJ2WktWMYMieCzjRl1XJpxRmJChpzBZjS5oL/i8b/WmRZsezJDZDYdtrjqO0C8hegaC3C
 /yMJvCue8hm+H+PzHnt9o7lF27dWDkTDjWaRf+GO+hPGNYNC+xusiqaiu76XxjLnSSY1f1
 asWpDOFs5fTfOxH2HpdlcOKFGLPOOBkQjKgAWdNPcjHCqPoOfcD2KH+PHQBRDHaTV8w/ZJ
 J5PcsILOYX94/jhgR5mSv8y0I8nMixuZSUvQYIc8AHHomW8XgVD0PTvPIQWN3w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
 d=mailchannels.net; s=arc-2022; t=1763927569;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding:dkim-signature;
 bh=/LlTSjgmE1gkN+jBmZmfs+wAp65suzdh1Dvrip820Bk=;
 b=ZEwJnhf5n1Ap2+6RZ5yYn+PWn0YqRzANKCAvkccfdV61S+26F2PflKa0UzQSR09n8kiYIM
 ZeylOfglEqpdSjx5QPSErOlXthWPkXfLkK1eHfn0pTr/njXKAfbAgMvTTdZUg1lIIVkkZx
 RTnJ+KF/g5+eAfUNtlbUfhj7F8AGGEOlqogo9JOVwetogq+woya09RaRPg4dzoT5HAJZDW
 wwUlgTeEdMKR/9KQjNvvIVX+teQWNSJvAE2vMe7UbFmywL20RV/I7Kq/n6pryh9oSjtOA0
 CdGXpov+MteIZwP67Or4HJejD2kwwpiTgR++T2M5yC5GMTI/vLZO6TcedNz7zQ==
ARC-Authentication-Results: i=1; rspamd-7b65966669-qxkmh;
 auth=pass smtp.auth=dreamhost smtp.mailfrom=jidanni@HIDDEN
X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Tart-Duck: 54d5a5e17dd6199b_1763927569940_2209322481
X-MC-Loop-Signature: 1763927569940:2066938738
X-MC-Ingress-Time: 1763927569939
Received: from pdx1-sub0-mail-a244.dreamhost.com (pop.dreamhost.com
 [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384)
 by 100.126.238.63 (trex/7.1.3); Sun, 23 Nov 2025 19:52:49 +0000
Received: from jidanni.org (36-232-184-224.dynamic-ip.hinet.net
 [36.232.184.224])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 (Authenticated sender: jidanni@HIDDEN)
 by pdx1-sub0-mail-a244.dreamhost.com (Postfix) with ESMTPSA id 4dF041447Lz107N
 for <bug-gnu-emacs@HIDDEN>; Sun, 23 Nov 2025 11:52:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jidanni.org;
 s=dreamhost; t=1763927569;
 bh=/LlTSjgmE1gkN+jBmZmfs+wAp65suzdh1Dvrip820Bk=;
 h=From:To:Subject:Date:Content-Type:Content-Transfer-Encoding;
 b=IUGW1/Q8fWh9BDVb5ieHzmMYZsz/6qZBzHcBxNa6bLVg39VCL/oY7Pmt2R5pFMMkg
 kEXQvGlYci2tI27yDrw/gaa+Ortr5y06hsQBKSG9JCojzJT3Qon3tnng7SXx6NXNIa
 r47SC1PUKzBVr1i3n7LXcr2+YKm91CJZZxhgP/4gS07r2Lx9DjmKWf7axLB4rcmpSs
 n6/L0Z5L6owdbAbbvyrqdJ1ZNgASzKGAPGdgq1dF6Qf0Y3SgsUhlnwFoy6oFJRhj5p
 my8yTkih+oAOhjnFhYJQtxdDAmoP3WBPA0X/M0pZLDLe3RY2ra2hUH+E+ih4RbCra6
 QG3nIeke2zLSw==
Received: from jidanni by jidanni.org with local (Exim 4.98.2)
 (envelope-from <jidanni@HIDDEN>) id 1vNG8c-000000000MI-0vp3
 for bug-gnu-emacs@HIDDEN; Mon, 24 Nov 2025 03:52:46 +0800
From: Dan Jacobson <jidanni@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: shell-command-on-region: add REPLACE for ERROR-BUFFER too
Date: Mon, 24 Nov 2025 03:52:46 +0800
Message-ID: <877bvgfrw1.3.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=23.83.212.47; envelope-from=jidanni@HIDDEN;
 helo=cyan.elm.relay.mailchannels.net
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)

shell-command-on-region docstring says:

  Optional fifth arg REPLACE, if non-nil, means to insert the
  output in place of text from START to END, putting point and mark
  around it.  If REPLACE is the symbol ‘no-mark’, don’t set the mark.

  Optional sixth arg ERROR-BUFFER, if non-nil, specifies a buffer
  or buffer name to which to direct the command’s standard error
  output.  If nil, error output is mingled with regular output.

OK, we see there is a REPLACE, but it only applies to the STDOUT buffer.
The ERROR-BUFFER has no REPLACE option, so the user is presented with
old errors too, stacked perhaps new at the top, or maybe new at the
bottom, (wish there was a timestamp option), separated with ^L's.

Therefore ERROR-BUFFER also needs a REPLACE option too.




Acknowledgement sent to Dan Jacobson <jidanni@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#79885; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 25 Nov 2025 20:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.