From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bvraghav@iitk.ac.in (B.V. Raghav) Newsgroups: gmane.emacs.help Subject: C Headers completion candidates Date: Thu, 14 Jul 2016 10:21:49 +0530 Organization: Indian Institute of Technology, Kanpur Message-ID: <87k2gozusa.fsf@ram.bvr.dp.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468471963 7652 80.91.229.3 (14 Jul 2016 04:52:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2016 04:52:43 +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 Jul 14 06:52:32 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bNYdT-00018P-63 for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jul 2016 06:52:31 +0200 Original-Received: from localhost ([::1]:51475 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNYdS-00079N-4t for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jul 2016 00:52:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNYd3-00079C-LV for help-gnu-emacs@gnu.org; Thu, 14 Jul 2016 00:52:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNYcz-0000mP-Er for help-gnu-emacs@gnu.org; Thu, 14 Jul 2016 00:52:04 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:59484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNYcz-0000mH-8d for help-gnu-emacs@gnu.org; Thu, 14 Jul 2016 00:52:01 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bNYcw-0000h0-QS for help-gnu-emacs@gnu.org; Thu, 14 Jul 2016 06:51:59 +0200 Original-Received: from 103.246.106.24 ([103.246.106.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Jul 2016 06:51:58 +0200 Original-Received: from bvraghav by 103.246.106.24 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Jul 2016 06:51:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 103.246.106.24 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:OHjQA/dTtVcsMLbDOuTrZ33fn9Q= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110833 Archived-At: Hi, I want a set of completion candidates for c-headers, something like `auto-complete c headers'. Only, I do not want the complete ac-library tagged along, nor do I want the popups. Personally, I want to use the icicles interface, where I feel comfortable. Step 1. Identifying the context --- Example #include --- `|' represents the cursor here I think I can code the regexp here Step 2. Set of completion candidates Search the $INCLUDE environment variable, with `visited' flags on the folders that have been visited; and create the set of completion candidates, one in a line I hope there is a smarter way? Step 3. Tell Icicles to invoke these set of completion candidates, when the context is active. How? I do not know. Help appreciated. Thanks, r -- (B.V. Raghav) Ph.D. Student, Design Programme, IIT Kanpur