From: Luc Teirlinck Date: Wed, 28 Dec 2005 17:18:38 +0000 (+0000) Subject: (Basic Completion): Update lazy-completion-table examples for removal X-Git-Tag: emacs-pretest-22.0.90~5011 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=79c917052adc8f50b298c973bc6e028d34b1897d;p=emacs.git (Basic Completion): Update lazy-completion-table examples for removal of ARGS argument. --- diff --git a/lispref/minibuf.texi b/lispref/minibuf.texi index 25e06d7a45b..6f98785f69f 100644 --- a/lispref/minibuf.texi +++ b/lispref/minibuf.texi @@ -777,13 +777,10 @@ proper value is done the first time you do completion using @var{var}. It is done by calling @var{fun} with no arguments. The value @var{fun} returns becomes the permanent value of @var{var}. -Here are two examples of use: +Here is an example of use: @smallexample -(defvar foo (lazy-completion-table foo make-my-alist 'global)) - -(make-local-variable 'bar) -(setq bar (lazy-completion-table foo make-my-alist 'local) +(defvar foo (lazy-completion-table foo make-my-alist)) @end smallexample @end defmac @@ -954,7 +951,7 @@ uses this to highlight text in the completion list for better visual feedback. This is not needed in the minibuffer; for minibuffer completion, you can pass @code{nil}. -This function is called by @code{minibuffer-completion-help}. The +This function is called by @code{minibuffer-completion-help}. The most common way to use it is together with @code{with-output-to-temp-buffer}, like this: