From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 28 18:40:15 2014 Received: (at submit) by debbugs.gnu.org; 28 Jul 2014 22:40:15 +0000 Received: from localhost ([127.0.0.1]:41395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XBtaX-0008FM-Fn for submit@debbugs.gnu.org; Mon, 28 Jul 2014 18:40:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51684) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XBkQU-00027d-3S for submit@debbugs.gnu.org; Mon, 28 Jul 2014 08:53:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBkQJ-0006x2-Hc for submit@debbugs.gnu.org; Mon, 28 Jul 2014 08:53:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41222) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBkQJ-0006wx-Eb for submit@debbugs.gnu.org; Mon, 28 Jul 2014 08:53:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBkQD-0006uU-VB for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 08:53:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBkQ8-0006vv-Gr for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 08:52:57 -0400 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:39345) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBkQ8-0006vr-8s for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 08:52:52 -0400 Received: by mail-wi0-f179.google.com with SMTP id f8so4299184wiw.6 for ; Mon, 28 Jul 2014 05:52:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:content-type:subject:date:message-id:cc:to:mime-version; bh=MzJFZEJF7sPpDse2D/vkWgc+txTYxrcH3JA0sx7tDjw=; b=bMsMluN9TuzQvnNCmEA4AcmJFIi3fmrpvfWNL0VFXlktjKWJgDtfqolzboHfG+D53r ApkZcECIBlcBBWBzfKXt/XzmOXqCSemtI0QRvZXGpzUzn8fmv4NStX+YwFjm3wXcM8fc Usi363RlXq2h0H4+Cb2HZO//YoyC4LjV7bm6OBBuaC4X6wHCpJicZmUbgBKyEX4qC1SB /m7mG2O8PJUJKrPgOCQUqcyRZ/fVBl2AMOm+cQY4sUgRh3pneobOqiAJM+trYztMlGQV NNxzwY8e5iIYqQB38qYJif6hcvOaDsQh/XVE+R8Zz/cnHrSLRELf1/RNzlpl3pXpw5i1 PySQ== X-Received: by 10.180.10.166 with SMTP id j6mr31273680wib.73.1406551968250; Mon, 28 Jul 2014 05:52:48 -0700 (PDT) Received: from [192.168.2.22] (92-108-60-150.dynamic.upc.nl. [92.108.60.150]) by mx.google.com with ESMTPSA id d4sm31114573wiy.13.2014.07.28.05.52.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Jul 2014 05:52:47 -0700 (PDT) From: Don Hopkins X-Google-Original-From: Don Hopkins Content-Type: multipart/signed; boundary="Apple-Mail=_537201DD-0039-4195-B78E-CC81C913A0B4"; protocol="application/pgp-signature"; micalg=pgp-sha1 Subject: Emacs bug # 3735 definitely not fixed (5 years later) Date: Mon, 28 Jul 2014 14:52:45 +0200 Message-Id: <9A88C51B-AE7B-4FD8-9929-6F058AC23AE6@gmail.com> To: dsb@smart.net, cyd@stupidchicken.com, bug-gnu-emacs@gnu.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) X-Mailer: Apple Mail (2.1510) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 28 Jul 2014 18:40:11 -0400 Cc: Don Hopkins X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) --Apple-Mail=_537201DD-0039-4195-B78E-CC81C913A0B4 Content-Type: multipart/alternative; boundary="Apple-Mail=_E07F7DC1-8D16-4CE2-BA41-0D6A3D264D2A" --Apple-Mail=_E07F7DC1-8D16-4CE2-BA41-0D6A3D264D2A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Daniel submitted this excellent bug report for a bug that has really = been causing me problems, which was claimed to have been fixed, but = definitely is not fixed in Emacs 23.3.1 or 24.3.1.=20 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D3735 Chong mentioned it was fixed in Emacs 23, but said he didn't recall who = fixed it. Apparently it was put back in and has been back for a long time.=20 Could you please investigate to see who fixed it, and who put it back = in, and WHY?=20 This bug REALLY needs to be fixed, as it makes shell mode practically = unusable, and as Daniel described, can lead to some very dangerous and = inexplicable accidents.=20 And whoever put the bug back in after it was fixed last time needs to = stop doing that, please.=20 -Don --Apple-Mail=_E07F7DC1-8D16-4CE2-BA41-0D6A3D264D2A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii http://debbug= s.gnu.org/cgi/bugreport.cgi?bug=3D3735

Chong = mentioned it was fixed in Emacs 23, but said he didn't recall who fixed = it.
Apparently it was put back in and has been back for a long = time. 
Could you please investigate to see who fixed it, = and who put it back in, and WHY? 
This bug REALLY needs = to be fixed, as it makes shell mode practically unusable, and as Daniel = described, can lead to some very dangerous and inexplicable = accidents. 
And whoever put the bug back in after it was = fixed last time needs to stop doing that, = please. 

-Don


<= /div>

= --Apple-Mail=_E07F7DC1-8D16-4CE2-BA41-0D6A3D264D2A-- --Apple-Mail=_537201DD-0039-4195-B78E-CC81C913A0B4 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQEcBAEBAgAGBQJT1kedAAoJENqWU3IyrE812EsIAKrzI1az87GlXpHsIyRntpZn DCrVnhH8XuOROPWe1COD5sq3gdxqTqcK+Oni8y15IBb1JuSdIrrIZge2UUz23TnS ZXda6GRwWkihQw5mNqEzvrVwfyR0y51SYphOiiEbu0CcP3WMeLO3ZmP6yLAvMZ+m hTllIo7sENUHHOvSLSadXJw6MfT2Idl+4hr4pcJszzGtRhlbpndq/zJAaPUmLVCv JBy4dlScv5pHIh96vANSnAsp3WztPg8Rj0hXLjDlQzTaqzYKPD5RhMG74NiLrJwd oUU1ng24+UEVzOmKlZ5mcjxAjugqYQE9f4l3tvuGivb6lyQIeZp5pPoZRXsS8Ag= =jJBl -----END PGP SIGNATURE----- --Apple-Mail=_537201DD-0039-4195-B78E-CC81C913A0B4-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 28 18:46:30 2014 Received: (at control) by debbugs.gnu.org; 28 Jul 2014 22:46:30 +0000 Received: from localhost ([127.0.0.1]:41405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XBtgb-0001Ay-LA for submit@debbugs.gnu.org; Mon, 28 Jul 2014 18:46:30 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:58477 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XBtgY-0001Ap-3B for control@debbugs.gnu.org; Mon, 28 Jul 2014 18:46:27 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1XBtgX-0008EE-Gr for control@debbugs.gnu.org; Mon, 28 Jul 2014 18:46:25 -0400 Date: Mon, 28 Jul 2014 18:46:25 -0400 Message-Id: Subject: control message for bug 3735 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.7 (-----) merge 18135 3735 From debbugs-submit-bounces@debbugs.gnu.org Sat May 06 10:46:51 2017 Received: (at submit) by debbugs.gnu.org; 6 May 2017 14:46:51 +0000 Received: from localhost ([127.0.0.1]:58181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d70yw-00016x-UT for submit@debbugs.gnu.org; Sat, 06 May 2017 10:46:51 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38061) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d70yv-00016l-LK for submit@debbugs.gnu.org; Sat, 06 May 2017 10:46:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d70yp-0001p3-SK for submit@debbugs.gnu.org; Sat, 06 May 2017 10:46:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52539) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d70yp-0001ow-P0 for submit@debbugs.gnu.org; Sat, 06 May 2017 10:46:43 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d70yo-0008GC-Mr for bug-gnu-emacs@gnu.org; Sat, 06 May 2017 10:46:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d70yn-0001nr-To for bug-gnu-emacs@gnu.org; Sat, 06 May 2017 10:46:42 -0400 Received: from mail-vk0-x235.google.com ([2607:f8b0:400c:c05::235]:36243) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d70yn-0001ml-OC for bug-gnu-emacs@gnu.org; Sat, 06 May 2017 10:46:41 -0400 Received: by mail-vk0-x235.google.com with SMTP id q78so11644542vke.3 for ; Sat, 06 May 2017 07:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=vpuODZasUTyMA0VldqpdpvquX2ZV5gYhHW6pa53HJxA=; b=L857UFDOnCXKWdLip9DGr2A7b3o6YY66CZd/Pz5J2H9USIZuXzRRmpeUKQkyxWnhjT Y2AzE73T2mWUHK6KRiViibSO9Q8vemCGrqF+e1dJLztBB9jRJaKhbGtBSfEmWoHdhjdR O3EQJEFKf/SgF3vRiP34bQArUvLlirgwj6lAKkoliT8oQQsiLYVAGWUFwtaOvmGgCQ2v HBVbpeQM2FLqTIFRzgDqiHMi/FWpWv+5VoRR35z1aT5j2m6gjM9dmU/OC+5c/KUSMX+0 kW2xn2Jzye1jDoPtcBDgrrnse3kbYqp07nElt5SEqJQHqdTT8yudCQ/TMLSrbaIc48Uu 2Slg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=vpuODZasUTyMA0VldqpdpvquX2ZV5gYhHW6pa53HJxA=; b=WsUN5+N/j6uFssVFkepWOF3mPWfrUJo9sNvdADztMpRFMkMprQQV2MgEquaE4JVY5d JSLLcDDyHva99v7bcTXaRfxkjfdk0pXJoSTa8l0yza/EaO4wdfZflBQZ7oiR9BcwO+Pt f5zal8kFY/IkOVuqVHkVnqFR7yzC4Sky91w/J74xb4GpWLn9yOP7qsBsJu7DSselIImS dAiM8TFsaJnq0NTJ10aIUGUUZ8hQB/CNH4F7j6Qroyn9erA79ebj8YQzuNLxzpO+qkob wb9w0coslFbhuMGBcRxI3VidktfzjXk1hChw9lR79l2zY1ySjvE5zSUewq2n6Y+nW3er 164A== X-Gm-Message-State: AN3rC/785iz36BK47WI1IE36mN7HBbUbBskjz5iP6yNAm8JDOlNQUxUT bhE/NuuckFVRoHK6cbazpxBpVwPHSg== X-Received: by 10.31.115.194 with SMTP id o185mr12103743vkc.45.1494081999667; Sat, 06 May 2017 07:46:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.77.20 with HTTP; Sat, 6 May 2017 07:46:19 -0700 (PDT) In-Reply-To: <9A88C51B-AE7B-4FD8-9929-6F058AC23AE6@gmail.com> References: <9A88C51B-AE7B-4FD8-9929-6F058AC23AE6@gmail.com> From: Chong Yidong Date: Sat, 6 May 2017 22:46:19 +0800 X-Google-Sender-Auth: 2eRPENOzPwKaIfp5ZSZ4lz_Kthk Message-ID: Subject: Re: Emacs bug # 3735 definitely not fixed (5 years later) To: Don Hopkins Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit Cc: dsb@smart.net, bug-gnu-emacs@gnu.org, Don Hopkins 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.8 (---) I was going through old emails and just saw this; sorry for the huge delay in triaging this bug. For what it's worth, I can't reproduce the original bug recipe on Emacs 25.2: - At command prompt in shell mode ... - Insert "echo ls". - Type RET. - (Emacs submits whole command line "echo ls".) - (Shell gives output line "ls".) - Go up to output line "ls" (C-p). - Go to end of output line (C-e). - Insert " -la". - Type RET. The original bug report says 3.5 PROBLEM: Note that Emacs submits just " -la", instead of whole command line "ls -la" (as intended, expected, and in Emacs 20). Instead, I see the output of ls -la. In GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.10) of 2017-05-06 built on ulysses Windowing system distributor 'The X.Org Foundation', version 11.0.11903000 System Description: Arch Linux From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 04 16:15:25 2021 Received: (at 18135) by debbugs.gnu.org; 4 Dec 2021 21:15:25 +0000 Received: from localhost ([127.0.0.1]:55321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtcNQ-0006qy-O3 for submit@debbugs.gnu.org; Sat, 04 Dec 2021 16:15:24 -0500 Received: from quimby.gnus.org ([95.216.78.240]:41504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtcNP-0006l5-MN; Sat, 04 Dec 2021 16:15:24 -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=34xVHtYu8XssFaUbUqDm/Ruke3HwFiVuv5UJSv8/XuM=; b=X/yI9SEIp2TnDdqpPVgNhxL01u XBZOO0VZvCx9aWNEiTr5Pg44YQqJoJfeIri4/pvo6v1SrFVguaGKnwhwwVfsZ7rK36+ATHtVk86Xy z86nfqj8T5fdS01DCAzL/t7fKDbupjWV+F9x6RXlD4Jp+69h571M4t3mRMZprEQtfAq0=; 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 1mtcNG-0000Xn-3a; Sat, 04 Dec 2021 22:15:16 +0100 From: Lars Ingebrigtsen To: Chong Yidong Subject: Re: bug#3735: shell-mode editing, movement, and command entry broken by prompt/output changes References: <9A88C51B-AE7B-4FD8-9929-6F058AC23AE6@gmail.com> X-Now-Playing: Joni Mitchell's _The Hissing Of Summer Lawns_: "In France They Kiss On Main Street" Date: Sat, 04 Dec 2021 22:15:13 +0100 In-Reply-To: (Chong Yidong's message of "Sat, 6 May 2017 22:46:19 +0800") Message-ID: <87lf10138e.fsf_-_@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Chong Yidong writes: > I was going through old emails and just saw this; sorry for the huge > delay in triaging this bug. > > For what it's worth, I can't reproduce the original bug recipe on Emacs 25.2: > > - At command [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 18135 Cc: 3735@debbugs.gnu.org, dhopkins@donhopkins.com, dsb@smart.net, 18135@debbugs.gnu.org, Don Hopkins 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 (---) Chong Yidong writes: > I was going through old emails and just saw this; sorry for the huge > delay in triaging this bug. > > For what it's worth, I can't reproduce the original bug recipe on Emacs 25.2: > > - At command prompt in shell mode ... > - Insert "echo ls". > - Type RET. > - (Emacs submits whole command line "echo ls".) > - (Shell gives output line "ls".) > - Go up to output line "ls" (C-p). > - Go to end of output line (C-e). > - Insert " -la". > - Type RET. > > The original bug report says > > 3.5 PROBLEM: Note that Emacs submits just " -la", instead of whole > command line "ls -la" (as intended, expected, and in Emacs 20). > > Instead, I see the output of ls -la. (I'm going through old bug reports that unfortunately weren't resolved at the time.) I'm not able to reproduce this problem in Emacs 29, either. Don, are there any additional steps needed to reproduce the problem (starting from "emacs -Q")? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 04 16:15:31 2021 Received: (at control) by debbugs.gnu.org; 4 Dec 2021 21:15:31 +0000 Received: from localhost ([127.0.0.1]:55326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtcNX-0006xi-9c for submit@debbugs.gnu.org; Sat, 04 Dec 2021 16:15:31 -0500 Received: from quimby.gnus.org ([95.216.78.240]:41522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtcNV-0006qB-An for control@debbugs.gnu.org; Sat, 04 Dec 2021 16:15:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=uHYc3XKHtIgoRyh4Zjkw/4FRU7zpovEY3i+esWerykU=; b=Hrd8NzWauL5mEUhiyg4bSQam0x p0Hj0ikcS/wg033Vxl3CtI0YnskmuSJ0nXC/opeFJNSnqI1UDszZ0Q5meH9iZQsoEs97/RWnq6xR8 W3avX/POv2SkYXYoTOSkQXZwMlegc4CX7JGt4z53Rpq9YM51cW9bqcr1mdOw9CRo4TTk=; 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 1mtcNN-0000Y1-KQ for control@debbugs.gnu.org; Sat, 04 Dec 2021 22:15:23 +0100 Date: Sat, 04 Dec 2021 22:15:21 +0100 Message-Id: <87k0gk1386.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #3735 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 3735 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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 (---) tags 3735 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 04 17:19:07 2021 Received: (at 18135) by debbugs.gnu.org; 4 Dec 2021 22:19:07 +0000 Received: from localhost ([127.0.0.1]:55619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtdN5-0000Is-AT for submit@debbugs.gnu.org; Sat, 04 Dec 2021 17:19:07 -0500 Received: from mail-ed1-f42.google.com ([209.85.208.42]:33464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtdN3-0000IH-JC for 18135@debbugs.gnu.org; Sat, 04 Dec 2021 17:19:06 -0500 Received: by mail-ed1-f42.google.com with SMTP id t5so26669671edd.0 for <18135@debbugs.gnu.org>; Sat, 04 Dec 2021 14:19:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=donhopkins-com.20210112.gappssmtp.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=AgHi06vAmw+tzujbAyvr8q5232yVJ5kowwssmIkf/wk=; b=6FbYaVeznkxO/idbzNeMSDTMzXJzh80FfCeCEWQHUaCLDcWkIch2M5tuj+mY8EunT1 QhlW0EXN8BIwOqcYC89Lrp3FXx1uAtsWFnLQ+go//HnBRqpcg54EwYJspQUkbwvMTv7T 1NVgyeLbVA87AZPpUi38xul/lQqAj8MsP7Pbv71ulM7okRF/KnS/WAyp3FWhetbzS383 tMT/FJb7WDSllBS/hzJV2DSY/vr6QGHUohKem2cnW8/I14aFzmRuIY0yZyc7i+InVfDB Y5P9Hu1D/2s7H7BeVCR0ceESX+EkVB+bUbayyfrOiiK9NwMN0G0VnBFylY5T2BYrMJal KALg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=AgHi06vAmw+tzujbAyvr8q5232yVJ5kowwssmIkf/wk=; b=FG3j215ycHOhwVUaKM2+rcnCvg2sT2BNbPS+NGzp0i2JOby0+JLBxhPSzBfRoZQC61 18qVU2z8U43NrhN7jgTNPRKqom8ALfCsTozmFT6BW8hmLhqTtjCY8dpG8i3NCAzzHOmZ +GkFjN6LXEUBrbPuRko96ujipfX/S3jJoimmlzagvrajYvRPUPULGqzKGV7PY1lCg06V yy/i/CMnEerAXSEEEQuAjSxfqcXW1ekL0TgVwD5GbFx/e6ljF7lOrOghlRnyV3NOl27m jP3/vB2beHLzGKED9Y9Rg40bfsVWvU9kZ5b9A8KwkzJtdcj5UGQ7CIUdGoTUSuj78LFT lTmA== X-Gm-Message-State: AOAM53215HTrqPbD4Lwj/W1v4+AwjkQtHufeVVz5/NeQny978rMhsea8 WnFXuxUK14z7fRjwAWtuG1DFyQ== X-Google-Smtp-Source: ABdhPJwiP6LEL1luA9G0luBprUcPwodMIljK3VFRxMplyqO1EgTs7JprV5zXkeLh4dtT/pk9AigSDA== X-Received: by 2002:a17:907:2d12:: with SMTP id gs18mr33844524ejc.126.1638656339738; Sat, 04 Dec 2021 14:18:59 -0800 (PST) Received: from smtpclient.apple (2a02-a444-9fda-1-1d23-ea2b-8993-47e6.fixed6.kpn.net. [2a02:a444:9fda:1:1d23:ea2b:8993:47e6]) by smtp.gmail.com with ESMTPSA id k21sm4493737edo.87.2021.12.04.14.18.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Dec 2021 14:18:59 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: Re: bug#3735: shell-mode editing, movement, and command entry broken by prompt/output changes From: Don Hopkins In-Reply-To: <87lf10138e.fsf_-_@gnus.org> Date: Sat, 4 Dec 2021 23:18:57 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <33D68609-31C2-465C-8718-667B5F51B50E@donhopkins.com> References: <9A88C51B-AE7B-4FD8-9929-6F058AC23AE6@gmail.com> <87lf10138e.fsf_-_@gnus.org> To: Lars Ingebrigtsen X-Mailer: Apple Mail (2.3654.80.0.2.43) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 18135 Cc: 3735@debbugs.gnu.org, dsb@smart.net, Chong Yidong , 18135@debbugs.gnu.org, Don Hopkins 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: -1.0 (-) Thanks for looking into this!=20 I can=E2=80=99t reproduce the problem through that recipe, but weird = things still happen in other situations.=20 Try putting =E2=80=9C -la=E2=80=9D in the kill buffer and then yanking = it instead of typing it at the end of the output of =E2=80=9Cecho ls=E2=80= =9D.=20 It totally ignores the whole line, as if you entered an empty line. But the thing that usually happens to me is that it enters the text that = I yanked, but I=E2=80=99m not sure what the exact conditions to trigger = it are.=20 But at any rate, yanking =E2=80=9C -la=E2=80=9D and hitting return = should have the exact same behavior as typing =E2=80=9C -la=E2=80=9D and = hitting return, so it=E2=80=99s probably caused by the same underlying = problem. I=E2=80=99ll let you know if I figure out other test cases that get it = to enter the text you yanked but not the text before that. It usually = has something to do with yanking text, possibly at the end or also in = the middle of the line. -Don > On Dec 4, 2021, at 22:15, Lars Ingebrigtsen wrote: >=20 > Chong Yidong writes: >=20 >> I was going through old emails and just saw this; sorry for the huge >> delay in triaging this bug. >>=20 >> For what it's worth, I can't reproduce the original bug recipe on = Emacs 25.2: >>=20 >> - At command prompt in shell mode ... >> - Insert "echo ls". >> - Type RET. >> - (Emacs submits whole command line "echo ls".) >> - (Shell gives output line "ls".) >> - Go up to output line "ls" (C-p). >> - Go to end of output line (C-e). >> - Insert " -la". >> - Type RET. >>=20 >> The original bug report says >>=20 >> 3.5 PROBLEM: Note that Emacs submits just " -la", instead of = whole >> command line "ls -la" (as intended, expected, and in Emacs = 20). >>=20 >> Instead, I see the output of ls -la. >=20 > (I'm going through old bug reports that unfortunately weren't resolved > at the time.) >=20 > I'm not able to reproduce this problem in Emacs 29, either. >=20 > Don, are there any additional steps needed to reproduce the problem > (starting from "emacs -Q")? >=20 > --=20 > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 05 13:08:01 2021 Received: (at 18135) by debbugs.gnu.org; 5 Dec 2021 18:08:01 +0000 Received: from localhost ([127.0.0.1]:59239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtvvc-0000R7-OG for submit@debbugs.gnu.org; Sun, 05 Dec 2021 13:08:01 -0500 Received: from kamnitnik.top ([209.250.245.214]:60874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtu3X-00060H-29; Sun, 05 Dec 2021 11:08:03 -0500 Received: from localhost (BSN-77-156-43.static.siol.net [193.77.156.43]) by kamnitnik.top (Postfix) with ESMTPSA id B720C9CA87; Sun, 5 Dec 2021 16:08:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kamnitnik.top; s=mail; t=1638720481; bh=uToh5BFBDmHUnEdNtG+AyfIYDsqQdSSf4of9oNU7ifI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=SyPeEbWLuoaba78vzbXl/0CehAh20GpWkEL64C/3cukW32FKUDUNmUSlELh6xkXdK rbztoISArBnJWD7FamX9O5RGvpZBjVovb9GQrs8Nc8WV1FbkuIatakG48GsECn5PDH +IG/NvoKbjudzFicDpv5EEY8goIaQgKKV/Su5RNQZSiAcRq1Tnhb/dA3nL8NvRh4Wu oybAVpQQfVyXmWEpEmUs4DDZIvEG7gVm5SNQH34X6gf6hWkkCe4QEff20G5MsMOain yj76kBtvr46fL0TRIFMyWrnyoq7YYArFvH6Ey74KkmAWQz2dCsX7RAwMsYU25LLT8C dE5dRoc+A39NQ== From: miha@kamnitnik.top To: Don Hopkins , Lars Ingebrigtsen Subject: Re: bug#18135: bug#3735: shell-mode editing, movement, and command entry broken by prompt/output changes In-Reply-To: <33D68609-31C2-465C-8718-667B5F51B50E@donhopkins.com> References: <9A88C51B-AE7B-4FD8-9929-6F058AC23AE6@gmail.com> <87lf10138e.fsf_-_@gnus.org> <33D68609-31C2-465C-8718-667B5F51B50E@donhopkins.com> Date: Sun, 05 Dec 2021 17:13:06 +0100 Message-ID: <87bl1v3u99.fsf@miha-pc> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Don Hopkins writes: > Thanks for looking into this! > > I can’t reproduce the problem through that recipe, but weird things still happen in other situations. > > Try putting “ -la” in the kill buffer and then yanki [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: 18135 Cc: 3735@debbugs.gnu.org, dsb@smart.net, Chong Yidong , 18135@debbugs.gnu.org, Don Hopkins 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.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Don Hopkins writes: > Thanks for looking into this! > > I can’t reproduce the problem through that recipe, but weird things still happen in other situations. > > Try putting “ -la” in the kill buffer and then yanki [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Don Hopkins writes: > Thanks for looking into this!=20 > > I can=E2=80=99t reproduce the problem through that recipe, but weird thin= gs still happen in other situations.=20 > > Try putting =E2=80=9C -la=E2=80=9D in the kill buffer and then yanking it= instead of typing it at the end of the output of =E2=80=9Cecho ls=E2=80=9D= .=20 > > It totally ignores the whole line, as if you entered an empty line. > > But the thing that usually happens to me is that it enters the text that = I yanked, but I=E2=80=99m not sure what the exact conditions to trigger it = are.=20 > > But at any rate, yanking =E2=80=9C -la=E2=80=9D and hitting return should= have the exact same behavior as typing =E2=80=9C -la=E2=80=9D and hitting = return, so it=E2=80=99s probably caused by the same underlying problem. > > I=E2=80=99ll let you know if I figure out other test cases that get it to= enter the text you yanked but not the text before that. It usually has som= ething to do with yanking text, possibly at the end or also in the middle o= f the line. Reproducer: =2D copy " -la" into kill ring =2D type "echo ls" into M-x shell =2D (Shell gives output line "ls".) =2D Go up to output line "ls" (C-p). =2D yank " -la" =2D press C-b =2D the line now "ls -la" with point after "l" =2D press RET Only " -la" is sent to the process instead of "ls -la" This is because the 'field' text property of "ls" is 'output' but the " -la" is inserted with insert-for-yank and doesn't have a 'field' text property. A similar thing happens if we insert a space using M-SPC (just-one-space) in the middle of process output. The space is inserted with 'insert' and doesn't inherit the 'field' text property of the surrounding text. This didn't cause a problem in older Emacs because the field text property wasn't used yet at that time in comint. 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? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCAAxFiEEmxVnesoT5rQXvVXnswkaGpIVmT8FAmGs5RITHG1paGFAa2Ft bml0bmlrLnRvcAAKCRCzCRoakhWZP4IBD/9rQZirS2ahK4NDRDQL9Eht/A2kp6O5 IwUuqxo8RauG4MzpE8fFZok9T+Ngrcc/dEYRNAsLIaR+Oc8ofWOw4YpOV4r6526K oDEHKpEhyt1qxn5ZDwCk+TRv6xCX4p3tsTuPfcwtgPXEyv7BWK36Tc959kTnytq7 ++oz0FYyVrLNSjFFvAofgQ4UyW4H0clK4HHDXbO0wX9KX48Z+WYzJFxc+E8qOuQN pd+7PLVIFsAZGc5DdpQNo41wT9fSZy6p5sl+Xbfeh+WagQwmoEQNxlOjWocBqVHQ z8eOZZh4WMjAGg772P6nD7zl1achFKjdgcPTwGua+6gy5DwvIokdhaq4iwpGXea0 uHWiyiNc6kl5neBrPOZ/AqIDgtSjk77WKCeJFTyvq/R9nDHKek76w4XgChNXdZGC TR5AiakMmuFSbGcnGAoSZJ3308YefZQaoJ1qnxcczUqK6lXKKxbHzxz0qCyJAzrC dk+KRJ/qEMaywCiq6Nfm0gwdMlWWaFiamZLuuR+Gk2DxdB+oYP0UicMxvUX4juKu LLkAl/6FIMBf3L5QVtJ0k4bigIvJScss1vlGuJEBDfHtsvW3/PUg8oCtExH6QbxQ CQvsSNq8BrHl6Xld39cVgIaRa0P6NNlbM20U5blKOOSsnxlP1FQ9ZeKUwQ6+JAPe BDymbNrEmAZ8lA== =e5Qd -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 05 14:27:31 2021 Received: (at 18135) by debbugs.gnu.org; 5 Dec 2021 19:27:31 +0000 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 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=; 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 From: Lars Ingebrigtsen To: miha@kamnitnik.top Subject: Re: bug#18135: bug#3735: shell-mode editing, movement, and command entry broken by prompt/output changes References: <9A88C51B-AE7B-4FD8-9929-6F058AC23AE6@gmail.com> <87lf10138e.fsf_-_@gnus.org> <33D68609-31C2-465C-8718-667B5F51B50E@donhopkins.com> <87bl1v3u99.fsf@miha-pc> 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" Date: Sun, 05 Dec 2021 20:27:16 +0100 In-Reply-To: <87bl1v3u99.fsf@miha-pc> (miha@kamnitnik.top's message of "Sun, 05 Dec 2021 17:13:06 +0100") Message-ID: <8735n6svhn.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 18135 Cc: 3735@debbugs.gnu.org, dsb@smart.net, Chong Yidong , 18135@debbugs.gnu.org, Don Hopkins 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: -1.3 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 07 11:52:36 2021 Received: (at 18135) by debbugs.gnu.org; 7 Dec 2021 16:52:36 +0000 Received: from localhost ([127.0.0.1]:38498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mudhj-0004u3-Pt for submit@debbugs.gnu.org; Tue, 07 Dec 2021 11:52:36 -0500 Received: from kamnitnik.top ([209.250.245.214]:41346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mudhd-0004tp-V0; Tue, 07 Dec 2021 11:52:34 -0500 Received: from localhost (BSN-77-156-43.static.siol.net [193.77.156.43]) by kamnitnik.top (Postfix) with ESMTPSA id DAAC39CAE9; Tue, 7 Dec 2021 16:52:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kamnitnik.top; s=mail; t=1638895949; bh=4K1d/FtctzFjWXpl5RWx8ViHPZIpkEu6M3mOuS8z+i8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=JY8C5iYfm1BtwmVdD/ygskyFeYd97dE8aAVn/V4Q49G1bi5Q1cbBs1IPMJGgkstfg bLNnLqT/nHNfgKQPj7TnEkMaZ0Ki3P06zwJn4985R9sMAVrKvBg/X4wgOCGERjHjoq qKS9Hgokoj7Y7dptq8FDt3IXEE69V31oOxdrHO4USkD/uLy52rYkBkGPgzCD2xFS6e lZPHd1U20UQkk3DaNx43KN/+kka1DO+NAJKLOwX9WUCKnRsFdq07fj+zhXq7/uIlaP Bo2FOzfHqe5u3mZ99h+vnLcu2tiw/9Qj4XXKgiwawCOXyZGeJZgiRSEu7hOuF+kr0I aTu+fLTpwdFHw== From: To: Lars Ingebrigtsen Subject: Re: bug#18135: bug#3735: shell-mode editing, movement, and command entry broken by prompt/output changes In-Reply-To: <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> <8735n6svhn.fsf@gnus.org> Date: Tue, 07 Dec 2021 17:57:34 +0100 Message-ID: <878rww4akh.fsf@miha-pc> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Lars Ingebrigtsen writes: > 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 [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: 18135 Cc: 3735@debbugs.gnu.org, dsb@smart.net, Chong Yidong , 18135@debbugs.gnu.org, Don Hopkins 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.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Lars Ingebrigtsen writes: > 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 [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Lars Ingebrigtsen writes: > 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.) Yeah I thought about that too. However, commands such as 'yank' or 'just-one-space' use insert rather than insert-and-inherit and thus always bypass inheritance of surrounding text properties regardless of it's stickiness. That is why I settled for using the 'insert-in-front-hooks' text property, patch attached. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Improve-yanking-in-the-middle-of-comint-process-outp.patch Content-Transfer-Encoding: quoted-printable From=207914fe85ba096f93d4b6817bc0d7b7976f3d316a Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Miha=3D20Rihtar=3DC5=3DA1i=3DC4=3D8D?=3D Date: Tue, 7 Dec 2021 16:59:39 +0100 Subject: [PATCH] Improve yanking in the middle of comint process output * lisp/comint.el (comint--unmark-string-as-output): New function to remove unwanted properties from text yanked from comint buffers. (comint-mode): Use it as a 'filter-buffer-substring-function'. (comint-output-filter): Set 'insert-in-front-hooks' text property on process output such that text yanked by the user in the middle of process output is marked as process output (Bug#3735). (comint--mark-as-output): New function. (comint--mark-yanked-as-output): New function. =2D-- lisp/comint.el | 54 +++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 45 insertions(+), 9 deletions(-) diff --git a/lisp/comint.el b/lisp/comint.el index 544f0b8b82..5f99f560cf 100644 =2D-- a/lisp/comint.el +++ b/lisp/comint.el @@ -730,6 +730,8 @@ comint-mode (or (file-remote-p default-directory) "")) (setq-local comint-accum-marker (make-marker)) (setq-local font-lock-defaults '(nil t)) + (add-function :filter-return (local 'filter-buffer-substring-function) + #'comint--unmark-string-as-output) (add-hook 'change-major-mode-hook 'font-lock-defontify nil t) (add-hook 'isearch-mode-hook 'comint-history-isearch-setup nil t) (add-hook 'completion-at-point-functions 'comint-completion-at-point nil= t) @@ -1815,7 +1817,8 @@ comint-add-to-input-history (ring-insert comint-input-ring cmd))) =20 (defconst comint--prompt-rear-nonsticky =2D '(field inhibit-line-move-field-capture read-only font-lock-face) + '( field inhibit-line-move-field-capture read-only font-lock-face + insert-in-front-hooks) "Text properties we set on the prompt and don't want to leak past it.") =20 (defun comint-send-input (&optional no-newline artificial) @@ -2152,14 +2155,7 @@ comint-output-filter (goto-char (process-mark process)) ; In case a filter moved it. =20 (unless comint-use-prompt-regexp =2D (with-silent-modifications =2D (add-text-properties comint-last-output-start (point) =2D `(rear-nonsticky =2D ,comint--prompt-rear-nonsticky =2D front-sticky =2D (field inhibit-line-move-field-capture) =2D field output =2D inhibit-line-move-field-capture t)))) + (comint--mark-as-output comint-last-output-start (point))) =20 ;; Highlight the prompt, where we define `prompt' to mean ;; the most recent output that doesn't end with a newline. @@ -2191,6 +2187,46 @@ comint-output-filter ,comint--prompt-rear-nonsticky))) (goto-char saved-point))))))) =20 +(defun comint--mark-as-output (beg end) + (with-silent-modifications + (add-text-properties + beg end + `(rear-nonsticky + ,comint--prompt-rear-nonsticky + front-sticky + (field inhibit-line-move-field-capture) + field output + inhibit-line-move-field-capture t + ;; Text inserted by a user in the middle of process output + ;; should be marked as output. This is needed for commands + ;; such as `yank' or `just-one-space' which don't use + ;; `insert-and-inherit' and thus bypass default text property + ;; inheritance. + insert-in-front-hooks + (,#'comint--mark-as-output ,#'comint--mark-yanked-as-output))))) + +(defun comint--mark-yanked-as-output (beg end) + ;; `yank' removes the field text property from the text it inserts + ;; due to `yank-excluded-properties', so arrange for this text + ;; property to be reapplied in the `after-change-functions'. + (let (fun) + (setq + fun + (lambda (beg1 end1 _len1) + (remove-hook 'after-change-functions fun t) + (when (and (=3D beg beg1) + (=3D end end1)) + (comint--mark-as-output beg1 end1)))) + (add-hook 'after-change-functions fun nil t))) + +(defun comint--unmark-string-as-output (string) + (remove-list-of-text-properties + 0 (length string) + '( rear-nonsticky front-sticky field + inhibit-line-move-field-capture insert-in-front-hooks) + string) + string) + (defun comint-preinput-scroll-to-bottom () "Go to the end of buffer in all windows showing it. Movement occurs if point in the selected window is not after the process m= ark, =2D-=20 2.34.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCAAxFiEEmxVnesoT5rQXvVXnswkaGpIVmT8FAmGvkn4THG1paGFAa2Ft bml0bmlrLnRvcAAKCRCzCRoakhWZP4cvD/4oG241wNooxZKczWYnWB8reznybd+0 8jYcI/Z+nx36LEB6FBXF/mIMjlZafAyEdgpuM4GXfKyMneHiJC3b9glKrrROefur YHkxlPQtfXHl5A79OpdAWyw1unc4wxfEchQ+wlK0ymNyxzSq3g/DB0TmO2EJg7Ob Qc9V3AdgHvXWJqOEnH+QQpqRjR/G3mY/3s61MDLrLp3PMhqCF0R6wgg5GB2zL5cp P5ZhhomyRujnrhsB9JLoeWxcx/YzL02tbe81gLKdZC1/fzH5wcudT+0BAPaFJmOL LkGHBIyFssk3U67u8PwXjgpw98CEZp33u0Q9nCFzHuLneDiyrP28fIplgE4awBc9 PEfwlaffQQhGVwiaa/VeFGqXOnnSBHRuL6aO7TksK1ogcsVNvZvXAJyz3iX5S8j9 pLi+g/7yZgsvDsCBvSXh2XThF5WrACU8znvKXpxDdGbQM8W+l0BuvHPjkEpyj9+R xp63tvx83K2ULqLUz33EMfnKd5oIsAx2vTrVWc9Tf9vdQK5ZWB0FwBzY+Oopkklp u7kXC69mVtTmZa4G6sX4a8k/x6VSwkL7qCuZFKXePw/6CldJ9P7Vn83gy2xcKSwF vQBVXZIvDJ1ixGkTrzMH5h+wugZinshowdTQCjYWSr1F2LSzpk8b6KcO2ZJYDVRo UXHPj3F2OtyZRg== =2PG1 -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 07 15:16:58 2021 Received: (at 18135) by debbugs.gnu.org; 7 Dec 2021 20:16:58 +0000 Received: from localhost ([127.0.0.1]:38742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mugtW-0001ss-1k for submit@debbugs.gnu.org; Tue, 07 Dec 2021 15:16:58 -0500 Received: from quimby.gnus.org ([95.216.78.240]:53416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mugtU-0001sT-KT; Tue, 07 Dec 2021 15:16:57 -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=2Jr/C8+saK0VGr4o3axH5aX1li7mFp21uhv+rSoJFWE=; b=XfxBZInfDJGXoN5Th0S4XAEA+Z 5HBqGYJySlUXa9p0Gva9DV7n8kdiH5gWzjRYqKfR8zo9ET8oorJO+bOZMuM94vXgcLNo8NtC2736s 5eksCuMjgK5a1YePX9T2kUdZiG9QZAxnjcHXEG+UShp+Mz20ZT9spVHwLRlJK00xk0IM=; 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 1mugtH-00025A-W8; Tue, 07 Dec 2021 21:16:46 +0100 From: Lars Ingebrigtsen To: Subject: Re: bug#18135: bug#3735: shell-mode editing, movement, and command entry broken by prompt/output changes References: <9A88C51B-AE7B-4FD8-9929-6F058AC23AE6@gmail.com> <87lf10138e.fsf_-_@gnus.org> <33D68609-31C2-465C-8718-667B5F51B50E@donhopkins.com> <87bl1v3u99.fsf@miha-pc> <8735n6svhn.fsf@gnus.org> <878rww4akh.fsf@miha-pc> X-Now-Playing: Japan's _Tin Drum (1)_: "Cantonese Boy" Date: Tue, 07 Dec 2021 21:16:43 +0100 In-Reply-To: <878rww4akh.fsf@miha-pc> (miha@kamnitnik.top's message of "Tue, 07 Dec 2021 17:57:34 +0100") Message-ID: <87ee6of9w4.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: writes: > Yeah I thought about that too. However, commands such as 'yank' or > 'just-one-space' use insert rather than insert-and-inherit and thus > always bypass inheritance of surrounding text properties re [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 18135 Cc: 3735@debbugs.gnu.org, dsb@smart.net, Chong Yidong , 18135@debbugs.gnu.org, Don Hopkins 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: -1.3 (-) writes: > Yeah I thought about that too. However, commands such as 'yank' or > 'just-one-space' use insert rather than insert-and-inherit and thus > always bypass inheritance of surrounding text properties regardless of > it's stickiness. That is why I settled for using the > 'insert-in-front-hooks' text property, patch attached. Thanks; works well here, too, so I've pushed this to Emacs 29 now. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 07 15:17:07 2021 Received: (at control) by debbugs.gnu.org; 7 Dec 2021 20:17:07 +0000 Received: from localhost ([127.0.0.1]:38750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mugtf-0001u0-Im for submit@debbugs.gnu.org; Tue, 07 Dec 2021 15:17:07 -0500 Received: from quimby.gnus.org ([95.216.78.240]:53430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mugtd-0001t8-Lj for control@debbugs.gnu.org; Tue, 07 Dec 2021 15:17:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2M40rV0BdlqgH2j984p5rymgraFiEJRbt93Ni31mtWM=; b=GCRKJf0wmr2kNh5Ek4DwaBPG04 LR2OeY2puyxBL/lC1xFr4M+XmHgfOIyXAnbLepS+Im67pbwFVAWot87ls1e4nLnS9tC//rvwsDw8+ 4M3njDfA1YPuD21RiqlOrjVgrZA5OeAf2K0XUFIuTYyJAdCL/A2SBBXXzVTfEfbfqwfA=; 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 1mugtV-00025O-JM for control@debbugs.gnu.org; Tue, 07 Dec 2021 21:16:59 +0100 Date: Tue, 07 Dec 2021 21:16:53 +0100 Message-Id: <87czm8f9vu.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #18135 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 18135 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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 (---) close 18135 29.1 quit From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 07 19:20:59 2021 Received: (at 18135) by debbugs.gnu.org; 8 Dec 2021 00:20:59 +0000 Received: from localhost ([127.0.0.1]:39013 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mukhf-0006e0-7l for submit@debbugs.gnu.org; Tue, 07 Dec 2021 19:20:59 -0500 Received: from mail-ed1-f44.google.com ([209.85.208.44]:37842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mukha-0006dT-0h for 18135@debbugs.gnu.org; Tue, 07 Dec 2021 19:20:55 -0500 Received: by mail-ed1-f44.google.com with SMTP id e3so2516700edu.4 for <18135@debbugs.gnu.org>; Tue, 07 Dec 2021 16:20:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=donhopkins-com.20210112.gappssmtp.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=FECFjMMiw+M+jSbYoOOLl1bdatMn4uPvAX3jRsmBzCQ=; b=btEi3mKBYM92yugpIdyQ6gfdHOAeN/de7dokKVdht/CsbNvJGgqZ5CfmAh6jzpk9B2 4mAP7eyIJ2Z828cmLWZ3ES80NzxRkd06KUi6JZbq5my2tMS4UwiXwXw6qWoQxtGawgWV zqr7LOAscP79kpV86qNMR/5m88/vJavHuZgI5Ful/L6du4hUqLm9DVQF6ECF7Csvyljz 2YVJ994788Wi0/hCwBgbnXQsDEN0OPYgmbxoIAwKjW/kf6CvskIC6K8esKLwgRcBSoxK RpYmb3NbfcGEArSvdlC2hEQe2LymedDN6SUHBoqlXNbCA1UKAlZ5ldHH6GJMuO8LEySD vihA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=FECFjMMiw+M+jSbYoOOLl1bdatMn4uPvAX3jRsmBzCQ=; b=TsbZWka0BKLVFMF5CL3EWtqQsjdM5zKHrZeoXhoJ8GSP98qAaIisxcyFYwY2u8fQQ2 I9GqAGquJ8bvuqpCoQqUpbaQ5Xk4Eox4OrhDgOBLosFbgq0cwLODoOj0GrduWiuDujxs je0WFiRkOUd81g/qjCmxMbaVX2re7iR4SlgiLoo7X5uH6AcdDGpK/bFDjM5uQxEAmgrs 6UH8G9TREG5FcQwcj9o4NqDGzRBiHT1v/7l2/9evk3/2RBYSI2LVbiraldPxdBS69dD1 BF54w272epOKhpSlKlppL5ikpu72yASJBeZzuzWXNmHgRhWRt3D56cJivr+n9B3gij7j fwUA== X-Gm-Message-State: AOAM533cePR5y9CIa0MpFML2lGIfEQcaU4CWJeuScpOVMCQAl1nlM+zu 3qwErj761EjxpT77qgRuO+Vc2Q== X-Google-Smtp-Source: ABdhPJxU0o2KEltYXwVfAZt8AJifmDDZ0+qS8NOwD5/wBHAKAfGg8OD+Ns07BDrzYEz8ydDFFZd4zg== X-Received: by 2002:aa7:d0d1:: with SMTP id u17mr14013532edo.135.1638922848256; Tue, 07 Dec 2021 16:20:48 -0800 (PST) Received: from smtpclient.apple (2a02-a444-9fda-1-a006-7acf-71d2-556e.fixed6.kpn.net. [2a02:a444:9fda:1:a006:7acf:71d2:556e]) by smtp.gmail.com with ESMTPSA id x22sm523468ejc.97.2021.12.07.16.20.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Dec 2021 16:20:47 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: Re: bug#18135: bug#3735: shell-mode editing, movement, and command entry broken by prompt/output changes From: Don Hopkins In-Reply-To: <87ee6of9w4.fsf@gnus.org> Date: Wed, 8 Dec 2021 01:20:46 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <819B1602-3EAA-48A7-8E83-52D16F1F6769@donhopkins.com> References: <9A88C51B-AE7B-4FD8-9929-6F058AC23AE6@gmail.com> <87lf10138e.fsf_-_@gnus.org> <33D68609-31C2-465C-8718-667B5F51B50E@donhopkins.com> <87bl1v3u99.fsf@miha-pc> <8735n6svhn.fsf@gnus.org> <878rww4akh.fsf@miha-pc> <87ee6of9w4.fsf@gnus.org> To: Lars Ingebrigtsen X-Mailer: Apple Mail (2.3654.80.0.2.43) X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Thank you! I’m looking forward to upgrading to emacs 29. -Don > On Dec 7, 2021, at 21:16, Lars Ingebrigtsen wrote: > > writes: > >> Yeah I thought about that too. However, commands such as 'yank' or >> 'just-one-space' use i [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.44 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.44 listed in wl.mailspike.net] X-Debbugs-Envelope-To: 18135 Cc: 3735@debbugs.gnu.org, dsb@smart.net, Chong Yidong , 18135@debbugs.gnu.org, miha@kamnitnik.top 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: 1.0 (+) Thank you! I=E2=80=99m looking forward to upgrading to emacs 29.=20 -Don > On Dec 7, 2021, at 21:16, Lars Ingebrigtsen wrote: >=20 > writes: >=20 >> Yeah I thought about that too. However, commands such as 'yank' or >> 'just-one-space' use insert rather than insert-and-inherit and thus >> always bypass inheritance of surrounding text properties regardless = of >> it's stickiness. That is why I settled for using the >> 'insert-in-front-hooks' text property, patch attached. >=20 > Thanks; works well here, too, so I've pushed this to Emacs 29 now. >=20 > --=20 > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Aug 16 14:26:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 05 Jan 2022 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator