From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: autocomplete on function names Date: Thu, 30 Aug 2007 23:46:43 +0300 Message-ID: References: <1188417916.016679.173280@i38g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1188506826 27130 80.91.229.12 (30 Aug 2007 20:47:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Aug 2007 20:47:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 30 22:47:03 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IQqup-0008AA-5k for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Aug 2007 22:46:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IQquo-0004EW-S7 for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Aug 2007 16:46:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IQqub-0004ER-B4 for help-gnu-emacs@gnu.org; Thu, 30 Aug 2007 16:46:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IQqua-0004EF-Vc for help-gnu-emacs@gnu.org; Thu, 30 Aug 2007 16:46:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IQqua-0004EC-Q2 for help-gnu-emacs@gnu.org; Thu, 30 Aug 2007 16:46:44 -0400 Original-Received: from romy.inter.net.il ([213.8.233.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IQqua-0000Qk-C7 for help-gnu-emacs@gnu.org; Thu, 30 Aug 2007 16:46:44 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-254-135.inter.net.il [84.229.254.135]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id ITR69167 (AUTH halo1); Thu, 30 Aug 2007 23:46:35 +0300 (IDT) In-reply-to: <1188417916.016679.173280@i38g2000prf.googlegroups.com> (message from jeanluc on Wed, 29 Aug 2007 13:05:16 -0700) X-Detected-Kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46992 Archived-At: > From: jeanluc > 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.