From unknown Sat Sep 20 07:49:29 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#71728 <71728@debbugs.gnu.org> To: bug#71728 <71728@debbugs.gnu.org> Subject: Status: previous-line-or-history-element should put cursor at end, like comint-previous-input Reply-To: bug#71728 <71728@debbugs.gnu.org> Date: Sat, 20 Sep 2025 14:49:29 +0000 retitle 71728 previous-line-or-history-element should put cursor at end, li= ke comint-previous-input reassign 71728 emacs submitter 71728 Dan Jacobson severity 71728 normal tag 71728 notabug wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 22 20:36:23 2024 Received: (at submit) by debbugs.gnu.org; 23 Jun 2024 00:36:23 +0000 Received: from localhost ([127.0.0.1]:37558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLBDT-0005QT-8V for submit@debbugs.gnu.org; Sat, 22 Jun 2024 20:36:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:33878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLBDR-0005QF-6t for submit@debbugs.gnu.org; Sat, 22 Jun 2024 20:36:21 -0400 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 1sLBDQ-0001Ay-1v for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 20:36:20 -0400 Received: from gerbil.ash.relay.mailchannels.net ([23.83.222.67]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sLBDN-00047K-Id for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 20:36:19 -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 E8654542777 for ; Sun, 23 Jun 2024 00:36:12 +0000 (UTC) Received: from pdx1-sub0-mail-a215.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 8B3A3542779 for ; Sun, 23 Jun 2024 00:36:12 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1719102972; a=rsa-sha256; cv=none; b=XQ4uHHDTMXFn+SIeGiZL5zlOiZIVs3HZWx4FExyuc9drROayKQdN4rPjxgIMkibFbc+ar+ c6EirhGODfwnqjZUb/8Yb1xfu0/1K3zhxmku8i49kdZNAkY+3SbEuoPqro0FStUmB/RG6F vReLqRVNDKVtV49z/EChFM64N6cD8vlGEukExCBsjSyE8jaWbCTT1k0DmgFvhylNfsGfoT fKTu3BDq7tTQ0chWJDht0ODrMqYtQfE8gHcWq9cgn+clQnp2doHDGrttlE/p18dMFVwlHH CLP+6njuP1OwbjV6He7P5ofG+uz+SpDzVV3Ct+VS/LpQ5COypHChgbu5m3qt6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1719102972; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: dkim-signature; bh=PAzHn/faVO8vmxXi7STVVNdGO5XhYouvoPXWn2hI7xs=; b=BSLfEIn8fnzu1k993GYPbdtLuAWXli2GM29OnOISJG+u/4oEz/6MCRxeflUyJKNBiFGZFF SJ4eBk1RrVC5bwii2xZ/fRADUZKRqCz7oD778USbkOo98Pj5AauHZxiOQirH0X3ozZbmfX JwQea+T6zxKW+q73VdH3ub+fIlQI+Ih0NgyviwsP4Bo5Q8u5iDayYn5EQIqX3yxW20ryCu G9glSJPVbCeGj9OA9Xx0f75XFwMFS7XRPtqWDpgrtU9v2b3ImaVIaRHP4Bf2DCYGj65nAE 0ipxbpszeGdG3awaykj+G2PpBWujJZLZwhUrSwuzNFRcKZ3lJNSncxwfkPRjGg== ARC-Authentication-Results: i=1; rspamd-7f76976655-vvdd7; auth=pass smtp.auth=dreamhost smtp.mailfrom=jidanni@jidanni.org X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Belong-Towering: 24c24a421a276d13_1719102972776_4166154369 X-MC-Loop-Signature: 1719102972776:3765149808 X-MC-Ingress-Time: 1719102972776 Received: from pdx1-sub0-mail-a215.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.107.55.209 (trex/6.9.2); Sun, 23 Jun 2024 00:36:12 +0000 Received: from jidanni.org (1-165-160-196.dynamic-ip.hinet.net [1.165.160.196]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a215.dreamhost.com (Postfix) with ESMTPSA id 4W6BwX3DxKzJk for ; Sat, 22 Jun 2024 17:36:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jidanni.org; s=dreamhost; t=1719102972; bh=PAzHn/faVO8vmxXi7STVVNdGO5XhYouvoPXWn2hI7xs=; h=From:To:Subject:Date:Content-Type; b=ZfJ7LeyWVMkso7pBLr1L2LR4WWEVBzDO7Y8sQILivj4AlkL2Zq+oxejYPapqUzi1j /qdHTnGVkQIkRKj37LtAMELI9lUbaeqEzS3zjkc6Set3sxox1TJeFNz1f3FFMht9Zg OiPlpzCyhNdDKHL+R0HV/ThGbP39OvRV1dijmC2dsX1LpLxiX+erGqoErrezJq8axH la4uu7JpShqxWxpBcQ15BAHkR4tl6sHjHCmxYykjsW3aDMAaVaAB0qBGu/4268MqmM TXTGrTv+HOKi6fD2glokCG2pPsJYYUeLnd6d2zCqHmfgUGl5ZbRVE4kxurOUSiTs6B T6dllPM1HIVyg== Received: from jidanni by jidanni.org with local (Exim 4.96) (envelope-from ) id 1sL9yU-0000i1-15 for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2024 07:16:51 +0800 From: Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: previous-line-or-history-element should put cursor at end, like comint-previous-input Date: Sun, 23 Jun 2024 07:16:49 +0800 Message-ID: <87le2wwota.3.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=23.83.222.67; envelope-from=jidanni@jidanni.org; helo=gerbil.ash.relay.mailchannels.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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: -2.4 (--) 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 emacs 29.3. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 01:37:58 2024 Received: (at 71728) by debbugs.gnu.org; 23 Jun 2024 05:37:58 +0000 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 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 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==; Date: Sun, 23 Jun 2024 08:37:47 +0300 Message-Id: <865xu0fcd0.fsf@gnu.org> From: Eli Zaretskii To: Dan Jacobson In-Reply-To: <87le2wwota.3.fsf@jidanni.org> (message from Dan Jacobson on Sun, 23 Jun 2024 07:16:49 +0800) Subject: Re: bug#71728: previous-line-or-history-element should put cursor at end, like comint-previous-input References: <87le2wwota.3.fsf@jidanni.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71728 Cc: 71728@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: -3.3 (---) 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 09:38:33 2024 Received: (at 71728) by debbugs.gnu.org; 23 Jun 2024 13:38:33 +0000 Received: from localhost ([127.0.0.1]:59558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLNQO-0003hF-VQ for submit@debbugs.gnu.org; Sun, 23 Jun 2024 09:38:33 -0400 Received: from seashell.cherry.relay.mailchannels.net ([23.83.223.162]:20163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLNQL-0003gw-6l for 71728@debbugs.gnu.org; Sun, 23 Jun 2024 09:38:31 -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 C3E57C28D6; Sun, 23 Jun 2024 13:38:27 +0000 (UTC) Received: from pdx1-sub0-mail-a288.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id A53F3C289E; Sun, 23 Jun 2024 13:38:26 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1719149906; a=rsa-sha256; cv=none; b=K9xKaObuprxQ+92CeZtWw7/kUdCVXDd4eOrRqBFAzADxY+8WMHXm5nmg9qhJvj5lOlUdWG NgnXIKIWclBYnpqMHCCQ7pOCGIq7Eau/hXsnc/5gRvSgkSuZxqAo+2bWZAXDhMaS/w7aHN 3Ue5H3NR9yiIFPQ3bJFC3XmK1HWrhmPWGJjvEu3C5FHBEMxQUwpLOF5bW6v6ytY2NlGIov bM4Wdq/Qc9gVQPHYWU5cUyOglmb88Lp4RyJbPitJhfU1VapOVSu42TiKoF7Q04t21nmDY6 2gaLqlc8rSd/F1U8AOFjTxA0Y3Oms30NuE4MckgoSI0aTPvHEnqVGbWHk90TWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1719149906; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references:dkim-signature; bh=AcwfJB8H2DWdVm4HRKTngSdgGH4fjrknWAO3VjL0z8o=; b=XcKb0EaFzHliPGlKSwgJv9LXKYE8xciYU4WPoXgAX1Lor47djJy6rwjCbopbKZdsKULtC8 ZFjU2gnEOoszNn06sIcICMkMnOolHi0j9KCUa5O7EKkcHsNcv4xBCIDWnl9uoAfR3f5IRK Rf2EufOwISzRFhJIyDtiEBVUBEr5DuPD4+K6dnVf/jUjYPOdqmVXig5OCu4GzmExvfzbxx Sa50m6y2nt86q2oBdQaJhdMiqZJwuGqv3LbsRzmBLPsqgnaLQW21yHaD9n9OYOtSn+nqLg +Whurj7QiZXcNaI+bn+7OV8amT6EalyNJ5+IIZMq1lk3OgnzmtadzUWsO0wv/Q== ARC-Authentication-Results: i=1; rspamd-7f76976655-b4jtg; auth=pass smtp.auth=dreamhost smtp.mailfrom=jidanni@jidanni.org X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Arithmetic-Spill: 2b787fd4355db078_1719149907679_3250628320 X-MC-Loop-Signature: 1719149907679:278599805 X-MC-Ingress-Time: 1719149907679 Received: from pdx1-sub0-mail-a288.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.107.55.209 (trex/6.9.2); Sun, 23 Jun 2024 13:38:27 +0000 Received: from jidanni.org (1-165-160-196.dynamic-ip.hinet.net [1.165.160.196]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a288.dreamhost.com (Postfix) with ESMTPSA id 4W6XH63pMhz9w; Sun, 23 Jun 2024 06:38:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jidanni.org; s=dreamhost; t=1719149906; bh=AcwfJB8H2DWdVm4HRKTngSdgGH4fjrknWAO3VjL0z8o=; h=From:To:Cc:Subject:Date:Content-Type; b=RM7JUC/UEHyEriy8EFIgSiNtt5tgC4MB6T8QPhklofUWMHl++DmYI99cjS8bgWXru XW5H8Xem/vx6uekoAPH1uf/Nw4xq3K98rPe1FiOe8bVwRd1CgiCDNIpWqkeaQOlIpf csizskIFSW7Xa9c4S1gFwtRkt4swRYVpxtCgecEJ48mYTSY87Ju5A2KZ0g95LZwa+Y qy7UInv37WQYDFcayxzHHpq1MAr9lub5nd4WOSrnMaVM8SptLpzOChF3P9ZAIbNdT3 Z0x4gnG5TRJQratCv0HJkV3+winVEO31Wmx765cClbU4IeRX4pEx48biJEudyJvoUK qZ2r/KsPQXn0A== Received: from jidanni by jidanni.org with local (Exim 4.96) (envelope-from ) id 1sLNQF-00011Z-2b; Sun, 23 Jun 2024 21:38:23 +0800 From: Dan Jacobson To: Eli Zaretskii Subject: Re: bug#71728: previous-line-or-history-element should put cursor at end, like comint-previous-input References: <87le2wwota.3.fsf@jidanni.org> <865xu0fcd0.fsf@gnu.org> Date: Sun, 23 Jun 2024 21:38:23 +0800 Message-ID: <87bk3raieo.3.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 71728 Cc: 71728@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 (-) >>>>> "EZ" == Eli Zaretskii writes: >> From: Dan Jacobson >> ! ;; 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 EZ> If you don't like the current heuristics, use M-p instead of the arrow. Alas, in my above example, M-p behaves exactly the same as . From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 09:50:20 2024 Received: (at 71728) by debbugs.gnu.org; 23 Jun 2024 13:50:20 +0000 Received: from localhost ([127.0.0.1]:60043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLNbo-0004B1-5N for submit@debbugs.gnu.org; Sun, 23 Jun 2024 09:50:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLNbm-0004Ai-5E for 71728@debbugs.gnu.org; Sun, 23 Jun 2024 09:50:18 -0400 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 1sLNbd-0000cY-1G; Sun, 23 Jun 2024 09:50:10 -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=lJztokwCiAf/djfuaCMF1yaP+jc8NMiFQXlNoLtVQTk=; b=fuIfdjQneact XbimmZd7mj8RDbklfV4X0Yi90Er/32zwGk00boHwpuuqEtV4fGY4IooBA3qo40hJ43bzfH2ZA+oOb QJlmMe/Olf6PrJKlc7PtDnubfF+Puaz5QUUMhxkzsQADX/UatLb/yz7XVT5x/aI3bAKlp3q1WXwVO ofO81aNPVXldyJHbclpcDVc1C6C9bcbtC406K4u4nM7pzXI/w72obbAQs2TJR7gfkJu/o8gs4u6se D+KblTodbVOSkh8SYJ8mXGOEPuahK7tL5HXBSPpaVIM4a/M8kL53u+2Z6FnJ4I7AvNLTMoJH3rK5d RUCUJgZ4CzBc5H/1N6aB3Q==; Date: Sun, 23 Jun 2024 16:50:04 +0300 Message-Id: <86a5jbepkj.fsf@gnu.org> From: Eli Zaretskii To: Dan Jacobson In-Reply-To: <87bk3raieo.3.fsf@jidanni.org> (message from Dan Jacobson on Sun, 23 Jun 2024 21:38:23 +0800) Subject: Re: bug#71728: previous-line-or-history-element should put cursor at end, like comint-previous-input References: <87le2wwota.3.fsf@jidanni.org> <865xu0fcd0.fsf@gnu.org> <87bk3raieo.3.fsf@jidanni.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71728 Cc: 71728@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: -3.3 (---) > From: Dan Jacobson > Cc: 71728@debbugs.gnu.org > Date: Sun, 23 Jun 2024 21:38:23 +0800 > > >>>>> "EZ" == Eli Zaretskii writes: > >> From: Dan Jacobson > >> ! ;; 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 > > EZ> If you don't like the current heuristics, use M-p instead of the arrow. > > Alas, in my above example, M-p behaves exactly the same as . So you are complaining about the usual Emacs behavior of vertical motion, which keeps the column? Why should Emacs go to EOL in this particular case when it doesn't do that in any other buffer/window? From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 10:05:15 2024 Received: (at 71728) by debbugs.gnu.org; 23 Jun 2024 14:05:15 +0000 Received: from localhost ([127.0.0.1]:33827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLNqF-00057y-2R for submit@debbugs.gnu.org; Sun, 23 Jun 2024 10:05:15 -0400 Received: from dormouse.elm.relay.mailchannels.net ([23.83.212.50]:19143) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLNqC-00057i-QB for 71728@debbugs.gnu.org; Sun, 23 Jun 2024 10:05:13 -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 18B979029A4; Sun, 23 Jun 2024 14:05:11 +0000 (UTC) Received: from pdx1-sub0-mail-a288.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id BD5AB902BC5; Sun, 23 Jun 2024 14:05:10 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1719151510; a=rsa-sha256; cv=none; b=cApzmfl9hPMuklmmGeIYqdQS9RZmgUq7jszxY1z4GM2YSe8shc/JbqrOP8Gsm5PyGvlxEf yliCJIobsRiOgi6EANXR1YKv2afLMLTW+PR7tXD5ICtOaykAPt3AyrMu70yM6wzmBSG/4m VAp1e1+tmpLLHe70eprbAR1wcLQlksA3jtgCoN3bwb4cHZIWZfS1iO6V/gz7cJXNcuVEea HckLeExpJJHfVP86/EhOqxkcLgZs7fTYgPLopOcUU77vv6MQtVJJJokR75iyMCVh4Og8Kc i+NTC3fZ/i1pgDRHG1A6XHbxUiINMiwLE2DwYnTDRS0r9Fft9RdDdKysizkx3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1719151510; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references:dkim-signature; bh=yhCCnB9uzR2PMuS+jbXruOtEA9TjBRNP6Me29ib4Ulo=; b=iWpS7/p0dwcFflOcKM/H5uwfWFd0EwOQR25jx5SXKFfnAFgMp7CnZ0Gu4i7hsXJFAmHAeq fAMZr++0wlVL6k9T7ygKm5hMRgLp3a/YEpIVzbku6rDoCKBSF3jaqDZQwAvTr68QmMSafC o5tJ1SOnQIXjasQXajj4H70iPQHrOJfJxAgxfQs6yyhiyGOYbZPGphOd8iGbSbPf+cA+tD 0d2N6+qBxzjm8h/PwaH6BHoIiHYMTgV6oBPxXHIIjbGk1S7lmwpHaZKe+C7l+9d2/T42Xw Td/jp0O4ESZzMpbCl+nmN69ma9OlNKOIdxT8DQFo9nPiilwr/h/F6lt1wPt6kQ== ARC-Authentication-Results: i=1; rspamd-79677bdb95-lfkjb; auth=pass smtp.auth=dreamhost smtp.mailfrom=jidanni@jidanni.org X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Tart-Whimsical: 06931fd5294d3126_1719151510991_3493971956 X-MC-Loop-Signature: 1719151510991:2571144963 X-MC-Ingress-Time: 1719151510991 Received: from pdx1-sub0-mail-a288.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.110.173.217 (trex/6.9.2); Sun, 23 Jun 2024 14:05:10 +0000 Received: from jidanni.org (1-165-160-196.dynamic-ip.hinet.net [1.165.160.196]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a288.dreamhost.com (Postfix) with ESMTPSA id 4W6Xsy4RsrzDd; Sun, 23 Jun 2024 07:05:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jidanni.org; s=dreamhost; t=1719151510; bh=yhCCnB9uzR2PMuS+jbXruOtEA9TjBRNP6Me29ib4Ulo=; h=From:To:Cc:Subject:Date:Content-Type; b=Rm2U0CTBa+YPb/poyJxTr/ELjBYXRqcdMhQQQh5IfH1VXavgchz+SNoktiGFVxy4z wCbHQDqrB49yOl3SyHMFO9h9+S1GMz+jdrmtUBJZVGw2aAchoRhZc5/S9sClkLFvam byFHic6VmNGuNqGOYJPuUVn1BCKcQrBUD+dKaP1CXbqKiAlWe4exBYVL3AE/CZSTTp Qx8+D8EuspEYlf62cjJWrjKbqMoU2fn2k793sr9vKVYiWbasZx4M+ovVyXI72L8lvk a9PU8ZJiXvUeq53Da39kM+ZJTNDNq6swcTHAi1PyBwtmPf4i2VYUITTJfcmXyV/C8g C/oGotJnZ6KSA== Received: from jidanni by jidanni.org with local (Exim 4.96) (envelope-from ) id 1sLNq7-00013E-0Q; Sun, 23 Jun 2024 22:05:07 +0800 From: Dan Jacobson To: Eli Zaretskii Subject: Re: bug#71728: previous-line-or-history-element should put cursor at end, like comint-previous-input References: <87le2wwota.3.fsf@jidanni.org> <865xu0fcd0.fsf@gnu.org> <87bk3raieo.3.fsf@jidanni.org> <86a5jbepkj.fsf@gnu.org> Date: Sun, 23 Jun 2024 22:05:07 +0800 Message-ID: <875xtzah64.3.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 71728 Cc: 71728@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 (-) >>>>> "EZ" == Eli Zaretskii writes: EZ> Why should Emacs go to EOL in this particular case when it doesn't EZ> do that in any other buffer/window? Works great here: $ emacs -f shell l ;; self-insert-command s ;; self-insert-command ;; comint-send-input p ;; comint-previous-input From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 23 10:10:00 2024 Received: (at 71728) by debbugs.gnu.org; 23 Jun 2024 14:10:00 +0000 Received: from localhost ([127.0.0.1]:34015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLNuq-0005Hj-90 for submit@debbugs.gnu.org; Sun, 23 Jun 2024 10:10:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLNun-0005HH-J4 for 71728@debbugs.gnu.org; Sun, 23 Jun 2024 10:09:58 -0400 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 1sLNug-0004wJ-RF; Sun, 23 Jun 2024 10:09:51 -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=gwk5acTy+FHQEpO57ZXTgy8JnuFFLLu0scS1L4gVAL8=; b=WauMyF1noh1B OnTspkyKTF7oyfn9AzkpKeD4uLf4LVtbaYXUxRP8eNfccLkzQ0SOVKtCR0CPaRm6UXaNeVGdywg3y +Rdj+QC9i+xmyCN/2nCnfmoi1tLrzo1Ch5aZHxof5NJRIR7i/LXn9qO3XMfkBtiYaPu0oAoDnVOYJ 5cwjkyQEvRlIklnet9nrGXwAHmgVCqnCvCeppzBkcWAYwmScFtgMwOJ6zCOQnLeOTrO4ZIQIfzgfP 6VzDGYeG4EudCIbhbrIehWG4yyle40b0GScxsdgGM4xBkJqo1RsCbUaOTtT1EFVbVRaf5qTtqJGGB 7+QJ6Ar3wzpdKAcQQnThJw==; Date: Sun, 23 Jun 2024 17:09:47 +0300 Message-Id: <868qyveono.fsf@gnu.org> From: Eli Zaretskii To: Dan Jacobson In-Reply-To: <875xtzah64.3.fsf@jidanni.org> (message from Dan Jacobson on Sun, 23 Jun 2024 22:05:07 +0800) Subject: Re: bug#71728: previous-line-or-history-element should put cursor at end, like comint-previous-input References: <87le2wwota.3.fsf@jidanni.org> <865xu0fcd0.fsf@gnu.org> <87bk3raieo.3.fsf@jidanni.org> <86a5jbepkj.fsf@gnu.org> <875xtzah64.3.fsf@jidanni.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71728 Cc: 71728@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: -3.3 (---) > From: Dan Jacobson > Cc: 71728@debbugs.gnu.org > Date: Sun, 23 Jun 2024 22:05:07 +0800 > > >>>>> "EZ" == Eli Zaretskii writes: > EZ> Why should Emacs go to EOL in this particular case when it doesn't > EZ> do that in any other buffer/window? > > Works great here: > $ emacs -f shell > l ;; self-insert-command > s ;; self-insert-command > ;; comint-send-input > p ;; comint-previous-input Not relevant to the issue at hand. Minibuffer is not a comint buffer. From unknown Sat Sep 20 07:49:29 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, 22 Jul 2024 11:24:11 +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