Mercurial > emacs
comparison lispref/minibuf.texi @ 12067:73dc8205d259
*** empty log message ***
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 05 Jun 1995 12:23:13 +0000 |
parents | 6093207b85e8 |
children | a6eb5f12b0f3 |
comparison
equal
deleted
inserted
replaced
12066:b9b0b3f96dc2 | 12067:73dc8205d259 |
---|---|
552 @result{} "foobar" | 552 @result{} "foobar" |
553 @end group | 553 @end group |
554 @end smallexample | 554 @end smallexample |
555 @end defun | 555 @end defun |
556 | 556 |
557 @defun all-completions string collection &optional predicate | 557 @defun all-completions string collection &optional predicate nospace |
558 This function returns a list of all possible completions of | 558 This function returns a list of all possible completions of |
559 @var{string}. The parameters to this function are the same as to | 559 @var{string}. The parameters to this function are the same as to |
560 @code{try-completion}. | 560 @code{try-completion}. |
561 | 561 |
562 If @var{collection} is a function, it is called with three arguments: | 562 If @var{collection} is a function, it is called with three arguments: |
563 @var{string}, @var{predicate} and @code{t}; then @code{all-completions} | 563 @var{string}, @var{predicate} and @code{t}; then @code{all-completions} |
564 returns whatever the function returns. @xref{Programmed Completion}. | 564 returns whatever the function returns. @xref{Programmed Completion}. |
565 | |
566 If @var{nospace} is non-@code{nil}, completions that start with a space | |
567 are ignored unless @var{string} also starts with a space. | |
565 | 568 |
566 Here is an example, using the function @code{test} shown in the | 569 Here is an example, using the function @code{test} shown in the |
567 example for @code{try-completion}: | 570 example for @code{try-completion}: |
568 | 571 |
569 @smallexample | 572 @smallexample |
1367 @defvar minibuffer-help-form | 1370 @defvar minibuffer-help-form |
1368 The current value of this variable is used to rebind @code{help-form} | 1371 The current value of this variable is used to rebind @code{help-form} |
1369 locally inside the minibuffer (@pxref{Help Functions}). | 1372 locally inside the minibuffer (@pxref{Help Functions}). |
1370 @end defvar | 1373 @end defvar |
1371 | 1374 |
1375 @defun active-minibuffer-window | |
1376 This function returns the currently active minibuffer window, or | |
1377 @code{nil} if none is currently active. | |
1378 @end defun | |
1379 | |
1372 @defun minibuffer-window &optional frame | 1380 @defun minibuffer-window &optional frame |
1373 This function returns the window that is used for the minibuffer. In | 1381 This function returns the minibuffer window used for frame @var{frame}. |
1374 Emacs 18, there is one and only one minibuffer window; this window | 1382 If @var{frame} is @code{nil}, that stands for the current frame. Note |
1375 always exists and cannot be deleted. In Emacs 19, each frame can have | 1383 that the minibuffer window used by a frame need not be part of that |
1376 its own minibuffer, and this function returns the minibuffer window used | 1384 frame---a frame that has no minibuffer of its own necessarily uses some |
1377 for frame @var{frame} (which defaults to the currently selected frame). | 1385 other frame's minibuffer window. |
1378 @end defun | 1386 @end defun |
1379 | 1387 |
1380 @c Emacs 19 feature | 1388 @c Emacs 19 feature |
1381 @defun window-minibuffer-p window | 1389 @defun window-minibuffer-p window |
1382 This function returns non-@code{nil} if @var{window} is a minibuffer window. | 1390 This function returns non-@code{nil} if @var{window} is a minibuffer window. |