Mercurial > emacs
changeset 39531:35c1673ff6ab
(Minibuffer Misc): Add entries for `minibuffer-contents',
`minibuffer-contents-no-properties', and `delete-minibuffer-contents'.
Correct description for `minibuffer-prompt-end'.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Tue, 02 Oct 2001 02:34:48 +0000 |
parents | 6d1ba806f659 |
children | ac47538f575d |
files | lispref/minibuf.texi |
diffstat | 1 files changed, 24 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lispref/minibuf.texi Tue Oct 02 02:21:59 2001 +0000 +++ b/lispref/minibuf.texi Tue Oct 02 02:34:48 2001 +0000 @@ -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 @@ minibuffer. If no minibuffer is active, it returns @code{nil}. @end defun +@defun minibuffer-prompt-end @tindex minibuffer-prompt-end -@defun 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