From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Theodor Thornhill Newsgroups: gmane.emacs.devel Subject: Re: master 1e3b0f2: Improve doc strings of project.el Date: Fri, 19 Jun 2020 15:39:53 +0000 Message-ID: <87bllfnjy5.fsf@thornhill.no> References: <87bllfqj82.fsf@warpmail.net> <83o8pfxhzq.fsf@gnu.org> <83imfnxgt3.fsf@gnu.org> <83eeqbxevp.fsf@gnu.org> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="118346"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philip@warpmail.net, dgutov@yandex.ru, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 19 17:41:20 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 1jmJ8p-000Uhs-AG for ged-emacs-devel@m.gmane-mx.org; Fri, 19 Jun 2020 17:41:19 +0200 Original-Received: from localhost ([::1]:54052 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmJ8o-00063g-9r for ged-emacs-devel@m.gmane-mx.org; Fri, 19 Jun 2020 11:41:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmJ7c-0004de-8f for emacs-devel@gnu.org; Fri, 19 Jun 2020 11:40:04 -0400 Original-Received: from mail1.protonmail.ch ([185.70.40.18]:46797) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmJ7Z-0005Xb-EM for emacs-devel@gnu.org; Fri, 19 Jun 2020 11:40:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1592581198; bh=TbisUn+XomZasTeNxlRq9nv6okZ8YVHk1LWG+kdUIsE=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=krRgu+ElHCC1D/ElzOLLX1H9se5RL6vOJdaEFaBPeJSi4pi5eHNt7OE3oJwrVWv3N r0Ev0y2KO0Vw4AFUd3NjFvehMj0ylIaTyotXMfnhy4/2AIwsORk0eofLAFhf9IcEzx Kt+YQAj40b7WVJRO9yZ2V1tSWNDjwiD2bv0pMR1RbXv4sIzU8WwqthzztH6i+BKkfC jXZIts1ds552+/1FE+87os02dNHPmXWvWPWyMZl6orF2tKpvsdHyGXFTiCsnVWxDlL ewurx3ighyFCktmFbo4qBm4qUtDz3Eh468osb6ESiCogkdyig6WrYQrT1jVIMLgrzG V7o//mlBg3zGw== In-Reply-To: <83eeqbxevp.fsf@gnu.org> Received-SPF: pass client-ip=185.70.40.18; envelope-from=theothornhill@pm.me; helo=mail1.protonmail.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/19 11:39:59 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:252372 Archived-At: > 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? Theo