From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: project-find-file: switch to include non-tracked files Date: Mon, 4 Oct 2021 16:06:36 +0200 Message-ID: References: <878rz9jana.fsf@posteo.net> <0d668cbc-5b52-4c27-61a7-6edfdea18496@inventati.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18738"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Manuel Uberti Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 04 16:07:56 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 1mXOdH-0004gb-82 for ged-emacs-devel@m.gmane-mx.org; Mon, 04 Oct 2021 16:07:55 +0200 Original-Received: from localhost ([::1]:50084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXOdG-0007Oi-Aa for ged-emacs-devel@m.gmane-mx.org; Mon, 04 Oct 2021 10:07:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44084) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXOcH-0004w9-Sf for emacs-devel@gnu.org; Mon, 04 Oct 2021 10:06:53 -0400 Original-Received: from mail-pl1-f179.google.com ([209.85.214.179]:36390) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXOcD-000673-5W for emacs-devel@gnu.org; Mon, 04 Oct 2021 10:06:52 -0400 Original-Received: by mail-pl1-f179.google.com with SMTP id y5so11190428pll.3 for ; Mon, 04 Oct 2021 07:06:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oaEawLDJW0Ip9kqkmkqJ3Zz8v0j9bLyAflIRJG4SX0I=; b=i9dh0VbdDbXr4yK0bvc56uAi0Wsw3SC1R/tFmw99QEebu4I1x2fzyIhybgBXOtc6NE svc3rS6yQxaxx2W+p+HoZxDSiyR0TsiO2sqjU4iqhcqXnsJQukD6k/XpJ78/2dvIU52a GJSG1fQfcWiBUuBV7OJZHK3FsnZQ8MaHNKjfBj6q2jrzm1akyfp5sgomhAeWsR+8LqTx OdC2lfqyuhAI6BPX11JpMYii/cx8VqYuBtF6TgS/JHK582/av9Iif4XY+29bf/+F+eB6 NfHPcYt7+JmJLFSR9K8LYRYtTaLsw4pn49jQEWe/HCGKvytqjcPhqJ7Q+wL5QAJmNo79 7HTA== X-Gm-Message-State: AOAM533LKNwlsZmjN4+TNigNxIvXyXGL00lL0r8BiKBNrnL6mrglQKVX MS3+KstS/nZ+mmRdGdzVPT+2bx+HiAhidgWMKEwwKabb X-Google-Smtp-Source: ABdhPJy16136gu+e0CFb0ZlGuV0GpbtKUmA3q7HlMd8uVmsyb0/k/LHP64eC/pFnS9vfftsRLbPLTOQdw/5t474F32c= X-Received: by 2002:a17:902:b691:b029:12d:2b6:d116 with SMTP id c17-20020a170902b691b029012d02b6d116mr23406720pls.71.1633356407661; Mon, 04 Oct 2021 07:06:47 -0700 (PDT) In-Reply-To: <0d668cbc-5b52-4c27-61a7-6edfdea18496@inventati.org> Received-SPF: pass client-ip=209.85.214.179; envelope-from=stefankangas@gmail.com; helo=mail-pl1-f179.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:276194 Archived-At: Manuel Uberti writes: > At the top of project.el I see this: > > ;; * Reliably cache the list of files in the project, probably using > ;; filenotify.el (if supported) to invalidate. And avoiding caching > ;; if it's not available (manual cache invalidation is not nice). > > So maybe going for manual cache invalidation is not the best approach? Right, they probably had their reasons for doing that - perhaps it was just easier - but it sounds like something that we would want to avoid. I don't have any other ideas for what to use the prefix key for. Worst case, we'll need a new command or a double prefix for anything new that comes up. So I think using the prefix key here sounds reasonable - and it also happens to be a very nice user interface, IMO.