From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniele Nicolodi Newsgroups: gmane.emacs.devel Subject: Re: Collecting completion candidates from multiple files Date: Thu, 13 Jan 2022 09:53:55 +0100 Message-ID: <5fef94c1-c05e-4cb3-6022-0ba8ca86698d@grinta.net> References: <5330eba5-a863-3061-250b-850a46c042fd@grinta.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33625"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Cc: Emacs developers To: =?UTF-8?Q?Daniel_Mart=c3=adn?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 13 09:55:03 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7vst-0008Yi-3S for ged-emacs-devel@m.gmane-mx.org; Thu, 13 Jan 2022 09:55:03 +0100 Original-Received: from localhost ([::1]:50504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7vss-0004re-7d for ged-emacs-devel@m.gmane-mx.org; Thu, 13 Jan 2022 03:55:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7vry-0002rS-2X for emacs-devel@gnu.org; Thu, 13 Jan 2022 03:54:06 -0500 Original-Received: from grinta.net ([109.74.203.128]:60978) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7vrq-0002Ds-9F for emacs-devel@gnu.org; Thu, 13 Jan 2022 03:54:05 -0500 Original-Received: from [192.168.1.220] (p5dd0d2e0.dip0.t-ipconnect.de [93.208.210.224]) (Authenticated sender: daniele) by grinta.net (Postfix) with ESMTPSA id 468FCE0804; Thu, 13 Jan 2022 08:53:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=grinta.net; s=2020; t=1642064036; bh=LbVtGI1Xg7M+FyDTkiNNH/JP9G6M2y8dqBH6V8JTLRQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=DO0x6c9lwrlueOE3Hs8di7A3WaNo4IppwcX8q90bOgmDwA8Jg6iJA4XKcwSO/h5ZJ IBhrD6u5j0ZzFBCGLyqottj1E/1FoaXKbs61ACWXycSxXE/Xql6FaZh/nuqMb4+YWU JiniODSWSF+wN1Q1SARJe5PG6t3ABoNm+PBrFEBgSkqNzQXTjZ0H25/FI41PVfeYTP 19TftTXpYqFzWC4nCNfVGqrEF55UjKX3PSqYgrzGTmBiy17W9H4XYExtnrIbIdVOcs uUa8zJXSGQqHnQqRSmOMkr3H6llUu0s0cSbpnDRB/VXuNQt+TcvL5RBr+rUQWy53GQ XqiFpOTV+cbbg== Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=109.74.203.128; envelope-from=daniele@grinta.net; helo=grinta.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:284688 Archived-At: On 13/01/2022 00:19, Daniel Martín wrote: > Daniele Nicolodi writes: > >> Hello, >> >> is there a standard facility and/or user interface to collect >> completion candidates from multiple files composing a project? >> >> I'm developing a mode for a language that has an "include" facility >> and I would like to support collecting completion candidates from the >> definitions contained in all the files that compose a project, >> independently of whether the current buffer has an explicit "include" >> directive or not. > > The standard facility provided by Emacs is based on the hook > completion-at-point-functions, that each major mode can customize to > provide appropriate completion on the text in Emacs buffers. Hello Martin, thank you for your response, I know how to implement completion. What I'm inquiring about is how to implement the collection of completion candidates from multiple buffers. I can implement this in my mode, however I'm wondering if Emacs already has a facility for this kind of things. Cheers, Dan