From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Zihao Zhu Newsgroups: gmane.emacs.bugs Subject: bug#41572: 28.0.50; [PATCH] Support plain project marked with file .emacs-project Date: Fri, 29 May 2020 12:34:33 +0800 Message-ID: <679e6ff0-b0e4-e212-34bc-60ff676d0b00@gmail.com> References: <5f584d83-ef45-9912-bfbc-d2f00b24b9fd@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="81372"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 To: Dmitry Gutov , 41572@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 29 06:35:22 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 1jeWjp-000L30-Np for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 May 2020 06:35:21 +0200 Original-Received: from localhost ([::1]:58054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeWjo-0004Qi-Mg for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 May 2020 00:35:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeWjY-0004PL-Ba for bug-gnu-emacs@gnu.org; Fri, 29 May 2020 00:35:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42014) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jeWjV-0002qC-Qd for bug-gnu-emacs@gnu.org; Fri, 29 May 2020 00:35:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jeWjV-0004MH-M6 for bug-gnu-emacs@gnu.org; Fri, 29 May 2020 00:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Zihao Zhu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 May 2020 04:35: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.159072688616729 (code B ref 41572); Fri, 29 May 2020 04:35:01 +0000 Original-Received: (at 41572) by debbugs.gnu.org; 29 May 2020 04:34:46 +0000 Original-Received: from localhost ([127.0.0.1]:53560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeWjF-0004Lk-Sb for submit@debbugs.gnu.org; Fri, 29 May 2020 00:34:46 -0400 Original-Received: from mail-lj1-f193.google.com ([209.85.208.193]:38690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeWjE-0004LY-2z for 41572@debbugs.gnu.org; Fri, 29 May 2020 00:34:44 -0400 Original-Received: by mail-lj1-f193.google.com with SMTP id m18so912521ljo.5 for <41572@debbugs.gnu.org>; Thu, 28 May 2020 21:34:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=PggfGWRXipMh9fmk4HE05hn8c5c8xytkbb6oOywYKbE=; b=LahYJ84rQukBAEm/fXZVZf+AiFR66uYFTNumyAb6m02B+hH95/xYpnviduoO9qfoJp NVuG0QRs+AJWkTE5/PHqGHSK5Qnhhht3F4yjX1l9/clg2gRu+nU8Cml0LsR1Uq3NQRTs mhIgin8mjR2JbE/K5ziGaXmQW7mr4flLdDHYrPJgqaSlS+kJrhvpuYE3MEXFJ67kWxA/ EW94Wyx19KqXi+EC0JcW3MKsIHE3ka0/3kDH8nmlEBhnGLi5kWXmEeox8keOyOKMvxCa aDyjMq2j0XJw9A+N7hDswQ+unBK4upoIAsK71H1edTm6B31nOpJTKdJ5h3iLU4VvFhjZ 2kEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=PggfGWRXipMh9fmk4HE05hn8c5c8xytkbb6oOywYKbE=; b=JN7zvsvKPP5pd+jO6tBJokmoGE8/f7zhEMlb+Ny/+CDJ7FK3CPsGnCtcwTAPqL3aUd CjrS1gWmQAUzQxHdpWhQ+mHAlaxWule48aTxc2ZO9jrqMTtwx4PVa3thmiqV1myudi2n ljBplW5yqQ06v9XQ79Zkyk8Onydk9swo+xAVML247fj3t4S3BZDc4xW7Fcx+EIQCrIZR GYAiaPGRMcNUlhZm6tMszcKe1zZkj40oX1AEP7UFguH8DsGtlwEo/+kB8LO/UqnL+G5y Ie8DzHh6UD1kIXq4cY5fEKM5FbZ5g0KdOLPgSfmPEHJDNj+m2PxJ8GuibTo6ke0tsMD0 CC9Q== X-Gm-Message-State: AOAM5300gRrhDrOTxBvw612whiViF4ZFCFc5p3MxOCzAWzZ4zkko52L1 0MHDzs4diQdbj0XQ3sOVeXQoPg9Uo3I= X-Google-Smtp-Source: ABdhPJxSoWWZnaGCzOGZmRlB2Ah8hTEzn2dk3gfK3llFuuSq8MOgBx+UH3xw6A+Z6dXChD054OkefA== X-Received: by 2002:a2e:150f:: with SMTP id s15mr3032977ljd.102.1590726877611; Thu, 28 May 2020 21:34:37 -0700 (PDT) Original-Received: from [192.168.101.55] ([45.130.145.124]) by smtp.gmail.com with ESMTPSA id a16sm1760498ljh.111.2020.05.28.21.34.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 May 2020 21:34:36 -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:181169 Archived-At: Besides Perforce, Darcs and Fossil aren't supported yet. If we have plain project, we don't have to fiddle around with different sorts of VC. A more netrual suggestion: We can make project-find-functions a defcustom first. On 2020/5/29 上午3:58, Dmitry Gutov wrote: > On 28.05.2020 18:46, Zihao Zhu wrote: >> If I have a project.el based plugin,  and I wanna use them in a >> directory not under VC. Add an mark to force project.el work is >> easier than modify the source of plugin or initialize VC system. > > The problem with that, is that next time we'll get a report that these > projects are too slow. Or that people who added .emacs-project file in > the middle of a VC repository suddenly get significantly worse file > listing performance, without expecting it. > > So we'd have to add caching to the file list, and then some > invalidation, probably. And I'm not a fan of having manual > invalidation commands. > > That's why I'm wary of adding such a separate project type by default, > especially when the initial proposal doesn't add any of the advanced > features described above, or explains how they won't be necessary. > > But opinions welcome. > >> And this  can also be used as a side solution to use project.el in >> unsupported VCed project in Emacs (AFAIK, P4(Perforce) is not >> supported by vc.el). > > Perhaps we could add Perforce support to project-vc instead? > > There was a vc-p4 packages somewhere out there. But if it's entirely > dead, we could add such support to project--vc-list-files directly. > > Or, better yet, release it as a project-p4 package on GNU ELPA. > > That all depends, of course, on whether the p4 command line utility > also has the means to quickly list repository files and add ignores. > >> IMO, a plain project is like a transient project. > > One difference is, nobody really expects much from "transient" > projects. And this type of project is only applied when the directory > is not covered by any other kind of project.