From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: xenodasein--- via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: Collecting completion candidates from multiple files Date: Thu, 13 Jan 2022 16:32:06 +0100 (CET) Message-ID: References: <5330eba5-a863-3061-250b-850a46c042fd@grinta.net> <5fef94c1-c05e-4cb3-6022-0ba8ca86698d@grinta.net> Reply-To: xenodasein@tutanota.de Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6478"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: mardani29@yahoo.es Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 13 16:33:10 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 1n8269-0001Sz-Ty for ged-emacs-devel@m.gmane-mx.org; Thu, 13 Jan 2022 16:33:09 +0100 Original-Received: from localhost ([::1]:48272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8269-0008Km-0D for ged-emacs-devel@m.gmane-mx.org; Thu, 13 Jan 2022 10:33:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n825K-0007VX-0Q for emacs-devel@gnu.org; Thu, 13 Jan 2022 10:32:18 -0500 Original-Received: from w4.tutanota.de ([81.3.6.165]:58694) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n825H-0000fE-IO for emacs-devel@gnu.org; Thu, 13 Jan 2022 10:32:17 -0500 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w4.tutanota.de (Postfix) with ESMTP id EAA0810602DA; Thu, 13 Jan 2022 15:32:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1642087926; s=s1; d=tutanota.de; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=T6CW1QCW17DZYOauLM0Y28nvAAk4yJ65S5MLzFfgW2s=; b=IbkI6F185rbrOS36gBY2SK6h2m8PvW680iVxq7TWwxZMXwYSJH2D8P8UK1xaJsrK URsiBUFPbF1pv/lOQUL8E2WYJReBKAkgVz3FE+3OTUnobNud3dgNbKHipZbtpw0KP9G 9PozxgdrM2zxwaEZlaHM3zG2YnVSGqzzq9kGbHv+EUJIR8++smGK8TIKkpEKHuXnqrx bTLyCfnZiV1Fs6YrTxmyaVtAaOmymW2RlYGszqb+w6qxW5/AA0Sv8N7SBQiZVY7BRfy hJHwKrR0aM6ISEo8T7dNIXdGzdstpfm1LU6q9S9VrDyDz70/bV7ye33bmCK7SZU+bkJ aCXFkAlW2w== In-Reply-To: Received-SPF: pass client-ip=81.3.6.165; envelope-from=xenodasein@tutanota.de; helo=w4.tutanota.de 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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:284719 Archived-At: >> I wondered about this also; is there built-in completion functionality that >> can collect all words or symbols from existing buffers of the same mode, or >> all existing buffers? >> > > M-x find-library RET dabbrev RET > > This built-in library provides hooks like > dabbrev-select-buffers-function. Packages can customize it to return a > custom list of buffers. For example, a mode for a programming language > that supports includes could implement a custom function that returns > buffers created from parsing includes recursively (something like Vim's > CTRL-P/CTRL-N, if I'm not mistaken). > AFAICT it doesn't have a way to connect to completion-at-point by default? Maybe this would be a good feature to have.