From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#16577: Add regexp-based version of completion-ignored-extensions Date: Sun, 20 Feb 2022 10:06:58 -0500 Message-ID: References: <83mwig85an.fsf@gnu.org> <83d2jc81f8.fsf@gnu.org> <8361p39ar2.fsf@gnu.org> <87r17xsm7c.fsf_-_@gnus.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23491"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: vmalloc@gmail.com, Glenn Morris , Eli Zaretskii , 16577@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 20 16:08:25 2022 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 1nLnp2-0005wN-Tq for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Feb 2022 16:08:24 +0100 Original-Received: from localhost ([::1]:58292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLnp1-0000GQ-MU for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Feb 2022 10:08:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLnoi-0000GH-Cn for bug-gnu-emacs@gnu.org; Sun, 20 Feb 2022 10:08:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39631) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLnog-0001nk-Fl for bug-gnu-emacs@gnu.org; Sun, 20 Feb 2022 10:08:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nLnog-0000hz-CH for bug-gnu-emacs@gnu.org; Sun, 20 Feb 2022 10:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Feb 2022 15:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16577 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 16577-submit@debbugs.gnu.org id=B16577.16453696292660 (code B ref 16577); Sun, 20 Feb 2022 15:08:02 +0000 Original-Received: (at 16577) by debbugs.gnu.org; 20 Feb 2022 15:07:09 +0000 Original-Received: from localhost ([127.0.0.1]:33528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLnno-0000gp-TB for submit@debbugs.gnu.org; Sun, 20 Feb 2022 10:07:09 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:57195) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLnnm-0000gF-Td for 16577@debbugs.gnu.org; Sun, 20 Feb 2022 10:07:07 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 2C229440C63; Sun, 20 Feb 2022 10:07:01 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id D7A3C440C2D; Sun, 20 Feb 2022 10:06:59 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1645369619; bh=c/Iljn74bp3Z6JK1E6nYhiiWS2eOxHZC7fWqT2SA9Jw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=F5/WnP5UtFgSIQRfW1hP/idGYURQ2BvLvBdEgWbSeGU56NS3JhB+8YN3j9siYEoHb ZusdQcLS0nvJUSbonl8VNIAuKofeeM8jJwTyqrgneP5SHVXfKYS755JCAGyifE9Zpj B8/HXJ4wocrX7JWiar+snia3Hmp/n/p8P/eeUZLNdtC8qL3CfbiQr33EXDye54qwfK B84fRvRz7GuAyG6eYU6e98AurQTyeWiK1d/xdVI+eUWHvGz2Ior7nVfTvrgdEewIR0 WMxF9b/b0LyOuQHTywE5gjftucfAr95xHnHRsDYNRA/IW0Kuhy5D684k+6sDk54ocR W/mgTrVzBiMug== Original-Received: from pastel (unknown [45.72.237.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 7FE7B120AA5; Sun, 20 Feb 2022 10:06:59 -0500 (EST) In-Reply-To: <87r17xsm7c.fsf_-_@gnus.org> (Lars Ingebrigtsen's message of "Sun, 20 Feb 2022 14:26:47 +0100") 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:227248 Archived-At: > I think perhaps of introducing a regexp-based extra mechanism here that > we should introduce a new completion-ignored-files variable, which would > default to '(".svn/" ".hg/" ".git/" ".bzr/" "CVS/" "_darcs/" "_MTN/") > (probably), and then remove those from -extensions. BTW, maybe we can merge the two propositions: Allow the use in `completion-ignored-files` of entries of the form "/" where will be matched against the nondirectory part of the file name. We'd probably want to make this match anchored, since that's what the "/" suggests. It means that instead of "/.git/" we'd add "/\\.git/" or "/\\.git/?\\'". This should make the change much less invasive, with most existing uses of `completion-ignored-files` unaffected. Stefan