From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#41572: 28.0.50; [PATCH] Support plain project marked with file .emacs-project Date: Sat, 6 Jun 2020 15:17:50 +0300 Message-ID: References: <5f584d83-ef45-9912-bfbc-d2f00b24b9fd@yandex.ru> <87pnahjgdr.fsf@linkov.net> <87ftb92u8q.fsf@thornhill.no> <0ab90cf2-eab2-6fea-6698-4164d7753cd7@yandex.ru> <87d06ck2b0.fsf@thornhill.no> <2fbe5d5d-03a1-212b-9dd7-4723e168ad06@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="93287"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 Cc: Zhu Zihao , 41572@debbugs.gnu.org To: Theodor Thornhill , Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 06 14:19:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1jhXn5-000OA7-9t for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Jun 2020 14:19:11 +0200 Original-Received: from localhost ([::1]:43032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhXn3-0004HU-TZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Jun 2020 08:19:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34768) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhXmv-0004H3-Vj for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 08:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39467) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jhXmv-0006ZZ-Mv for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 08:19:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jhXmv-00027U-Hw for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 08:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Jun 2020 12:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41572 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41572-submit@debbugs.gnu.org id=B41572.15914458828048 (code B ref 41572); Sat, 06 Jun 2020 12:19:01 +0000 Original-Received: (at 41572) by debbugs.gnu.org; 6 Jun 2020 12:18:02 +0000 Original-Received: from localhost ([127.0.0.1]:51004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhXlx-00025e-RY for submit@debbugs.gnu.org; Sat, 06 Jun 2020 08:18:02 -0400 Original-Received: from mail-wm1-f52.google.com ([209.85.128.52]:37853) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhXlv-00025R-D9 for 41572@debbugs.gnu.org; Sat, 06 Jun 2020 08:17:59 -0400 Original-Received: by mail-wm1-f52.google.com with SMTP id y20so3889978wmi.2 for <41572@debbugs.gnu.org>; Sat, 06 Jun 2020 05:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Of2gLaV61Cs4M5yuC5g7LoRhCOsUVY67f1//MDT+2gE=; b=g6su/AS1HCZnv6rW6hrjJHGxJQaJJdo9VGrMfySDPz7Bxo/sdjcsuitRR8FgAKH5dY rWIFLw08Lh5oAFbIGIyQUDTrJcJsgHn8LkWLAJFd1TU9QV0BrUUP6gjIAIBhstuDzsBA gBGHnFQxa4zjzX8IIfoIue6chgfX/r6+irOBHUJy8FdLOXwgrlO7fXvQk3yKc1cifLwb ZJXRCW/RdRqDTnzEmnEdyxX4jSclnMwLBMVslsbw4UCL83qnB3BVscc15kek+6nMUhpD fltr1jQPMxDEg2sAyCMCe5PfxKpYCYJ94zbB3+dF77oJ//maGscEUw+RJ7hqywqOnEFZ xgdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Of2gLaV61Cs4M5yuC5g7LoRhCOsUVY67f1//MDT+2gE=; b=eI9C04rOFouy9NIsqqguPE3XrbKyZv8lgzcXBfQpd7lPkJj7Nd5bzgevoOepxvL3qG Atn8/d1jBzWEGjeAuyeiMiyc1yC4HDkRmiZ8pAFnoQNKGOEoR2urLR3g79Bpiz9iufZi UWLxaZhAO7UM3GL+a6e7cVR94sdt6T6SRsk6tj9WJpQd+Je55YDFm80drmyvsqAm0Nqr KsaKsusf8PD5l1E8krGwxZTavIu1EtH7QA60RxhdMZ3vG4yU1ssR1mv7XIx3ZeBETMdU GoFrz427B22JiGzEdR93zk70j+5QNmziR4hD3uLp87Ao3tLd2R+22DxdJ1+QcRvThTHn WNdg== X-Gm-Message-State: AOAM533C1OBUsmAhY3aAuUU9FbSVMTVCBz9bLDfKNdJGPawT9n97GGrW D70ZbPL09X4lh7cxeroPC/MdTVZa X-Google-Smtp-Source: ABdhPJxe48RNNcFd2vdRPBFv96KHt3wmVvPQD+q97kqSLlb5sw/phrKltwR5uZMtXekffk/JFvCpIQ== X-Received: by 2002:a1c:1d94:: with SMTP id d142mr7279286wmd.42.1591445873187; Sat, 06 Jun 2020 05:17:53 -0700 (PDT) Original-Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id a124sm15259346wmh.4.2020.06.06.05.17.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 06 Jun 2020 05:17:52 -0700 (PDT) In-Reply-To: Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:181611 Archived-At: On 06.06.2020 14:53, Theodor Thornhill wrote: > > > On Sat, Jun 6, 2020 at 13:15, Dmitry Gutov > wrote: >> > Unless you make sure it's full-featured, indeed. But the problem might >> become more severe in the future if we add more capabilities to projects. > This would essentially mean that at least until the api is completely > stable the git version is the de facto implementation? It's the "official" one, but, for instance, Projectile which we already mentioned before, could hook into the API and provide the same level of performance. As far as future features go, it could be a concern, but can be addressed as the features appear. The crucial point is, though, that "lightweight" project backends are probably not a good idea. > How about as you proposed extract the vc until, then compose different > versions? Most projects will use it anyways, and my foo-mode shouldn’t > have miss out. Not sure what you're saying here. > I mean, if we want to support “.project”, I assume we still want to use > vc backend after we do git init. Should we have to delete that said file > then? I think the "simple" backend, if added, would go after the VC one in project-find-functions. So doing 'git init' would automatically switch over, with all the accompanying consequences. > What if we accept some pattern, then merge all the other > functions? I believe we can’t use generics, call-next-method and friends > for this? Could you elaborate? >> > arbitrary project can have a totally different set of ignores. So, at >> the very least, I'm in doubt how to write the docstring. >> > An arbitrary project can then just add a “list file“ functions, and if > git is not there, it will just return nil How does that address the question of ignores?