]> git.eshelyaron.com Git - emacs.git/commitdiff
Make move-end-of-line in minibuffer consistent (bug#65980)
authorStephen Berman <stephen.berman@gmx.net>
Sat, 16 Sep 2023 12:00:24 +0000 (14:00 +0200)
committerStephen Berman <stephen.berman@gmx.net>
Sat, 16 Sep 2023 12:00:24 +0000 (14:00 +0200)
* lisp/simple.el (move-end-of-line): Always move to eol when
invoking `C-e' from within the minibuffer's prompt string.

lisp/simple.el

index abd587245fe4310fe88494e4ad35da7cdc222e95..a128ff41051e31ecdb62d4104ba35b7df9732021 100644 (file)
@@ -8228,7 +8228,11 @@ rests."
       (let ((newpos
             (save-excursion
               (let ((goal-column 0)
-                    (line-move-visual nil))
+                    (line-move-visual nil)
+                     ;; Always move to eol when invoking `C-e' from
+                     ;; within the minibuffer's prompt string (see
+                     ;; bug#65980).
+                     (inhibit-field-text-motion (minibufferp)))
                 (and (line-move arg t)
                      ;; With bidi reordering, we may not be at bol,
                      ;; so make sure we are.