aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Berman2023-09-16 14:00:24 +0200
committerStephen Berman2023-09-16 14:00:24 +0200
commit33ff4fed03d8cd869d35edd94f92b3fbb0a7c3aa (patch)
tree4fa8d19c331fac8e70e9a8b44077ca418c7a7b5d
parent755ae813a6adf203d4a602a3e7fc0b9ed547be8c (diff)
downloademacs-33ff4fed03d8cd869d35edd94f92b3fbb0a7c3aa.tar.gz
emacs-33ff4fed03d8cd869d35edd94f92b3fbb0a7c3aa.zip
Make move-end-of-line in minibuffer consistent (bug#65980)
* lisp/simple.el (move-end-of-line): Always move to eol when invoking `C-e' from within the minibuffer's prompt string.
-rw-r--r--lisp/simple.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index abd587245fe..a128ff41051 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -8228,7 +8228,11 @@ rests."
8228 (let ((newpos 8228 (let ((newpos
8229 (save-excursion 8229 (save-excursion
8230 (let ((goal-column 0) 8230 (let ((goal-column 0)
8231 (line-move-visual nil)) 8231 (line-move-visual nil)
8232 ;; Always move to eol when invoking `C-e' from
8233 ;; within the minibuffer's prompt string (see
8234 ;; bug#65980).
8235 (inhibit-field-text-motion (minibufferp)))
8232 (and (line-move arg t) 8236 (and (line-move arg t)
8233 ;; With bidi reordering, we may not be at bol, 8237 ;; With bidi reordering, we may not be at bol,
8234 ;; so make sure we are. 8238 ;; so make sure we are.