/[emacs]/emacs/lispref/minibuf.texi
ViewVC logotype

Diff of /emacs/lispref/minibuf.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.34 by rms, Mon Jun 30 10:41:12 2003 UTC revision 1.35 by rms, Mon Jul 14 15:55:32 2003 UTC
# Line 84  completion commands (@pxref{Completion}) Line 84  completion commands (@pxref{Completion})
84    
85  @item  @item
86  @code{minibuffer-local-ns-map} is similar, except that @key{SPC} exits  @code{minibuffer-local-ns-map} is similar, except that @key{SPC} exits
87  just like @key{RET}.  This is used mainly for Mocklisp compatibility.  just like @key{RET}.
88    
89  @item  @item
90  @code{minibuffer-local-completion-map} is for permissive completion.  @code{minibuffer-local-completion-map} is for permissive completion.
# Line 520  for reading certain kinds of names with Line 520  for reading certain kinds of names with
520  * High-Level Completion::  Convenient special cases of completion  * High-Level Completion::  Convenient special cases of completion
521                               (reading buffer name, file name, etc.)                               (reading buffer name, file name, etc.)
522  * Reading File Names::     Using completion to read file names.  * Reading File Names::     Using completion to read file names.
523  * Programmed Completion::  Finding the completions for a given file name.  * Programmed Completion::  Writing your own completion-function.
524  @end menu  @end menu
525    
526  @node Basic Completion  @node Basic Completion
# Line 662  If the value of this variable is Line 662  If the value of this variable is
662  non-@code{nil}, Emacs does not consider case significant in completion.  non-@code{nil}, Emacs does not consider case significant in completion.
663  @end defvar  @end defvar
664    
665    @defmac lazy-completion-table var fun &rest args
666    This macro provides a way to initialize the variable @var{var} as a
667    completion table in a lazy way, not computing its actual contents
668    until they are first needed.  You use this macro to produce a value
669    that you store in @var{var}.  The actual computation of the proper
670    value is done the first time you do completion using @var{var}.  It is
671    done by calling @var{fun} with the arguments @var{args}.  The value
672    @var{fun} returns becomes the permanent value of @var{var}.
673    
674    @example
675    (defvar foo (lazy-completion-table foo make-my-alist 'global))
676    (make-local-variable 'bar)
677    (setq bar (lazy-completion-table foo make-my-alist 'local)
678    @end example
679    @end defmac
680    
681  @node Minibuffer Completion  @node Minibuffer Completion
682  @subsection Completion and the Minibuffer  @subsection Completion and the Minibuffer
683    
# Line 1219  to use for completion to be encapsulated Line 1235  to use for completion to be encapsulated
1235    Emacs uses programmed completion when completing file names.    Emacs uses programmed completion when completing file names.
1236  @xref{File Name Completion}.  @xref{File Name Completion}.
1237    
1238    @defmac dynamic-completion-table function
1239    This macro is a convenient way to write a function that can act as
1240    programmed completion function.  The argument @var{function} should be
1241    a function that takes one argument, a string, and returns an alist of
1242    possible completions of it.  You can think of
1243    @code{dynamic-completion-table} as a transducer between that interface
1244    and the interface for programmed completion functions.
1245    @end defmac
1246    
1247  @node Yes-or-No Queries  @node Yes-or-No Queries
1248  @section Yes-or-No Queries  @section Yes-or-No Queries
1249  @cindex asking the user questions  @cindex asking the user questions

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26