From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: Generalizing find-definition Date: Thu, 06 Nov 2014 13:40:26 -0600 Message-ID: <85mw845d91.fsf@stephe-leake.org> References: <20141102151524.0d9c665c@forcix> <20141102172944.0f7944e3@forcix> <20141103084433.12117c03@forcix> <20141103192853.2702fe7a@forcix> <20141103215526.28edeb27@forcix> <86bnokgx8g.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415302858 2009 80.91.229.3 (6 Nov 2014 19:40:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Nov 2014 19:40:58 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 06 20:40:51 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 1XmSvH-00066q-O9 for ged-emacs-devel@m.gmane.org; Thu, 06 Nov 2014 20:40:47 +0100 Original-Received: from localhost ([::1]:55768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmSvH-0007I0-BZ for ged-emacs-devel@m.gmane.org; Thu, 06 Nov 2014 14:40:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmSv7-0007Fo-AM for emacs-devel@gnu.org; Thu, 06 Nov 2014 14:40:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmSv1-00006A-Vm for emacs-devel@gnu.org; Thu, 06 Nov 2014 14:40:37 -0500 Original-Received: from dnvrco-outbound-snat.email.rr.com ([107.14.73.226]:60816 helo=dnvrco-oedge-vip.email.rr.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmSv1-00005k-JM for emacs-devel@gnu.org; Thu, 06 Nov 2014 14:40:31 -0500 Original-Received: from [70.94.38.149] ([70.94.38.149:51581] helo=TAKVER) by dnvrco-oedge02 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 54/BE-11248-BAECB545; Thu, 06 Nov 2014 19:40:28 +0000 In-Reply-To: <86bnokgx8g.fsf@yandex.ru> (Dmitry Gutov's message of "Thu, 06 Nov 2014 17:33:19 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.94 (windows-nt) X-RR-Connecting-IP: 107.14.64.130:25 X-Authority-Analysis: v=2.1 cv=C5RnyG/+ c=1 sm=1 tr=0 a=AppmJ/7ZOOFWL/q6u6u93g==:117 a=AppmJ/7ZOOFWL/q6u6u93g==:17 a=ayC55rCoAAAA:8 a=fNEgcOh0sVsA:10 a=9i_RQKNPAAAA:8 a=vaJtXVxTAAAA:8 a=z-Br0FJUAcfnhb3UJ0IA:9 a=jC_PhiTFAVVe9EHR:21 a=tnFPx5fuH2mecaJp:21 X-Cloudmark-Score: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 107.14.73.226 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:176475 Archived-At: Dmitry Gutov writes: > Stefan Monnier writes: > >>> 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. > > I think it should return "baz" here, if we want to go this way at all. > And then that value could be passed to a "search-definition-function", > which will perform a full non-precise scan. When would that be useful? > It apparent that we won't be able to do precise searches for identifiers > in most cases, It requires support from the compiler/backend, but that should always be available (presumably you have the compiler if you are editing the code). So why do you think we can't do precise searches in most cases? Hmm, maybe you won't have the compiler installed if you are just reading someone else's code. I'm not sure that's an important use case. -- -- Stephe