From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#71728: previous-line-or-history-element should put cursor at end, like comint-previous-input Date: Sun, 23 Jun 2024 08:37:47 +0300 Message-ID: <865xu0fcd0.fsf@gnu.org> References: <87le2wwota.3.fsf@jidanni.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40760"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71728@debbugs.gnu.org To: Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 23 07:38:25 2024 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 1sLFvl-000AJz-Ik for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jun 2024 07:38:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLFvP-0005IF-MZ; Sun, 23 Jun 2024 01:38:03 -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 1sLFvO-0005Hm-5x for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2024 01:38:02 -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 1sLFvN-0008Fs-Tb for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2024 01:38:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sLFvO-0006t3-3g for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2024 01:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Jun 2024 05:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71728 X-GNU-PR-Package: emacs Original-Received: via spool by 71728-submit@debbugs.gnu.org id=B71728.171912107826454 (code B ref 71728); Sun, 23 Jun 2024 05:38:02 +0000 Original-Received: (at 71728) by debbugs.gnu.org; 23 Jun 2024 05:37:58 +0000 Original-Received: from localhost ([127.0.0.1]:45372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLFvJ-0006sb-RY for submit@debbugs.gnu.org; Sun, 23 Jun 2024 01:37:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLFvI-0006sI-1A; Sun, 23 Jun 2024 01:37:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sLFvA-00084D-Qs; Sun, 23 Jun 2024 01:37:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=EjLQVI1IWlVvoW721H2XHjPLY18YrZBpPQxUTgxhO18=; b=ga5xtNdNryNZ O9kjXMe7S7x9Gtbfnh//mU00NCS/OcRbgadAPIzsMx1hcrhs3CJ3obn5tD224eHvi6E2h6X6FLp8p bgEzfaNw+MB3GKZjGdFL87l86uagdsnUAU3JXtMtJTs4UbyuzeWnBZfl2MRNztb6PMxgKgAe+g4bR nl6SiskI8KFucFY69O5CXUWKgtsaz/fm4MSDsxcUBbDSWWhg3iTapTuB8SIjBRd8tr88iQXZ/cyu2 joE17cZ0vIBYrQFtfF2Ol6+n7bYXTRXj2CNEZWhNSgxaqyGB/KWPKSd5+vBCbl5i8Uw+vLQb5g+/a xyZSZ+nVCDkRMCq1LtzwSw==; In-Reply-To: <87le2wwota.3.fsf@jidanni.org> (message from Dan Jacobson on Sun, 23 Jun 2024 07:16:49 +0800) 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:287762 Archived-At: tags 71728 notabug wontfix close 71728 thanks > From: Dan Jacobson > Date: Sun, 23 Jun 2024 07:16:49 +0800 > > Here none of the "C-e ;; move-end-of-line" should be necessary, > as the position of the previous cursor should be remembered along > with the previous command. > Or the default position of the cursor should be the end of line, > not beginning. Just like comint-previous-input. > > ! ;; dired-do-shell-command > l ;; self-insert-command > s ;; self-insert-command > ;; exit-minibuffer > ! ;; dired-do-shell-command > ;; previous-line-or-history-element > C-e ;; move-end-of-line > SPC ;; self-insert-command > - ;; self-insert-command > a ;; self-insert-command > ;; exit-minibuffer > ! ;; dired-do-shell-command > ;; previous-line-or-history-element > C-e ;; move-end-of-line > l ;; self-insert-command > ;; exit-minibuffer There's a possible conflict between moving the cursor vertically and showing the previous command here. If you don't like the current heuristics, use M-p instead of the arrow. I'm closing this bug because Emacs behaves here exactly as intended, and changing that will reopen a large can of worms we had when the current behavior was implemented.