Mercurial > emacs
comparison lispref/minibuf.texi @ 25751:467b88fab665
*** empty log message ***
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 17 Sep 1999 06:59:04 +0000 |
parents | ad9732e88e90 |
children | ef5e7bbe6f19 |
comparison
equal
deleted
inserted
replaced
25750:f1968a807f56 | 25751:467b88fab665 |
---|---|
40 displayed only in special windows used only for minibuffers; these | 40 displayed only in special windows used only for minibuffers; these |
41 windows always appear at the bottom of a frame. (Sometimes frames have | 41 windows always appear at the bottom of a frame. (Sometimes frames have |
42 no minibuffer window, and sometimes a special kind of frame contains | 42 no minibuffer window, and sometimes a special kind of frame contains |
43 nothing but a minibuffer window; see @ref{Minibuffers and Frames}.) | 43 nothing but a minibuffer window; see @ref{Minibuffers and Frames}.) |
44 | 44 |
45 The minibuffer's window is normally a single line. You can resize it | 45 The text in the minibuffer always starts with the @dfn{prompt string}, |
46 temporarily with the window sizing commands; it reverts to its normal | 46 the text that was specified by the program that is using the minibuffer |
47 size when the minibuffer is exited. You can resize it permanently by | 47 to tell the user what sort of input to type. This text is marked |
48 using the window sizing commands in the frame's other window, when the | 48 read-only so you won't accidentally delete or change it. In other |
49 minibuffer is not active. If the frame contains just a minibuffer, you | 49 respects, it is an ordinary part of the buffer contents, but certain |
50 can change the minibuffer's size by changing the frame's size. | 50 functions such as @code{erase-buffer}, @code{buffer-string}, |
51 @code{beginning-of-line}, @code{forward-word}, @code{forward-sentence}, | |
52 and @code{forward-paragraph}, treat it a little bit specially. (In | |
53 older Emacs versions, the prompt was displayed using a special mechanism | |
54 and was not part of the buffer contents.) | |
55 | |
56 @c ??? | |
57 The minibuffer's window is normally a single line; it grows | |
58 automatically if necessary if the contents require more space. You can | |
59 explicitly resize it temporarily with the window sizing commands; it | |
60 reverts to its normal size when the minibuffer is exited. You can | |
61 resize it permanently by using the window sizing commands in the frame's | |
62 other window, when the minibuffer is not active. If the frame contains | |
63 just a minibuffer, you can change the minibuffer's size by changing the | |
64 frame's size. | |
51 | 65 |
52 If a command uses a minibuffer while there is an active minibuffer, | 66 If a command uses a minibuffer while there is an active minibuffer, |
53 this is called a @dfn{recursive minibuffer}. The first minibuffer is | 67 this is called a @dfn{recursive minibuffer}. The first minibuffer is |
54 named @w{@samp{ *Minibuf-0*}}. Recursive minibuffers are named by | 68 named @w{@samp{ *Minibuf-0*}}. Recursive minibuffers are named by |
55 incrementing the number at the end of the name. (The names begin with a | 69 incrementing the number at the end of the name. (The names begin with a |
722 @code{minibuffer-completion-confirm}. For more information about them, | 736 @code{minibuffer-completion-confirm}. For more information about them, |
723 see @ref{Completion Commands}. | 737 see @ref{Completion Commands}. |
724 @end defun | 738 @end defun |
725 | 739 |
726 @node Completion Commands | 740 @node Completion Commands |
727 @subsection Minibuffer Commands That Do Completion | 741 @subsection Minibuffer Commands that Do Completion |
728 | 742 |
729 This section describes the keymaps, commands and user options used in | 743 This section describes the keymaps, commands and user options used in |
730 the minibuffer to do completion. | 744 the minibuffer to do completion. |
731 | 745 |
732 @defvar minibuffer-local-completion-map | 746 @defvar minibuffer-local-completion-map |
1481 @defun minibuffer-prompt | 1495 @defun minibuffer-prompt |
1482 This function returns the prompt string of the currently active | 1496 This function returns the prompt string of the currently active |
1483 minibuffer. If no minibuffer is active, it returns @code{nil}. | 1497 minibuffer. If no minibuffer is active, it returns @code{nil}. |
1484 @end defun | 1498 @end defun |
1485 | 1499 |
1486 @defun minibuffer-prompt-width | 1500 @tindex minubuffer-prompt-end |
1487 This function returns the display width of the prompt string of the | 1501 @defun minubuffer-prompt-end |
1488 currently active minibuffer. If no minibuffer is active, it returns 0. | 1502 This function, available starting in Emacs 21, returns the current |
1503 position of the end of the minibuffer prompt, if a minibuffer is | |
1504 current. Otherwise, it returns zero. | |
1505 @end defun | |
1506 | |
1507 @defun minubuffer-prompt-width | |
1508 This function returns the current display-width of the minibuffer | |
1509 prompt, if a minibuffer is current. Otherwise, it returns zero. | |
1489 @end defun | 1510 @end defun |
1490 | 1511 |
1491 @defvar minibuffer-setup-hook | 1512 @defvar minibuffer-setup-hook |
1492 This is a normal hook that is run whenever the minibuffer is entered. | 1513 This is a normal hook that is run whenever the minibuffer is entered. |
1493 @xref{Hooks}. | 1514 @xref{Hooks}. |