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: Tue, 04 Nov 2014 09:39:07 -0600 Message-ID: <8561evrn50.fsf@stephe-leake.org> References: <20141102151524.0d9c665c@forcix> <20141102172944.0f7944e3@forcix> <85h9ygtk8r.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415115596 15575 80.91.229.3 (4 Nov 2014 15:39:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2014 15:39:56 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 04 16:39:49 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 1XlgCy-0003FD-0Y for ged-emacs-devel@m.gmane.org; Tue, 04 Nov 2014 16:39:48 +0100 Original-Received: from localhost ([::1]:41185 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlgCx-0008La-J3 for ged-emacs-devel@m.gmane.org; Tue, 04 Nov 2014 10:39:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlgCS-0008AR-4A for emacs-devel@gnu.org; Tue, 04 Nov 2014 10:39:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlgCL-00088Y-FR for emacs-devel@gnu.org; Tue, 04 Nov 2014 10:39:16 -0500 Original-Received: from dnvrco-outbound-snat.email.rr.com ([107.14.73.226]:19338 helo=dnvrco-oedge-vip.email.rr.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlgCL-000887-BX for emacs-devel@gnu.org; Tue, 04 Nov 2014 10:39:09 -0500 Original-Received: from [70.94.38.149] ([70.94.38.149:50023] helo=TAKVER) by dnvrco-oedge01 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id FB/DB-25796-C13F8545; Tue, 04 Nov 2014 15:39:08 +0000 In-Reply-To: (Stefan Monnier's message of "Mon, 03 Nov 2014 11:42:14 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.94 (windows-nt) X-RR-Connecting-IP: 107.14.64.118:25 X-Authority-Analysis: v=2.1 cv=YuWBRuoX 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=VJMTJYw2P9KqJRDq4DsA:9 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:176343 Archived-At: Stefan Monnier writes: >>> And the second one is also provided by things like projectile (among >>> many other thingies), tho it seems that none of the bundled Emacs >>> packages provide a good solution for that common need. >> I think ff-get-file is good. But maybe others want a more restricted list? > > Not only ff-get-file is a function, not a command, It could be wrapped; I was referring to the functionality. > but I don't think it > provides the same functionality. E.g. it doesn't look recursively > inside subdirs. the function we are talking about is: > - jump to file (among those listed in the TAGS file) So looking recursively inside subdirs is wrong. The TAGS file contains a list of file:line:column (among other things). In this context, we only care about the file names. That list of file names is the source code for the current project (for some loose definition of 'project'). So the function we are defining is 'goto-file-in-project', with the user prompted for the file name. In ada-mode, the definition of 'file in project' is the combination of compilation-search-path with ada-spec-suffixes, ada-body-suffixes. I believe EDE projects are similar. -- -- Stephe