From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: miha--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#51009: 29.0.50; [PATCH] Fix small error in comint-send-input Date: Mon, 04 Oct 2021 16:21:08 +0200 Message-ID: <87v92c7twr.fsf@miha-pc> Reply-To: miha@kamnitnik.top Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32846"; mail-complaints-to="usenet@ciao.gmane.io" To: 51009@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 04 16:18:36 2021 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 1mXOnY-0008GP-Vu for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Oct 2021 16:18:33 +0200 Original-Received: from localhost ([::1]:39112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXOnX-00038I-S0 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Oct 2021 10:18:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXOn4-00037d-N5 for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 10:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54702) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXOn4-0007Mv-Fm for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 10:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXOn4-0005IT-60 for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 10:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: miha@kamnitnik.top Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Oct 2021 14:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51009 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163335706420327 (code B ref -1); Mon, 04 Oct 2021 14:18:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Oct 2021 14:17:44 +0000 Original-Received: from localhost ([127.0.0.1]:38015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXOml-0005Hn-RC for submit@debbugs.gnu.org; Mon, 04 Oct 2021 10:17:44 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:42040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXOmk-0005Hg-Dv for submit@debbugs.gnu.org; Mon, 04 Oct 2021 10:17:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXOmj-0002mP-Ry for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 10:17:42 -0400 Original-Received: from kamnitnik.top ([2001:19f0:5001:bf2:5400:2ff:fee0:2626]:36268) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXOmi-00071K-45 for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 10:17:41 -0400 Original-Received: from localhost (BSN-77-156-43.static.siol.net [193.77.156.43]) by kamnitnik.top (Postfix) with ESMTPSA id 07EF49C707 for ; Mon, 4 Oct 2021 14:17:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kamnitnik.top; s=mail; t=1633357056; bh=mCTYaHtjaJ1tY3D/51zmjHLexPFO5IBr7TOVs0d4caw=; h=From:To:Subject:Date:From; b=rdRcxTFEc7Cv/typbLeaErzxA1DbahN9heiBe1ZPBvTJGAuLmoc4UbTLF92ejPcxf 2dZMvoCJOYW+N+wSzUI+muZx7jMcGg5Ly+eFxVN0ng0hIgqP8jpPg0Cg+APqTN5Lis 9o246UcRM/szPm8Um00ihS+OqXZCnpoxCkgEBEvNzsCtQ2xTr4EA+q2Hl+VRxLxbs9 gqgRmixK2N1E8bOLvcSDNRUw/esRexuPHM3Lws/CrQLirw/6T0howF26TlkMaoUrtn vEiNrxUm7I0BFo3lpeUbtaYcYgReTy7q8CRu7hQO63wcciGEysR8qvr7KyNjGH/1qa rVOzmwwc47Okw== Received-SPF: pass client-ip=2001:19f0:5001:bf2:5400:2ff:fee0:2626; envelope-from=miha@kamnitnik.top; helo=kamnitnik.top X-Spam_score_int: 24 X-Spam_score: 2.4 X-Spam_bar: ++ X-Spam_report: (2.4 / 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, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=1.999, PDS_OTHER_BAD_TLD=1.999, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.bugs:216359 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain To reproduce this error, emacs -q: 1) M-x shell 2) Press RET a few times to make some shell prompts 3) Press C-p to go to the end of a non-last prompt 4) M-x comint-set-process-mark 5) type "echo foo" RET An error is then signaled: ansi-color-apply-on-region: Invalid search bound (wrong side of point). --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Fix-small-error-in-comint-send-input.patch Content-Transfer-Encoding: quoted-printable From=200a445ba23f18a902f807b36489695648b2e20b9a Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Miha=3D20Rihtar=3DC5=3DA1i=3DC4=3D8D?=3D Date: Mon, 4 Oct 2021 13:49:43 +0200 Subject: [PATCH] Fix small error in comint-send-input * lisp/comint.el (comint-send-input): Run comint-output-filter-functions with comint-last-output-start set correctly. =2D-- lisp/comint.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/comint.el b/lisp/comint.el index 1e5b990c77..a0873c0b6a 100644 =2D-- a/lisp/comint.el +++ b/lisp/comint.el @@ -1990,6 +1990,7 @@ comint-send-input =20 ;; This used to call comint-output-filter-functions, ;; but that scrolled the buffer in undesirable ways. + (set-marker comint-last-output-start pmark) (run-hook-with-args 'comint-output-filter-functions ""))))) =20 (defvar comint-preoutput-filter-functions nil =2D-=20 2.33.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCAAxFiEEmxVnesoT5rQXvVXnswkaGpIVmT8FAmFbDdQTHG1paGFAa2Ft bml0bmlrLnRvcAAKCRCzCRoakhWZP7ACD/4p9FJLX0341yNQG0fhf7/P470ArYe+ w71mK0J75Owvu52uvkUqpdcFhcC9BqlKhC3OEHr+6aVkjl0GUBIh25tZMJmVDiLu icl+stiACcpOQjsK8ufMEmvoouEd91ruNERrb+GgL3hpLwPY2EZfeY2s9nvPkr8i 8bqdtbD4mMhcIShgaonuuz7TKxrn4Lz38VbhnUcLnFGpwZ63YnX2wYgJkhO1L9Fb Xgin77XZmomdSkzcPeuyuEz7Op4iv5CLetQWobeIdwbWQVB//TbxpX8EoFq/ODdS h+bD+hpyUataTlZ3WBqlnwFA2XBueMRT9Oodn9qaZw5wK7u4FzKHEC9xjMy8eMF4 Vga/FwhJWFKX1rLSz9AKQ4Noe/YfFWhb3q3G329AwetkpVU3jccodnJNMsntnlna 1gT4UsxhCQAI01lxqpXekl4QFHWQF8h/cN11bBFrNu97FKSn5gfaaptG8eZo3sQv bmWpYQQ0faz6/HgyiIcY92Yy3tr0q6BMDxsCqkD+LhqBGxxb5M8e0OehNkn9++OY QthgSiA95XYigTdvO9WnnO9mOkCG08PgqMjUYCpgp24rityVc2jTrN8+QF7oaUWF C7eq51vJ4OC28QflwwPXV/UWxQwntKzZFAPmlnO0/KeiMevs6YPAwKbhCU5BSXxs ER5cmOEA6L7yZg== =3k+H -----END PGP SIGNATURE----- --==-=-=--