summaryrefslogtreecommitdiff
path: root/lispref
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2001-10-02 02:34:48 +0000
committerMiles Bader <miles@gnu.org>2001-10-02 02:34:48 +0000
commite31d8eb559834b0f3f555c2624c25f75a5abb78f (patch)
treeb2068bb34085c1322e21722dc31554c1faedc677 /lispref
parentb8504c81c9807274d9d9afc020704820a9d72071 (diff)
downloademacs-e31d8eb559834b0f3f555c2624c25f75a5abb78f.tar.gz
(Minibuffer Misc): Add entries for `minibuffer-contents',
`minibuffer-contents-no-properties', and `delete-minibuffer-contents'. Correct description for `minibuffer-prompt-end'.
Diffstat (limited to 'lispref')
-rw-r--r--lispref/minibuf.texi27
1 files changed, 24 insertions, 3 deletions
diff --git a/lispref/minibuf.texi b/lispref/minibuf.texi
index 5880173e568..0bdb634af3f 100644
--- a/lispref/minibuf.texi
+++ b/lispref/minibuf.texi
@@ -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