(Minibuffer Misc): Add entries for `minibuffer-contents',
authorMiles Bader <miles@gnu.org>
Tue, 2 Oct 2001 02:34:48 +0000 (02:34 +0000)
committerMiles Bader <miles@gnu.org>
Tue, 2 Oct 2001 02:34:48 +0000 (02:34 +0000)
`minibuffer-contents-no-properties', and `delete-minibuffer-contents'.
Correct description for `minibuffer-prompt-end'.

lispref/minibuf.texi

index 5880173..0bdb634 100644 (file)
@@ -1,6 +1,6 @@
 @c -*-texinfo-*-
 @c This is part of the GNU Emacs Lisp Reference Manual.
-@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999
+@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2001
 @c   Free Software Foundation, Inc. 
 @c See the file elisp.texi for copying conditions.
 @setfilename ../info/minibuf
@@ -1508,11 +1508,32 @@ This function returns the prompt string of the currently active
 minibuffer.  If no minibuffer is active, it returns @code{nil}.
 @end defun
 
-@tindex minibuffer-prompt-end
 @defun minibuffer-prompt-end
+@tindex minibuffer-prompt-end
 This function, available starting in Emacs 21, returns the current
 position of the end of the minibuffer prompt, if a minibuffer is
-current.  Otherwise, it returns zero.
+current.  Otherwise, it returns the minimum valid buffer position.
+@end defun
+
+@defun minibuffer-contents
+@tindex minibuffer-contents
+This function, available starting in Emacs 21, returns the editable
+contents of the minibuffer (that is, everything except the prompt) as
+a string, if a minibuffer is current.  Otherwise, it returns the
+entire contents of the current buffer.
+@end defun
+
+@defun minibuffer-contents-no-properties
+@tindex minibuffer-contents-no-properties
+This is like @code{minibuffer-contents}, except that it does not copy text
+properties, just the characters themselves.  @xref{Text Properties}.
+@end defun
+
+@defun delete-minibuffer-contents
+@tindex delete-minibuffer-contents
+This function, available starting in Emacs 21, erases the editable
+contents of the minibuffer (that is, everything except the prompt), if
+a minibuffer is current.  Otherwise, it erases the entire buffer.
 @end defun
 
 @defun minubuffer-prompt-width