From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#18135: bug#3735: shell-mode editing, movement, and command entry broken by prompt/output changes Date: Sun, 05 Dec 2021 20:27:16 +0100 Message-ID: <8735n6svhn.fsf@gnus.org> References: <9A88C51B-AE7B-4FD8-9929-6F058AC23AE6@gmail.com> <87lf10138e.fsf_-_@gnus.org> <33D68609-31C2-465C-8718-667B5F51B50E@donhopkins.com> <87bl1v3u99.fsf@miha-pc> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8608"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 3735@debbugs.gnu.org, dsb@smart.net, Chong Yidong , 18135@debbugs.gnu.org, Don Hopkins To: miha@kamnitnik.top Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 05 20:28: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 1mtxBc-00022w-PZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Dec 2021 20:28:36 +0100 Original-Received: from localhost ([::1]:45018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtxBb-0003YR-92 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Dec 2021 14:28:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtxB5-0003Y9-RT for bug-gnu-emacs@gnu.org; Sun, 05 Dec 2021 14:28:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47944) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtxB3-0007Gc-UL for bug-gnu-emacs@gnu.org; Sun, 05 Dec 2021 14:28:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mtxB3-0002c8-La for bug-gnu-emacs@gnu.org; Sun, 05 Dec 2021 14:28:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Dec 2021 19:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18135 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 18135-submit@debbugs.gnu.org id=B18135.163873245110001 (code B ref 18135); Sun, 05 Dec 2021 19:28:01 +0000 Original-Received: (at 18135) by debbugs.gnu.org; 5 Dec 2021 19:27:31 +0000 Original-Received: from localhost ([127.0.0.1]:59488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtxAZ-0002bE-BR for submit@debbugs.gnu.org; Sun, 05 Dec 2021 14:27:31 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:55020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtxAX-0002ay-5M; Sun, 05 Dec 2021 14:27:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=bUus2oXwwFXupJEyQJ+/ujsenTAsSGPBAKEEIqYsaZI=; b=ctBzGd6iyiKw0r7SzZuZQ0PInD 0WMWEToeBYH6rEodlOyJHFbEy8OLdLB+H7NVkVZfoeaJ+7C4Z0E9B3/XIGSisQefw+dl/2YdH9Td9 5MOXc1emI0wcMaWHR/6wrVHQ2750XjhAbMgE69Nw0y43xvyekjjHMBSfsHhbEVugLjqU=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtxAL-000295-4Y; Sun, 05 Dec 2021 20:27:19 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEWvPDZcRDIRCwrX son///9/75/RAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+UMBRMYA30B6WgAAAHDSURBVDjLjZPrsesg DIQFNICgAYQbMFb/vd1d+ZE4c35cJhPb+mD1RKTK5BLJ83sJFh5pnM8voNhqU2oe0l4gJ51CoZHe JzLVMo9JektRPfPvB8BaqSOi+gJDIiKZbzvCEeH29DZHXvzpr33CIxLQNv8Af6+fQnyBOa39L6gX 0PomVR+ALfbYzdsJLE/f2iePzaNjYuNQL2t9lLzRq2jX6r6nx4/u8S+pVlX3eWtZ05q0ddG8Lfc1 1wO6u+cuzQde1I4b4DikizQbvruPfIPdY2E0NoeWTZPTjV/AjZp7Q3waldZCexHdKLrmhniNel2p 4MIXRxU6i0KxfpxSeOkE0XTWtRvtS+B78wNRsr293eAg2HFgIN/SCrLZ5ALYgM9htSAt5D8CzAAQ 0KgEtxhj8iZmiBVf7fQJ7+VyrosZJNN+gXEDY6BqZXndU/SWpbiAqTkSTVSNGiUCSs0ACtCMHVWO /wWg3Q9rbQBU3OVwYVHu1bFNLfnSLvPuNhusUxO87ZgFoSjtrbLVk03pyxTOr9HtiAXFJdiy4Z7d w9kjOxQZWpyg53qUM21akVlt3+CI6QkgHxBtjCg0HH1uWr9mkXaAf5OiilE4aSzrAAAAJXRFWHRk YXRlOmNyZWF0ZQAyMDIxLTEyLTA1VDE5OjI0OjAzKzAwOjAwCssKKwAAACV0RVh0ZGF0ZTptb2Rp ZnkAMjAyMS0xMi0wNVQxOToyNDowMyswMDowMHuWspcAAAAASUVORK5CYII= X-Now-Playing: The Police's _Outlandos d'Amour_: "Truth Hits Everybody" In-Reply-To: <87bl1v3u99.fsf@miha-pc> (miha@kamnitnik.top's message of "Sun, 05 Dec 2021 17:13:06 +0100") 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:221639 Archived-At: miha@kamnitnik.top writes: > Reproducer: > > - copy " -la" into kill ring > - type "echo ls" into M-x shell > - (Shell gives output line "ls".) > - Go up to output line "ls" (C-p). > - yank " -la" > - press C-b > - the line now "ls -la" with point after "l" > - press RET > > Only " -la" is sent to the process instead of "ls -la" Thanks; with that I'm also able to reproduce the problem. > I am willing to write up a patch to fix this. I'm thinking of having > comint-mode register a function in after-change-functions to mark text > inserted in the 'output' field as 'output'. Would this be okay or are > there any obvious flaws with this approach? I think that sounds like a promising approach, but I wonder whether something could be done with rear-nonsticky here. `field' isn't rear-sticky here for probably good reasons, but perhaps something could be tweaked there? (I haven't actually tried, though.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no