From: Gerd Moellmann Date: Sun, 17 Oct 1999 16:30:39 +0000 (+0000) Subject: (minibuffer-prompt-end): Return the position X-Git-Tag: emacs-pretest-21.0.90~6403 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bf2083f9c7952a1d4aeac1b2d7df718ba156287a;p=emacs.git (minibuffer-prompt-end): Return the position after the prompt, not the position of that last character of the prompt. --- 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)