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: progmodes/project.el and search paths Date: Thu, 06 Aug 2015 02:25:07 -0500 Message-ID: <86oaikc20c.fsf@stephe-leake.org> References: <55BE209F.1000009@siege-engine.com> <55BE509B.2080307@yandex.ru> <87r3nkjxby.fsf@isaac.fritz.box> <87h9ogyq6s.fsf@isaac.fritz.box> <86mvy7e6hr.fsf@stephe-leake.org> <55C0F9C7.8010006@yandex.ru> <86vbcudebp.fsf@stephe-leake.org> <55C11A81.7040403@yandex.ru> <86mvy6cly4.fsf@stephe-leake.org> <55C1DE92.3080902@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438845949 20332 80.91.229.3 (6 Aug 2015 07:25:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2015 07:25:49 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 06 09:25:38 2015 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 1ZNFYX-0003AJ-2v for ged-emacs-devel@m.gmane.org; Thu, 06 Aug 2015 09:25:37 +0200 Original-Received: from localhost ([::1]:43720 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNFYW-0005Xf-Fc for ged-emacs-devel@m.gmane.org; Thu, 06 Aug 2015 03:25:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNFYT-0005Wk-B2 for emacs-devel@gnu.org; Thu, 06 Aug 2015 03:25:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNFYO-00088H-Fx for emacs-devel@gnu.org; Thu, 06 Aug 2015 03:25:33 -0400 Original-Received: from gproxy9-pub.mail.unifiedlayer.com ([69.89.20.122]:54573) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZNFYO-00085q-9g for emacs-devel@gnu.org; Thu, 06 Aug 2015 03:25:28 -0400 Original-Received: (qmail 29200 invoked by uid 0); 6 Aug 2015 07:25:19 -0000 Original-Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy9.mail.unifiedlayer.com with SMTP; 6 Aug 2015 07:25:19 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw2 with id 1KRC1r00e2UdiVW01KRFow; Thu, 06 Aug 2015 01:25:17 -0600 X-Authority-Analysis: v=2.1 cv=O9qq4nNW c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=9i_RQKNPAAAA:8 a=y7kgw_RnJtkA:10 a=hEr_IkYJT6EA:10 a=x_XPkuGwIRMA:10 a=uRRa74qj2VoA:10 a=vaJtXVxTAAAA:8 a=CHWIKV3nKJCBzjxcSYgA:9 Original-Received: from [76.218.37.33] (port=49880 helo=TAKVER2) by host114.hostmonster.com with esmtpa (Exim 4.84) (envelope-from ) id 1ZNFYA-0005Z4-Bv for emacs-devel@gnu.org; Thu, 06 Aug 2015 01:25:14 -0600 In-Reply-To: <55C1DE92.3080902@yandex.ru> (Dmitry Gutov's message of "Wed, 5 Aug 2015 12:59:46 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 76.218.37.33 authed with stephen_leake@stephe-leake.org} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 69.89.20.122 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:188476 Archived-At: Dmitry Gutov writes: > On 08/05/2015 09:02 AM, Stephen Leake wrote: > >> Do you aggree it would be good if rgrep supported an option to use the >> project search path? Possibly only via the command grep-project (or >> project-grep)? > > I think we should have project-find-regexp (or project-rgrep) which > uses the xref interface. grep-project will be functionally redundant. Since they are the same function, why is the name project-find-regexp better than the name grep-project? The latter will be _much_ easier to discover for the current grep user; M-x gre will show it. The purpose of project.el is to provide access to project information to other elisp programs; it is _not_ to provide user level programs. 'grep' is a user level elisp program that could use some project information. If it is possible to provide user control over that via prefixes or prompts, then the name doesn't have to change. If that's too complicated, grep-project seems like the best choice; similar to grep-find. 'project-find-regexp' is a user level elisp program; project.el is not supposed to provide those. -- -- Stephe