From: Juri Linkov <juri@linkov.net>
To: Rah Guzar <rahguzar@zohomail.eu>
Cc: 60468@debbugs.gnu.org
Subject: bug#60468: 29.0.60; next-history-element places cursosr inconsistently
Date: Thu, 05 Jan 2023 19:42:35 +0200 [thread overview]
Message-ID: <86fscp5gv8.fsf@mail.linkov.net> (raw)
In-Reply-To: <87wn66l2f7.fsf@zohomail.eu> (Rah Guzar via's message of "Sun, 01 Jan 2023 15:51:21 +0100")
> (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.
next prev parent reply other threads:[~2023-01-05 17:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-01 14:51 bug#60468: 29.0.60; next-history-element places cursosr inconsistently Rah Guzar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-05 17:42 ` Juri Linkov [this message]
2023-01-05 18:31 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86fscp5gv8.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=60468@debbugs.gnu.org \
--cc=rahguzar@zohomail.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.