From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Uberti Newsgroups: gmane.emacs.devel Subject: Re: project-find-file: switch to include non-tracked files Date: Tue, 4 May 2021 18:57:47 +0200 Message-ID: <898160b4-3e34-87e8-650e-d134804c3415@inventati.org> References: <9d620142-6009-d1bf-813f-17d091511c58@yandex.ru> <28f1e636-0b95-fa03-5d3a-78c27d24ee48@inventati.org> <8ea3d26b-e50a-b19f-7aaf-7e6478ac22ed@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28596"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: Dmitry Gutov , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 04 19:02:50 2021 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 1ldyRe-0007Ke-Hr for ged-emacs-devel@m.gmane-mx.org; Tue, 04 May 2021 19:02:50 +0200 Original-Received: from localhost ([::1]:55716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldyRd-0008Uh-7r for ged-emacs-devel@m.gmane-mx.org; Tue, 04 May 2021 13:02:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldyMw-000586-Cl for emacs-devel@gnu.org; Tue, 04 May 2021 12:58:00 -0400 Original-Received: from latitanza.investici.org ([82.94.249.234]:30571) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldyMq-0007rC-79 for emacs-devel@gnu.org; Tue, 04 May 2021 12:57:58 -0400 Original-Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4FZQy51Bs5z8shL; Tue, 4 May 2021 16:57:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1620147469; bh=u9e/yGvLsL8EE0EPpeH+2ErH+v47qpFb75JQxU0tKnI=; h=Subject:To:References:From:Date:In-Reply-To:From; b=XL9b0EkAnTn234UMhgJjVmbWiSOIpMI7m9pMXALsH5Yrd5cV2oSVUwkXhrc4IueSY a+C2KDikiN28yo5p5FCGousW9LXg74ev/5HqI8N54+bm3s4tyM5GqlvXZilczq+eiU HynuUAXdNylr9kDcz47VOuJtMS3Akc60BisLRaAo= Original-Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: manuel.uberti@inventati.org) by localhost (Postfix) with ESMTPSA id 4FZQy46BnYz8sfw; Tue, 4 May 2021 16:57:48 +0000 (UTC) Autocrypt: addr=manuel.uberti@inventati.org; prefer-encrypt=mutual; keydata= mQENBFTh+8QBCADM+TpOAlO6NIM+GCSLZd4hZQCU2WV7Z1cLYLnE2NHdEaKGnaVlkcf9dGeL 6nlX7j20AYL7KqF4h9IX5d4lc1w8Izk0V2ijtqNeqbRdiTZ8mF+cFEwbALjHIs/YNUjr8IMK pJ+5rQ4DN6dsLVuJ7NJCB54AtAqqvoTodEPxLCT2Gq6YyGaobiEGeczk/3SPsQZYQnKfJ2zM JxIQDy4Dg9owrPpX/WWOfmcTkDoWovX9nsojErYXhIXP7r6+V3cV9stQeOwMhfmnZ1k7LO7y tyvYNIZGfh+JrYBakGttYGSj/C47hJV9MBiY08/Wr3QeDVtV7UTB5qXVYMrYQk63UssNABEB AAG0QU1hbnVlbCBVYmVydGkgKEF1dGlzdGljaS9JbnZlbnRhdGkpIDxtYW51ZWwudWJlcnRp QGludmVudGF0aS5vcmc+iQE6BBMBCgAkAhsDBQsJCAcDBRUKCQgLBRYCAwEAAh4BAheABQJZ pBuqAhkBAAoJEE5XpsTKpI9iEBoIAJLAIZfNVT2KoO9iMM92kuCih6BA1lvpDWreoqRvwW8A iEnS6pwvpiuXldhZgcB4drpy97XBudBFx/b96Sqb4RvGxIHKpt4oLlpXzcohL28oP1CJiN+O bHEbRhzF8fuTrNh7v76z88WRkplUT/7nrO7YLVOM2DS/2QYccOrPkW4C5F03JyVkzSNisz5R VcmUTWcdnqo8VBd/DP3P96ayRj3VPKa9IdQIAxbjbhP+kEQbq9XDiZpGpcOHhFjWeLAWlFCm nES1C7Wb In-Reply-To: <8ea3d26b-e50a-b19f-7aaf-7e6478ac22ed@yandex.ru> Content-Language: en-GB Received-SPF: pass client-ip=82.94.249.234; envelope-from=manuel.uberti@inventati.org; helo=latitanza.investici.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no 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:268886 Archived-At: On 04/05/21 18:43, Dmitry Gutov wrote: > There are two ways to solve this: > > - Add "whitelisting" syntax to project-vc-ignores and the project-ignores > method. Then you edit the value of this variable, whitelisting .envrc in the > given project (or globally), and project-find-file will always include it. > > - We add an arg like NO-PROJECT-IGNORES to the project-files method. Then > project-find-file could use it in (some?) circumstances. Both solutions sound good, but considering the prefix argument discussed below, probably the second one seems like the nicest. > We can add this behavior when a prefix argument is used (like > C-u C-x p f'), but that's no dynamic switching. This would be great. Dynamic switching is not a must-have for me, I was just offering an example of a possible behaviour. What's important is being able to get to the ignored file(s) through project-find-file. -- Manuel Uberti www.manueluberti.eu