help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autocomplete on function names


From: Eli Zaretskii
Subject: Re: autocomplete on function names
Date: Thu, 30 Aug 2007 23:46:43 +0300

> From: jeanluc <jeanluc_picard_66@hotmail.com>
> Date: Wed, 29 Aug 2007 13:05:16 -0700
> 
> Assume that you are using emacs to write a program that will access a
> library of functions.
> 
> Is it possible to set up emacs so that as you start to type a function
> name, emacs can look to a file that contains all of the function names
> and if prompted can pop up a list from which you can pick the correct
> function name?

One way to do that is this: produce a file with a list of all the
functions, and visit it in Emacs.  Then use M-/ or C-M-/ to complete
on function names.  (These two commands look in all buffers, so if the
list of functions is in some buffer, you will get what you want.)

Another way is to generate a tag table for your library (using the
etags program that comes with Emacs), then use "M-x complete-tag" to
complete the name of the function at point, and select one of the
completions from the *Completions* buffer.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]