From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dan Jacobson 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 07:16:49 +0800 Message-ID: <87le2wwota.3.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36894"; mail-complaints-to="usenet@ciao.gmane.io" To: 71728@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 23 02:37:32 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 1sLBEX-0009My-ND for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jun 2024 02:37:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLBEE-0001FG-LQ; Sat, 22 Jun 2024 20:37:10 -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 1sLBE7-0001ER-5P for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 20:37:03 -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 1sLBE6-0004A1-0U for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 20:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sLBE6-0005SU-0y for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 20:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Jun 2024 00:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71728 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.171910298320865 (code B ref -1); Sun, 23 Jun 2024 00:37:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Jun 2024 00:36:23 +0000 Original-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 Original-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 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 1sLBDQ-0001Ay-1v for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 20:36:20 -0400 Original-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 Original-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) Original-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 Original-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 Original-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== Original-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 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-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:287749 Archived-At: 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.