From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Don Hopkins Newsgroups: gmane.emacs.bugs Subject: bug#18135: bug#3735: shell-mode editing, movement, and command entry broken by prompt/output changes Date: Sat, 4 Dec 2021 23:18:57 +0100 Message-ID: <33D68609-31C2-465C-8718-667B5F51B50E@donhopkins.com> References: <9A88C51B-AE7B-4FD8-9929-6F058AC23AE6@gmail.com> <87lf10138e.fsf_-_@gnus.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9619"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 3735@debbugs.gnu.org, dsb@smart.net, Chong Yidong , 18135@debbugs.gnu.org, Don Hopkins To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 04 23:20:15 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 1mtdOB-0002Km-2p for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 23:20:15 +0100 Original-Received: from localhost ([::1]:51824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtdO9-0008JK-OJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 17:20:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtdNz-0008I8-0h for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 17:20:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44077) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtdNy-0000sN-PM for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 17:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mtdNy-0000KL-Fo for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 17:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Don Hopkins Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Dec 2021 22:20:02 +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.16386563471175 (code B ref 18135); Sat, 04 Dec 2021 22:20:02 +0000 Original-Received: (at 18135) by debbugs.gnu.org; 4 Dec 2021 22:19:07 +0000 Original-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 Original-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 Original-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) Original-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) In-Reply-To: <87lf10138e.fsf_-_@gnus.org> X-Mailer: Apple Mail (2.3654.80.0.2.43) 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:221537 Archived-At: 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