changeset 26063:aa272f550e17

(minibuffer-prompt-end): Return the position after the prompt, not the position of that last character of the prompt.
author Gerd Moellmann <gerd@gnu.org>
date Sun, 17 Oct 1999 16:30:39 +0000
parents fd35581d53c1
children 5a1f081e0ca0
files lisp/simple.el
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/simple.el	Sun Oct 17 12:58:58 1999 +0000
+++ b/lisp/simple.el	Sun Oct 17 16:30:39 1999 +0000
@@ -860,12 +860,8 @@
 (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)