From bf2083f9c7952a1d4aeac1b2d7df718ba156287a Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Sun, 17 Oct 1999 16:30:39 +0000 Subject: [PATCH] (minibuffer-prompt-end): Return the position after the prompt, not the position of that last character of the prompt. --- lisp/simple.el | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lisp/simple.el b/lisp/simple.el index 6bdd8a4bc89..7482bf2cfef 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -860,12 +860,8 @@ Return 0 if current buffer is not a mini-buffer." (defun minibuffer-prompt-end () "Return the buffer position of the end of the minibuffer prompt. Return 0 if current buffer is not a mini-buffer." - ;; Return the width of everything before the field at the end of - ;; the buffer; this should be 0 for normal buffers. - ;; XXX This definition doesn't seem very useful; why does one care - ;; about the last character of the prompt? The beginning of the - ;; user-text seems more useful (e.g., this value + 1). - (1- (field-beginning (point-max)))) + (field-beginning (point-max))) + ;Put this on C-x u, so we can force that rather than C-_ into startup msg (defalias 'advertised-undo 'undo) -- 2.39.5