Subject: bug#71728: previous-line-or-history-element should put cursor at end, like comint-previous-input

From: Dan Jacobson <[email-masked]>
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
 <return> ;; exit-minibuffer
 !	  ;; dired-do-shell-command
 <up>	  ;; previous-line-or-history-element
 C-e	  ;; move-end-of-line
 SPC	  ;; self-insert-command
 -	  ;; self-insert-command
 a	  ;; self-insert-command
 <return> ;; exit-minibuffer
 !	  ;; dired-do-shell-command
 <up>	  ;; previous-line-or-history-element
 C-e	  ;; move-end-of-line
 l	  ;; self-insert-command
 <return> ;; exit-minibuffer

emacs 29.3.