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: cl-defgeneric vs random funcall in project.el Date: Thu, 30 Jul 2015 02:04:57 -0500 Message-ID: <86380686sm.fsf@stephe-leake.org> References: <86oaiwa57v.fsf@stephe-leake.org> <55B79B3F.1060200@yandex.ru> <86wpxj93r2.fsf@stephe-leake.org> <55B82A0C.5040709@yandex.ru> <86fv4782k2.fsf@stephe-leake.org> <55B92F76.7060104@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438239950 17829 80.91.229.3 (30 Jul 2015 07:05:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jul 2015 07:05:50 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 30 09:05:40 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 1ZKhuO-00021n-90 for ged-emacs-devel@m.gmane.org; Thu, 30 Jul 2015 09:05:40 +0200 Original-Received: from localhost ([::1]:38303 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKhuM-0003hD-Dd for ged-emacs-devel@m.gmane.org; Thu, 30 Jul 2015 03:05:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKhuF-0003fH-Ep for emacs-devel@gnu.org; Thu, 30 Jul 2015 03:05:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKhuB-0005kd-TH for emacs-devel@gnu.org; Thu, 30 Jul 2015 03:05:31 -0400 Original-Received: from gproxy9-pub.mail.unifiedlayer.com ([69.89.20.122]:49304) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZKhuB-0005Wu-N0 for emacs-devel@gnu.org; Thu, 30 Jul 2015 03:05:27 -0400 Original-Received: (qmail 26006 invoked by uid 0); 30 Jul 2015 07:05:15 -0000 Original-Received: from unknown (HELO CMOut01) (10.0.90.82) by gproxy9.mail.unifiedlayer.com with SMTP; 30 Jul 2015 07:05:15 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by CMOut01 with id yX591q0072UdiVW01X5CkB; Thu, 30 Jul 2015 01:05:15 -0600 X-Authority-Analysis: v=2.1 cv=NJxGpSKg 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=zOBTXjUuO1YA:10 a=vaJtXVxTAAAA:8 a=UKnhCq9eLiY8Sabok54A:9 Original-Received: from [76.218.37.33] (port=57891 helo=TAKVER2) by host114.hostmonster.com with esmtpa (Exim 4.84) (envelope-from ) id 1ZKhtt-00021T-Ka for emacs-devel@gnu.org; Thu, 30 Jul 2015 01:05:09 -0600 In-Reply-To: <55B92F76.7060104@yandex.ru> (Dmitry Gutov's message of "Wed, 29 Jul 2015 22:54:30 +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:188185 Archived-At: Dmitry Gutov writes: > On 07/29/2015 05:24 PM, Stephen Leake wrote: > >>> """ >>> So some specific change proposals: >>> >>> - Rename 'project-directories' to 'project-root-directories' or >>> 'project-roots'. The current project root should always be first in >>> the list. >>> >>> - 'project-search-path' should not include 'project-root-directories'. >>> """ >> >> That means the _code_ for default method for the function >> project-search-path should not append the value of the result of the >> function project-root-directories. > > It was my mistake, then. I hope, though, after rereading that message, > you can agree that it was an easy one to make. > >> The point was I thought that project-search-path and project-directories >> were distinct concepts, not related to each other. The contents may >> overlap, or either one may not be defined. > > Try to imagine the consequences of project-search-path having to > include project-roots, or even some directories within them. > > Take emacs-lisp-mode, it makes project-search-path return load-path, > through project-search-path-function. Yes; that's exactly what it should do. > Now, take an actual project implementation, like the one returned by > project-try-vc. It doesn't know anything particular about Elisp, but > there might be some directories with Elisp code inside the current > project tree. There's no guarantee that they're added to load-path, at > any given time. Should the VC project provide its own implementation > of project-search-path? If the "vc project backend" wants to be a "real project backend", then yes, it needs to define project-search-path. That would not be useful for editing elisp files; the elisp project backend is useful for that. Which is why elisp-mode sets the elisp project backend to be active. I don't see the problem. >> Now that I see that you intended them to mean project-path-read-only and >> project-path-read-write, things have changed. > > These are pretty bad names, though. Why? they give the precise meaning. What names would you propose? -- -- Stephe