From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Generalizing find-definition Date: Mon, 03 Nov 2014 17:38:05 -0500 Message-ID: References: <20141102151524.0d9c665c@forcix> <20141102172944.0f7944e3@forcix> <20141103084433.12117c03@forcix> <20141103192853.2702fe7a@forcix> <20141103215526.28edeb27@forcix> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415054330 6972 80.91.229.3 (3 Nov 2014 22:38:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Nov 2014 22:38:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jorgen Schaefer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 03 23:38:38 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XlQGj-0001oD-Cd for ged-emacs-devel@m.gmane.org; Mon, 03 Nov 2014 23:38:37 +0100 Original-Received: from localhost ([::1]:37595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlQGi-0002Vl-TB for ged-emacs-devel@m.gmane.org; Mon, 03 Nov 2014 17:38:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlQGN-0002Qj-Uy for emacs-devel@gnu.org; Mon, 03 Nov 2014 17:38:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlQGF-0000Lz-FP for emacs-devel@gnu.org; Mon, 03 Nov 2014 17:38:15 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:64593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlQGF-0000Lp-Bb for emacs-devel@gnu.org; Mon, 03 Nov 2014 17:38:07 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au4MAOatTlRFpY87/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCw4mEhQYDSSISwnLcgEBAQEGAQEBAR6RCAeESwWLZIQFojeBb4QWH4J6AQEB X-IPAS-Result: Au4MAOatTlRFpY87/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCw4mEhQYDSSISwnLcgEBAQEGAQEBAR6RCAeESwWLZIQFojeBb4QWH4J6AQEB X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="95885349" Original-Received: from 69-165-143-59.dsl.teksavvy.com (HELO pastel.home) ([69.165.143.59]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 03 Nov 2014 17:38:06 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id CBD3E8874; Mon, 3 Nov 2014 17:38:05 -0500 (EST) In-Reply-To: <20141103215526.28edeb27@forcix> (Jorgen Schaefer's message of "Mon, 3 Nov 2014 21:55:26 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:176321 Archived-At: > The only single string that reliably would allow to find the correct > definition would be "foo.Foo.baz", but I do not think that anyone > would consider that to be "the identifier at point" here. I would. >> Note that such completion tables are clearly not lists of strings, but >> they're functions (actually, they're objects represented as functions, >> for lack of an object system). > What is the advantage of having the backend define a function that > returns a completion table as opposed to a function that prompts the > user for a symbol? The saved code seems minimal, and it means the > backend can not set the prompt, for example. It means the UI can use it for various kinds of completion (e.g. for completion-at-point-function). Stefan