Variable: comint-move-point-for-matching-input
comint-move-point-for-matching-input is a customizable variable
defined in comint.el.gz.
Value
after-input
Documentation
Controls where to place point after matching input.
This influences the commands C-c M-r (comint-previous-matching-input-from-input) and C-c M-s (comint-next-matching-input-from-input).
If after-input, point will be positioned after the input typed
by the user, but before the rest of the history entry that has
been inserted. If end-of-line, point will be positioned at the
end of the current logical (not visual) line after insertion.
This variable was added, or its default value changed, in Emacs 26.1.
Probably introduced at or before Emacs version 26.1.
Source Code
;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defcustom comint-move-point-for-matching-input 'after-input
"Controls where to place point after matching input.
\\<comint-mode-map>This influences the commands \\[comint-previous-matching-input-from-input] and \\[comint-next-matching-input-from-input].
If `after-input', point will be positioned after the input typed
by the user, but before the rest of the history entry that has
been inserted. If `end-of-line', point will be positioned at the
end of the current logical (not visual) line after insertion."
:version "26.1"
:type '(radio (const :tag "Stay after input" after-input)
(const :tag "Move to end of line" end-of-line))
:group 'comint)