comparison lispref/minibuf.texi @ 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 4c01e54e2ffd
children 8ea0c09f5cb8
comparison
equal deleted inserted replaced
39530:6d1ba806f659 39531:35c1673ff6ab
1 @c -*-texinfo-*- 1 @c -*-texinfo-*-
2 @c This is part of the GNU Emacs Lisp Reference Manual. 2 @c This is part of the GNU Emacs Lisp Reference Manual.
3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999 3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2001
4 @c Free Software Foundation, Inc. 4 @c Free Software Foundation, Inc.
5 @c See the file elisp.texi for copying conditions. 5 @c See the file elisp.texi for copying conditions.
6 @setfilename ../info/minibuf 6 @setfilename ../info/minibuf
7 @node Minibuffers, Command Loop, Read and Print, Top 7 @node Minibuffers, Command Loop, Read and Print, Top
8 @chapter Minibuffers 8 @chapter Minibuffers
1506 @defun minibuffer-prompt 1506 @defun minibuffer-prompt
1507 This function returns the prompt string of the currently active 1507 This function returns the prompt string of the currently active
1508 minibuffer. If no minibuffer is active, it returns @code{nil}. 1508 minibuffer. If no minibuffer is active, it returns @code{nil}.
1509 @end defun 1509 @end defun
1510 1510
1511 @defun minibuffer-prompt-end
1511 @tindex minibuffer-prompt-end 1512 @tindex minibuffer-prompt-end
1512 @defun minibuffer-prompt-end
1513 This function, available starting in Emacs 21, returns the current 1513 This function, available starting in Emacs 21, returns the current
1514 position of the end of the minibuffer prompt, if a minibuffer is 1514 position of the end of the minibuffer prompt, if a minibuffer is
1515 current. Otherwise, it returns zero. 1515 current. Otherwise, it returns the minimum valid buffer position.
1516 @end defun
1517
1518 @defun minibuffer-contents
1519 @tindex minibuffer-contents
1520 This function, available starting in Emacs 21, returns the editable
1521 contents of the minibuffer (that is, everything except the prompt) as
1522 a string, if a minibuffer is current. Otherwise, it returns the
1523 entire contents of the current buffer.
1524 @end defun
1525
1526 @defun minibuffer-contents-no-properties
1527 @tindex minibuffer-contents-no-properties
1528 This is like @code{minibuffer-contents}, except that it does not copy text
1529 properties, just the characters themselves. @xref{Text Properties}.
1530 @end defun
1531
1532 @defun delete-minibuffer-contents
1533 @tindex delete-minibuffer-contents
1534 This function, available starting in Emacs 21, erases the editable
1535 contents of the minibuffer (that is, everything except the prompt), if
1536 a minibuffer is current. Otherwise, it erases the entire buffer.
1516 @end defun 1537 @end defun
1517 1538
1518 @defun minubuffer-prompt-width 1539 @defun minubuffer-prompt-width
1519 This function returns the current display-width of the minibuffer 1540 This function returns the current display-width of the minibuffer
1520 prompt, if a minibuffer is current. Otherwise, it returns zero. 1541 prompt, if a minibuffer is current. Otherwise, it returns zero.