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: Mon, 21 Feb 2022 12:01:07 -0500 Message-ID: References: <83mwig85an.fsf@gnu.org> <83d2jc81f8.fsf@gnu.org> <8361p39ar2.fsf@gnu.org> <87r17xsm7c.fsf_-_@gnus.org> <87fsocl3ot.fsf@gnus.org> <874k4sgpi1.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="7116"; 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 Mon Feb 21 18:09:34 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 1nMCBo-0001TX-C0 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Feb 2022 18:09:32 +0100 Original-Received: from localhost ([::1]:43510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nMCBn-0001vs-3M for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Feb 2022 12:09:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMC4Z-0001Jt-Oq for bug-gnu-emacs@gnu.org; Mon, 21 Feb 2022 12:02:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44939) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nMC4Y-0004Iv-AZ for bug-gnu-emacs@gnu.org; Mon, 21 Feb 2022 12:02:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nMC4Y-0002w9-9a for bug-gnu-emacs@gnu.org; Mon, 21 Feb 2022 12:02: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: Mon, 21 Feb 2022 17:02: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.16454628779105 (code B ref 16577); Mon, 21 Feb 2022 17:02:02 +0000 Original-Received: (at 16577) by debbugs.gnu.org; 21 Feb 2022 17:01:17 +0000 Original-Received: from localhost ([127.0.0.1]:38834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMC3p-0002MY-KX for submit@debbugs.gnu.org; Mon, 21 Feb 2022 12:01:17 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:56860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMC3o-0002GS-5t for 16577@debbugs.gnu.org; Mon, 21 Feb 2022 12:01:16 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id CA8C4805B4; Mon, 21 Feb 2022 12:01:09 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 9616E804DD; Mon, 21 Feb 2022 12:01:08 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1645462868; bh=uJV3Cgw+Udzuls+/+iayEZilwY1bFtzoPHOo8ytxfOo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=eZplUYSTLSzy7b/8ETkyOfzAI1/laHgvWdmjGSfGIv/15eTkIHIDhyvBZBSyqCwWF +xZuZzoTxsbWRhiUlGjz4z5Qx9qNlM1RUjkZdem3Ue7cRO+sX3APrXIpSxE7rOqjTW PaaTfv9h+vgJfkd8nnUQesiHsuT7Y+yn9C4zG9IxwpNF0wfHf5cFVfd1l/EGsRaPe9 B/fPp4TspI7sGd0c3NKxjjN4opoRnVunVrIG86IsGrznYADIhJQnXHDRNFZ5ODwsc9 sIKidRH6sLu5EcIIG7FHbFOJQToWYoe7i9cCEXf/OH2HsxudNEdLTJWbSvoMnyn3fs lC0SM9wj04jjA== Original-Received: from pastel (unknown [45.72.237.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 51440120371; Mon, 21 Feb 2022 12:01:08 -0500 (EST) In-Reply-To: <874k4sgpi1.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 21 Feb 2022 17:20:54 +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:227369 Archived-At: Lars Ingebrigtsen [2022-02-21 17:20:54] wrote: > Stefan Monnier writes: >>> I haven't looked at the various code snippets that use the resulting >>> regexps, but I imagine that some are matching on the full file name and >>> some aren't? >> I think the important case only has the nondirectory part of the file >> name at hand, which is why I propose for "/" to be defined as >> matching only on that part (with a terminating / if it's a directory). > Oh, so this wouldn't be a plain regexp, but a ... mini-language where > "/" has a special meaning? Yup. > I think that sounds pretty confusing. It's not great, indeed. But, AFAICT something like that is the only way to introduce regexps into `completion-ignored-extensions` without having to touch too much of the code using that variable. > Hm. I think it'd a more straightforward interface to just keep > regexps out of it all, but I see the attraction of having a regexp > interface, too. There are several file name patterns I've wanted to ignore but couldn't because enumerating them all is somewhere between inconvenient and impossible (whereas a regexp would cover them easily). Stefan