comparison doc/lispref/minibuf.texi @ 94180:114d8f4904d0

* minibuffer.el (completion-table-with-context): Add support for `pred'. (completion-table-with-terminator): Don't use complete-with-action since we have to distinguish all three cases anyway. (completion-table-with-predicate): New function. (dynamic-completion-table): Add obsolete alias. * minibuf.texi (Programmed Completion): Replace dynamic-completion-table with the new completion-table-dynamic.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 19 Apr 2008 03:23:15 +0000
parents 107ccd98fa12
children 61f7b39f5e96
comparison
equal deleted inserted replaced
94179:d55e28c98546 94180:114d8f4904d0
1486 completion to be encapsulated in a symbol. 1486 completion to be encapsulated in a symbol.
1487 1487
1488 Emacs uses programmed completion when completing file names. 1488 Emacs uses programmed completion when completing file names.
1489 @xref{File Name Completion}. 1489 @xref{File Name Completion}.
1490 1490
1491 @defmac dynamic-completion-table function 1491 @defun completion-table-dynamic function
1492 This macro is a convenient way to write a function that can act as 1492 This function is a convenient way to write a function that can act as
1493 programmed completion function. The argument @var{function} should be 1493 programmed completion function. The argument @var{function} should be
1494 a function that takes one argument, a string, and returns an alist of 1494 a function that takes one argument, a string, and returns an alist of
1495 possible completions of it. You can think of 1495 possible completions of it. You can think of
1496 @code{dynamic-completion-table} as a transducer between that interface 1496 @code{completion-table-dynamic} as a transducer between that interface
1497 and the interface for programmed completion functions. 1497 and the interface for programmed completion functions.
1498 @end defmac 1498 @end defun
1499 1499
1500 @node Yes-or-No Queries 1500 @node Yes-or-No Queries
1501 @section Yes-or-No Queries 1501 @section Yes-or-No Queries
1502 @cindex asking the user questions 1502 @cindex asking the user questions
1503 @cindex querying the user 1503 @cindex querying the user