From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#60468: 29.0.60; next-history-element places cursosr inconsistently Date: Thu, 05 Jan 2023 19:42:35 +0200 Organization: LINKOV.NET Message-ID: <86fscp5gv8.fsf@mail.linkov.net> References: <87wn66l2f7.fsf@zohomail.eu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37658"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 60468@debbugs.gnu.org To: Rah Guzar Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 05 18:58:03 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 1pDUV9-0009fh-Cg for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Jan 2023 18:58:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDUUH-0002b3-OD; Thu, 05 Jan 2023 12:57:09 -0500 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 1pDUUC-0002RW-M4 for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 12:57:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pDUUC-0005VS-EJ for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 12:57:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pDUUC-0008EN-AH for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 12:57:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jan 2023 17:57:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60468 X-GNU-PR-Package: emacs Original-Received: via spool by 60468-submit@debbugs.gnu.org id=B60468.167294137731497 (code B ref 60468); Thu, 05 Jan 2023 17:57:04 +0000 Original-Received: (at 60468) by debbugs.gnu.org; 5 Jan 2023 17:56:17 +0000 Original-Received: from localhost ([127.0.0.1]:52808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDUTR-0008Bx-2z for submit@debbugs.gnu.org; Thu, 05 Jan 2023 12:56:17 -0500 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:40829) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDUTP-0008BQ-Sv for 60468@debbugs.gnu.org; Thu, 05 Jan 2023 12:56:16 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 5473AFF809; Thu, 5 Jan 2023 17:56:05 +0000 (UTC) In-Reply-To: <87wn66l2f7.fsf@zohomail.eu> (Rah Guzar via's message of "Sun, 01 Jan 2023 15:51:21 +0100") 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:252622 Archived-At: > (setq-local minibuffer-temporary-goal-position > (cond ((<= (point) prompt-end) prompt-end) > ((eobp) nil) > (t (point)))))) > > The unexpected behavior I described earlier is caused by the > first clause in the cond above which treats the cursor at the > end of the prompt with no input to be inside the prompt while > to me it seems better to treat the cursor as being at end of > buffer. > > From my own habit, it seem better leave the cursor at the end > of the input unconditionally. Does it makes sense to provide > that at least an option? If Eli will agree to an option, then after changing in goto-history-element from (<= (point) prompt-end) to (< (point) prompt-end), please also change in next-line-or-history-element from (> (point) prompt-end) to (>= (point) prompt-end) and in previous-line-or-history-element from (> (point) prompt-end) to (>= (point) prompt-end) depending on that option.