From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: progmodes/project.el and search paths Date: Fri, 7 Aug 2015 17:21:28 +0300 Message-ID: <55C4BEE8.6080308@yandex.ru> 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> <86oaikc20c.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1438957320 19983 80.91.229.3 (7 Aug 2015 14:22:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Aug 2015 14:22:00 +0000 (UTC) To: Stephen Leake , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 07 16:21:55 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 1ZNiWw-00057q-Jh for ged-emacs-devel@m.gmane.org; Fri, 07 Aug 2015 16:21:54 +0200 Original-Received: from localhost ([::1]:49368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNiWv-0006lU-Qn for ged-emacs-devel@m.gmane.org; Fri, 07 Aug 2015 10:21:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNiWe-0006l5-7s for emacs-devel@gnu.org; Fri, 07 Aug 2015 10:21:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNiWZ-0001AI-82 for emacs-devel@gnu.org; Fri, 07 Aug 2015 10:21:36 -0400 Original-Received: from mail-la0-x236.google.com ([2a00:1450:4010:c03::236]:36359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNiWZ-0001A3-0C for emacs-devel@gnu.org; Fri, 07 Aug 2015 10:21:31 -0400 Original-Received: by lagz9 with SMTP id z9so22938420lag.3 for ; Fri, 07 Aug 2015 07:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=/8pB3wSL0RCHuGArmuqdAO4EdO3J2IEgfSMvqG+RGYU=; b=P4yw++IzVP4Uum/MsUPLo7k2ZZggS2YpKWAlrFSruQcqck/3AI0XE97LieucPOeSyh aR+jl1dckC0+MXAv10vbuWzlN6Her2Aens7iZFr7pdR3e7QYoS7oZLfOabf3MrIV6z8V sZ0c84bZQB1jxBTxfcTpb/Sa4GmOTAXeIZmODe9LNcGQ7vZ7g6DBK9Lw26CNQDl4Oy8t QQOfQF9aXpAF5XbYppE+7NZxtWHZnmGaVk3imMK+x5kT1XSR56RGeeWfbDEpNhIg6DsS WcIVJ7hhWU/JCfe8yb/6afaDFKpHuikQCHQySDyyxMMy05/RlEI35OTck9s//JXTCbyX Lu7g== X-Received: by 10.112.125.200 with SMTP id ms8mr7677385lbb.60.1438957290317; Fri, 07 Aug 2015 07:21:30 -0700 (PDT) Original-Received: from [10.9.0.103] (nat.webazilla.com. [78.140.128.228]) by smtp.googlemail.com with ESMTPSA id ol6sm2196489lbb.37.2015.08.07.07.21.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Aug 2015 07:21:29 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Thunderbird/40.0 In-Reply-To: <86oaikc20c.fsf@stephe-leake.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::236 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:188544 Archived-At: On 08/06/2015 10:25 AM, Stephen Leake wrote: >> 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? project-rgrep sounds just as good to me (M-x grep is flat). Would grep-project, in your view, use the xref interface? If not, they're not the same either. > The latter will be _much_ easier to discover for the current grep user; > M-x gre will show it. On the other hand, M-x project- won't. And the user won't be able to discover all core commands that work on the current project. Both problems should be solved by making execute-extended-command use a new completion category that would perform laxer matching. > The purpose of project.el is to provide access to project information to > other elisp programs; it is _not_ to provide user level programs. It's the purpose of the API. Nothing says we can't provide some commands that use the API together with it. We could move them to a yet-another package is that's the consensus, but there is value in keeping them together. Not every project command is going to have a "normal" counterpart.