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: Fri, 5 Jun 2020 22:02:12 +0300 Message-ID: References: <5f584d83-ef45-9912-bfbc-d2f00b24b9fd@yandex.ru> <87pnahjgdr.fsf@linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="99462"; 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: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 05 21:03: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 1jhHcg-000Pkd-9V for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Jun 2020 21:03:22 +0200 Original-Received: from localhost ([::1]:51232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhHcf-0002uH-6I for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Jun 2020 15:03:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhHcN-0002rn-Up for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2020 15:03:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38370) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jhHcN-0007IX-JX for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2020 15:03:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jhHcM-0001g3-GL for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2020 15:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Jun 2020 19:03:02 +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.15913837445085 (code B ref 41572); Fri, 05 Jun 2020 19:03:02 +0000 Original-Received: (at 41572) by debbugs.gnu.org; 5 Jun 2020 19:02:24 +0000 Original-Received: from localhost ([127.0.0.1]:49916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhHbk-0001Jk-5x for submit@debbugs.gnu.org; Fri, 05 Jun 2020 15:02:24 -0400 Original-Received: from mail-wr1-f43.google.com ([209.85.221.43]:45222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhHbi-0001EO-8k for 41572@debbugs.gnu.org; Fri, 05 Jun 2020 15:02:22 -0400 Original-Received: by mail-wr1-f43.google.com with SMTP id c3so10774818wru.12 for <41572@debbugs.gnu.org>; Fri, 05 Jun 2020 12:02:22 -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=NKSe5q2bMRqdSQYrw8tE87dpw1jEvSUCdgDzDNbWcQs=; b=A/czDHOXX4ZAIxJF2ou66h2Ge/1T8aUP9Aik3GOjYpHHs0HR2yGeEQ9v7f/YQAuW5P Kkqaw1PUN81rs3lKoxhzcEE5sfWzfhso8pH9PGS4EnNJjdZRNVA/yCo9n+o83pE5JgvG lK9g+AppJynyTraw+tj9bZFiilIHtT2al3o8SAXU0cG1P1PteXWuHwFknxcycWgwMaBI +T78WbugjzuB24Ziyw+nR4mS1iJ6M48WKCFnnQmQYSS5Ua45nPNUbDvSkGKoDmexvQhE Us5ceXdmM3IkJ9j58/NEJKm/lQWUSoDQ2tXrIsAwFK7cMCKvtxr1VPhBTc7e4YPahu3t xM0g== 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=NKSe5q2bMRqdSQYrw8tE87dpw1jEvSUCdgDzDNbWcQs=; b=S35GPfT+pltJ7kRzMSF4zH2XT7qqnE5eziPh4Z+Awg64mqwQzlli1uCaKkmWcM1OPY ny0pxQG5I8EStv7xTeIw1tXdoZOuKuZkfj4z9WNSqbX+Lhv7JOBRrlEr6KLF4HjkfWn9 9x2UZGmZEgR+/83MHDwcqq2V9bRp+MusEQaGmTcSHNNqb7lVlu79pPORD8PEI14Ao8rg G+Avs6TTP9se3tmBHRxQzyR6nBjcF7x1XM6Y1R0Q8gkEXIkB8ZydVvFUy0Ar+URfO48o 5UdE42OSTIuKicy59TeYX9BJ43EsXVYKOcy4hmyrL7Een1GnPxcyikBYaktC06btC5zR mdBw== X-Gm-Message-State: AOAM532tPCmPTIseTpBxHmKScRrA3RhQoUEWXGPO4NfO1JrJfiCWPOok IyNfQYcNAA4XIRZiHYt7OJqBhKKI X-Google-Smtp-Source: ABdhPJye5pROzwVQ9VoM3ZcgsdeLfeS9mbdGDmV0GEDdMGXMJ21GaNMMwWP7xykz+U4f65DVZ2s7mA== X-Received: by 2002:adf:b60b:: with SMTP id f11mr11008018wre.7.1591383735115; Fri, 05 Jun 2020 12:02:15 -0700 (PDT) Original-Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id o20sm13739198wra.29.2020.06.05.12.02.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Jun 2020 12:02:14 -0700 (PDT) In-Reply-To: <87pnahjgdr.fsf@linkov.net> 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:181581 Archived-At: On 03.06.2020 02:40, Juri Linkov wrote: >> Do you have a lot of projects that aren't backed by VC repositories? > > Usually new projects in early stages of development > not ready to commit even the initial revision. A 'git init' wouldn't exactly hurt, though. > However, maybe in this case better to employ some heuristics > to detect the project root, e.g. to search for such common files > as "Gemfile" for Ruby, "mix.exs" for Elixir, etc. I like this suggestion better (no "special" files), but would we be able to avoid scope creep? Wouldn't users then expect being able to specify ignored directories in such projects? And then faster indexing (e.g. using caching), compared to the VC backend? Projectile uses the "special file" for the former, and I'm not really fond of its solution for the latter.