From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 1e3b0f2: Improve doc strings of project.el Date: Fri, 19 Jun 2020 20:11:16 +0300 Message-ID: <83d05vx9or.fsf@gnu.org> References: <87bllfqj82.fsf@warpmail.net> <83o8pfxhzq.fsf@gnu.org> <83imfnxgt3.fsf@gnu.org> <83eeqbxevp.fsf@gnu.org> <87bllfnjy5.fsf@thornhill.no> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="15021"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philip@warpmail.net, emacs-devel@gnu.org, dgutov@yandex.ru To: Theodor Thornhill Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 19 19:33:01 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jmKsu-0003lR-IK for ged-emacs-devel@m.gmane-mx.org; Fri, 19 Jun 2020 19:33:00 +0200 Original-Received: from localhost ([::1]:43444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmKst-0001BE-In for ged-emacs-devel@m.gmane-mx.org; Fri, 19 Jun 2020 13:32:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmKY4-0001uw-W0 for emacs-devel@gnu.org; Fri, 19 Jun 2020 13:11:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50961) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmKY3-0005AX-SE; Fri, 19 Jun 2020 13:11:27 -0400 Original-Received: from [176.228.60.248] (port=1036 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jmKY3-0000DO-3U; Fri, 19 Jun 2020 13:11:27 -0400 In-Reply-To: <87bllfnjy5.fsf@thornhill.no> (message from Theodor Thornhill on Fri, 19 Jun 2020 15:39:53 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:252379 Archived-At: > Date: Fri, 19 Jun 2020 15:39:53 +0000 > From: Theodor Thornhill > Cc: philip@warpmail.net, dgutov@yandex.ru, emacs-devel@gnu.org > > > A project could specify a list of major-modes, couldn't it? That > > would generally derive from the project's "purpose" or "goal", for > > lack of a better word. For example, a project where you build a > > program would have prog-mode or some of its descendants in the list, > > and perhaps also Texinfo and/or markdown for docs. A project whose > > purpose is to write an essay or a blog or might use descendants of > > text-mode. Etc., etc. > > Yes, absolutely. But isn't this sort of what is intended with the > cl-defmethods used to assign a project? > > I believe project.el to be a bit ambiguous, since it is both a generic > "wrapper" for a generic interface "project", but also an implementation of > the "vc" version of this interface. So the behaviour you suggest here is > easily done in say: > > (cl-defmethod project-root ((project (head some-major-mode))) > ...) > > The version used now is merely saying: "Show me everything but the > things ignored in .gitignore." > > Or am I misunderstanding you? Maybe. I don't think I understand what you are suggesting in enough detail to tell.