From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nurullah Akkaya Newsgroups: gmane.emacs.help Subject: tab completion for a custom function. Date: Tue, 3 Feb 2009 14:02:19 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0cd2454e6efcb504620271c1 X-Trace: ger.gmane.org 1233662580 25026 80.91.229.12 (3 Feb 2009 12:03:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2009 12:03:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 03 13:04:14 2009 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 1LUK0X-0006TV-LT for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Feb 2009 13:04:01 +0100 Original-Received: from localhost ([127.0.0.1]:36715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUJzE-0004KW-M4 for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Feb 2009 07:02:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUJyw-0004KR-1G for help-gnu-emacs@gnu.org; Tue, 03 Feb 2009 07:02:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUJyv-0004KF-LM for help-gnu-emacs@gnu.org; Tue, 03 Feb 2009 07:02:21 -0500 Original-Received: from [199.232.76.173] (port=33986 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUJyv-0004KC-Fe for help-gnu-emacs@gnu.org; Tue, 03 Feb 2009 07:02:21 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.156]:58177) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUJyu-00066L-VI for help-gnu-emacs@gnu.org; Tue, 03 Feb 2009 07:02:21 -0500 Original-Received: by fg-out-1718.google.com with SMTP id l27so976647fgb.30 for ; Tue, 03 Feb 2009 04:02:19 -0800 (PST) Original-Received: by 10.86.82.16 with SMTP id f16mr945299fgb.26.1233662539397; Tue, 03 Feb 2009 04:02:19 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 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:61872 Archived-At: --000e0cd2454e6efcb504620271c1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, i have a custom function that gets input a project name then it opens projects main file and two terminal's in to project directories. i get the input using (interactive "sProject: ") i want to use tab completion for project names. instead of typing the whole name. can i supply a list of names to the interactive function? thanks. Nurullah --000e0cd2454e6efcb504620271c1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi,

i have a custom function that gets input a project name then it opens projects main file
and two terminal's in to project directories. i get the input using

  (interactive "sProject: ")

i want to use tab completion for project names. instead of typing the whole name.

can i supply a list of names to the interactive function?

thanks.
Nurullah
--000e0cd2454e6efcb504620271c1--