From unknown Wed Aug 20 03:36:51 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#28668 <28668@debbugs.gnu.org> To: bug#28668 <28668@debbugs.gnu.org> Subject: Status: comint-previous-input could put the cursor where it was Reply-To: bug#28668 <28668@debbugs.gnu.org> Date: Wed, 20 Aug 2025 10:36:51 +0000 retitle 28668 comint-previous-input could put the cursor where it was reassign 28668 emacs submitter 28668 =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson severity 28668 wishlist tag 28668 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 02 07:37:58 2017 Received: (at submit) by debbugs.gnu.org; 2 Oct 2017 11:37:58 +0000 Received: from localhost ([127.0.0.1]:43469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyz2s-0002wz-ML for submit@debbugs.gnu.org; Mon, 02 Oct 2017 07:37:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33861) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyz2q-0002wn-Ad for submit@debbugs.gnu.org; Mon, 02 Oct 2017 07:37:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dyz2k-0002Tz-Ew for submit@debbugs.gnu.org; Mon, 02 Oct 2017 07:37:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34754) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dyz2k-0002Tj-Cg for submit@debbugs.gnu.org; Mon, 02 Oct 2017 07:37:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyz2f-0005TP-5A for bug-gnu-emacs@gnu.org; Mon, 02 Oct 2017 07:37:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dyz2d-0002Px-Aw for bug-gnu-emacs@gnu.org; Mon, 02 Oct 2017 07:37:45 -0400 Received: from homie.mail.dreamhost.com ([208.97.132.208]:53607 helo=homiemail-a61.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dyz2d-0002Pb-5W for bug-gnu-emacs@gnu.org; Mon, 02 Oct 2017 07:37:43 -0400 Received: from homiemail-a61.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a61.g.dreamhost.com (Postfix) with ESMTP id 3F72B578071 for ; Mon, 2 Oct 2017 04:37:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=NLrHdbjuExIM2k1tNgXJyAA0Xr0=; b=oqpHu2V4TONsGHmM a3x1a1BvULoUYr1KGI6+YC8D6LAZdZhy9+S3RXAIT/zYYXYdix51Gzta/tIyLZ6R v4s1PUQDE7VAZn6z0mbXGmL8p0vMcyuLJTu0hogAjZYXHXwVrbTw51CxLjnkiBYl 5JNkTgY5fKf7sKyTM0dRHrba+MM= Received: from jidanni.org (1-170-84-137.dynamic-ip.hinet.net [1.170.84.137]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a61.g.dreamhost.com (Postfix) with ESMTPSA id EDE6C57806C for ; Mon, 2 Oct 2017 04:37:41 -0700 (PDT) From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: comint-previous-input could put the cursor where it was Date: Mon, 02 Oct 2017 18:33:52 +0800 Message-ID: <87h8vhg7ov.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit 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: -5.0 (-----) In bash, ^P puts the cursor at the same spot where it was (when we hit RET) last command. In emacs shell mode, M-p (comint-previous-input) always puts the cursor at the end of the line, no matter what. Perhaps it could be made to be like bash... at least for the latest previous command. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 15 05:22:41 2019 Received: (at 28668) by debbugs.gnu.org; 15 Jul 2019 09:22:41 +0000 Received: from localhost ([127.0.0.1]:46383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmxBx-0006BW-DD for submit@debbugs.gnu.org; Mon, 15 Jul 2019 05:22:41 -0400 Received: from quimby.gnus.org ([80.91.231.51]:38940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmxBv-0006BM-8L for 28668@debbugs.gnu.org; Mon, 15 Jul 2019 05:22:39 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hmxBr-00058V-1I; Mon, 15 Jul 2019 11:22:37 +0200 From: Lars Ingebrigtsen To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson Subject: Re: bug#28668: comint-previous-input could put the cursor where it was References: <87h8vhg7ov.fsf@jidanni.org> Date: Mon, 15 Jul 2019 11:22:34 +0200 In-Reply-To: <87h8vhg7ov.fsf@jidanni.org> (=?utf-8?B?IuepjeS4ueWwvA==?= Dan Jacobson"'s message of "Mon, 02 Oct 2017 18:33:52 +0800") Message-ID: <87o91vtzxh.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: 積丹尼 Dan Jacobson writes: > In bash, ^P puts the cursor at the same spot where it was (when we hit > RET) last command. I tried this on Debian Stale now, and C-p didn't do that. Perhaps you have a special setting? 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.0 (/) X-Debbugs-Envelope-To: 28668 Cc: 28668@debbugs.gnu.org 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 (-) =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > In bash, ^P puts the cursor at the same spot where it was (when we hit > RET) last command. I tried this on Debian Stale now, and C-p didn't do that. Perhaps you have a special setting? > In emacs shell mode, M-p (comint-previous-input) > always puts the cursor at the end of the line, no matter what. Perhaps > it could be made to be like bash... at least for the latest previous > command. I think that sounds like a slightly confusing feature, so I'm closing this bug report. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 15 05:22:46 2019 Received: (at control) by debbugs.gnu.org; 15 Jul 2019 09:22:46 +0000 Received: from localhost ([127.0.0.1]:46386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmxC1-0006Bn-N2 for submit@debbugs.gnu.org; Mon, 15 Jul 2019 05:22:45 -0400 Received: from quimby.gnus.org ([80.91.231.51]:38954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmxBz-0006Bf-I5 for control@debbugs.gnu.org; Mon, 15 Jul 2019 05:22:43 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hmxBw-00058c-VQ for control@debbugs.gnu.org; Mon, 15 Jul 2019 11:22:42 +0200 Date: Mon, 15 Jul 2019 11:22:40 +0200 Message-Id: <87muhftzxb.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #28668 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 28668 wontfix close 28668 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: 0.0 (/) 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: -1.0 (-) tags 28668 wontfix close 28668 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 15 07:07:38 2019 Received: (at 28668) by debbugs.gnu.org; 15 Jul 2019 11:07:38 +0000 Received: from localhost ([127.0.0.1]:46602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmypW-000359-9b for submit@debbugs.gnu.org; Mon, 15 Jul 2019 07:07:38 -0400 Received: from caracal.birch.relay.mailchannels.net ([23.83.209.30]:50194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmypU-000350-Ay for 28668@debbugs.gnu.org; Mon, 15 Jul 2019 07:07:37 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1E7413419F7; Mon, 15 Jul 2019 11:07:35 +0000 (UTC) Received: from pdx1-sub0-mail-a35.g.dreamhost.com (100-96-38-36.trex.outbound.svc.cluster.local [100.96.38.36]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id A14F0341B2E; Mon, 15 Jul 2019 11:07:34 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a35.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Mon, 15 Jul 2019 11:07:35 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Fearful-Wiry: 1f59c45f6c148e06_1563188854821_2685580602 X-MC-Loop-Signature: 1563188854820:3899996348 X-MC-Ingress-Time: 1563188854820 Received: from pdx1-sub0-mail-a35.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a35.g.dreamhost.com (Postfix) with ESMTP id 4D2A97F663; Mon, 15 Jul 2019 04:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=LmitqzjGvQyRR+TKTBarq6JbBTg=; b=l71rDcA/kvfp9 IF1HiEcIjU+UNNzOsPeqNB+bFb2HZ7kcfFKl0gzLMfNV0R67Hvnkiq4Z+7kH1sE4 dojuZesqSNfClUIEvY3iCApdw+Gxn1xBMO6ci6tlzSsK6RJaTzUGyxGseSi3nQM1 S1LoriGEmbWYrOo/2IylKig082L0O4= Received: from jidanni.org (114-41-26-121.dynamic-ip.hinet.net [114.41.26.121]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a35.g.dreamhost.com (Postfix) with ESMTPSA id B22457F4F0; Mon, 15 Jul 2019 04:07:28 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a35 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: Lars Ingebrigtsen Subject: Re: bug#28668: comint-previous-input could put the cursor where it was References: <87h8vhg7ov.fsf@jidanni.org> <87o91vtzxh.fsf@mouse.gnus.org> Date: Mon, 15 Jul 2019 19:07:24 +0800 Message-ID: <87a7dfd09f.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrheekgdefgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufhffkfggtgesthdtredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppeduudegrdeguddrvdeirdduvddunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepuddugedrgedurddviedruddvuddprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopedvkeeiieekseguvggssghughhsrdhgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 28668 Cc: 28668@debbugs.gnu.org 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 (-) Yes, in .inputrc set history-preserve-point on Once you try it you'll never go back! From unknown Wed Aug 20 03:36:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 12 Aug 2019 11:24:08 +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