From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#66469: 30.0.50; Fields in eshell output regress behavior when yanking output into new input Date: Wed, 11 Oct 2023 11:41:33 -0700 Message-ID: <8bbc87db-f293-aa6e-658c-2bd228f0b7cc@gmail.com> References: <87edi1ca2h.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------x1lpvdnjKOmhpMNTOPq0XgoM" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1315"; mail-complaints-to="usenet@ciao.gmane.io" To: Jules Tamagnan , 66469@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 11 20:43:00 2023 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 1qqeAd-0000Al-Va for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Oct 2023 20:43:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqeAM-0005y1-0x; Wed, 11 Oct 2023 14:42:42 -0400 Original-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 ) id 1qqeAK-0005xX-L8 for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2023 14:42:40 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qqeAK-0002pd-3c for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2023 14:42:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qqeAf-0000hU-W5 for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2023 14:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Oct 2023 18:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66469 X-GNU-PR-Package: emacs Original-Received: via spool by 66469-submit@debbugs.gnu.org id=B66469.16970497282603 (code B ref 66469); Wed, 11 Oct 2023 18:43:01 +0000 Original-Received: (at 66469) by debbugs.gnu.org; 11 Oct 2023 18:42:08 +0000 Original-Received: from localhost ([127.0.0.1]:40062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqe9o-0000fv-Be for submit@debbugs.gnu.org; Wed, 11 Oct 2023 14:42:08 -0400 Original-Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]:42181) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqe9k-0000fK-9G for 66469@debbugs.gnu.org; Wed, 11 Oct 2023 14:42:07 -0400 Original-Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-690b7cb71aeso81968b3a.0 for <66469@debbugs.gnu.org>; Wed, 11 Oct 2023 11:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697049696; x=1697654496; darn=debbugs.gnu.org; h=in-reply-to:from:references:to:content-language:subject :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=y7oWrTW1xlvDgypgczsiI0cmO5UoT7OVtWD7mc1RoZY=; b=g74YVxAMT5akollnaq0jviyi/Dsng9yNYm+AQzt1bdhp1og293sF8F7vhk8odHInVl A1ZTa9UGubHqJTZknwGA4aOHAVicJep2Rzcqdrl3nFG/Mpm6SlH/uC0JZGHO54C1lPeF bh0aNy1gjGBLsFt6NdTRilBMJkaqKqFBfX8rNKnM+YBjur5jTwhgcmLgCy0qLTl7N5TK IwwV7S7XW43U+cIA8UhBVr8bKRpSPngwDNHTaIPbRzZgK7zA2NxgvZN2Uf76iIuudju0 cesjml7yOs/yh6CFmmltaciY+suarHAd5Lj5ou7+VS6UeTXxZYWY3JY515lXpHSGS1qd 2cbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697049696; x=1697654496; h=in-reply-to:from:references:to:content-language:subject :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=y7oWrTW1xlvDgypgczsiI0cmO5UoT7OVtWD7mc1RoZY=; b=K8erMhaZ1IkovBPGXZU6dbl3HoKq3wkw+SKjZ4wkO3eT/OjeT6Wou4c4mUHt31Y6Iu 2yQIfV9NESHzYhFnX599DiqeIhO1pub5scrGbR14BXSrrlJ8MRATjSxB0aqUSjJjKCYn h3haNRTM2/I8evuOaqt5VuEGAmwC0U0VfkvefHPwheQBtxegp6lFFIEOSM5QmQeNKPr7 U2LGNDMx0cTyHOoJEvRNrO5P+77qRL6eL/UjLnjTLVeWeu2WvD/1mblMEvBLkg0x7RTE Au0g9mdgu3kT+9e5UdA8R603mo6DqB8bhWYYSjmM7/iRwR34G7AcyIAn3ISeV+lZ9Ydp Yl7Q== X-Gm-Message-State: AOJu0Yzln1VAPHwdPa7AQ35sB9BkZJ1NP/FPA5vOouznXeyUI06HI2pI KY65AnlbYXhV5xhkzMOiZNA= X-Google-Smtp-Source: AGHT+IGXD13970+b16mlneOIQKjr8JOvsJVQZ8tQPmXNtcD6m2Un1o+ykXXj4jADUwf9ySU+Vn42Dw== X-Received: by 2002:a05:6a20:7483:b0:159:d4f5:d59 with SMTP id p3-20020a056a20748300b00159d4f50d59mr26554515pzd.12.1697049696122; Wed, 11 Oct 2023 11:41:36 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id z23-20020a63ac57000000b00577f8f4df6bsm183603pgn.18.2023.10.11.11.41.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Oct 2023 11:41:35 -0700 (PDT) Content-Language: en-US In-Reply-To: <87edi1ca2h.fsf@gmail.com> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272264 Archived-At: This is a multi-part message in MIME format. --------------x1lpvdnjKOmhpMNTOPq0XgoM Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 10/11/2023 11:01 AM, Jules Tamagnan wrote: > Essentially the issue is that when killing eshell output and yanking it > into a new input line one cannot navigate as expected. Thankfully this > behavior is extremely easy to reproduce from `emacs -Q'. Thanks for the report. Could you try the attached patch to verify that it fixes things? --------------x1lpvdnjKOmhpMNTOPq0XgoM Content-Type: text/plain; charset=UTF-8; name="0001-Fix-behavior-of-Eshell-prompt-when-yanking-output-in.patch" Content-Disposition: attachment; filename*0="0001-Fix-behavior-of-Eshell-prompt-when-yanking-output-in.pa"; filename*1="tch" Content-Transfer-Encoding: base64 RnJvbSBlMWUwYmNlNWIzYTJmY2RhZjk2NmU0NTBkODZhMmZiNGIyMjM3NmE3IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBKaW0gUG9ydGVyIDxqcG9ydGVyYnVnc0BnbWFpbC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