From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#16577: Add regexp-based version of completion-ignored-extensions Date: Mon, 21 Feb 2022 17:20:54 +0100 Message-ID: <874k4sgpi1.fsf@gnus.org> References: <83mwig85an.fsf@gnu.org> <83d2jc81f8.fsf@gnu.org> <8361p39ar2.fsf@gnu.org> <87r17xsm7c.fsf_-_@gnus.org> <87fsocl3ot.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3350"; 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 , 16577@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 21 17:38:12 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 1nMBhT-0000gJ-9O for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Feb 2022 17:38:11 +0100 Original-Received: from localhost ([::1]:55316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nMBhR-0004oG-Px for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Feb 2022 11:38:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMBRq-0002Sc-Ik for bug-gnu-emacs@gnu.org; Mon, 21 Feb 2022 11:22:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44863) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nMBRq-0006Tb-6m for bug-gnu-emacs@gnu.org; Mon, 21 Feb 2022 11:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nMBRq-0006GC-4a for bug-gnu-emacs@gnu.org; Mon, 21 Feb 2022 11:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Feb 2022 16:22: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.164546046624002 (code B ref 16577); Mon, 21 Feb 2022 16:22:02 +0000 Original-Received: (at 16577) by debbugs.gnu.org; 21 Feb 2022 16:21:06 +0000 Original-Received: from localhost ([127.0.0.1]:38760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMBQw-0006F4-6J for submit@debbugs.gnu.org; Mon, 21 Feb 2022 11:21:06 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:40808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMBQu-0006E6-Vh for 16577@debbugs.gnu.org; Mon, 21 Feb 2022 11:21:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6qAxLTpOLLdBcWGW1L3cgOcK38zGn9J/krqD+JU/ORI=; b=suA5uAWRFEccr2/RV4HTaqXanI qr4bV1NpXZY28SmPIRhZwFNZ6Wwy8n5nxvC1/JQ9ebL+Mjvv7vppAR3AiJhocYmFPQoxLlxM/8hnZ Mma90XmjsTzjLtps67j8ZsWybaJIP7ZUIcEJkMos4XT7fWdQq7QngMWfKzmsYWhbLXeE=; Original-Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nMBQk-00012c-Pn; Mon, 21 Feb 2022 17:20:57 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEWQnrfXnSyqZB0/ Mhn////+V3jdAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+YCFRASAHUcdVEAAAGDSURBVDjLdZMBssIg DEQZuYCkF5DlAhjuf7e/m1TbfjXjaM1jNyHQUn5Fa603jLEU8wQMQAc8wQkZFWSgpMz4HFYwgweq zFcmJ7+adWsWdqPSaBZJayiaUdSD0WjVOmdakSgvr+U3lFIP0OS2RDqXPMoLBBweEjS0dgATgPai P73dDwV20OVqjzcwpNVyG2xjvkGWjuBm/QDLX8A5tzE1q4gssJOBNzB/55dcZ0FPcORVbDwKcAYx lsHOHmUkyE6zDkvgzhPsGsfJaT3Z7p1WHA7rafnesaOzBveZGW+cxEAAt7mDUEDnog5iVmaOEc1Y 71sfCVTcNANtD4Ytqug0qdAi19fTuOURngk2PW3qkl0HoDkBKyiUyG6xK6CnEUXynuzgpgnkjIA8 Qd0wKpaueqZa/EC3me2673dNfe4jabwlNStfw6m4dfvIxyt0G2t9BfYBdEsEPuyRiu11/scdSVD/ g3UBK+a6cALnta+NXhRZ+CdY38EpyqXGBXxX5Iv7Nf4Adi2jQdcelw4AAAAldEVYdGRhdGU6Y3Jl YXRlADIwMjItMDItMjFUMTY6MTg6MDArMDA6MDDDnwlKAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIy LTAyLTIxVDE2OjE4OjAwKzAwOjAwssKx9gAAAABJRU5ErkJggg== X-Now-Playing: Neil Young's _Neil Young_: "The Emperor Of Wyoming" In-Reply-To: (Stefan Monnier's message of "Mon, 21 Feb 2022 11:06:52 -0500") 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:227364 Archived-At: 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? I think that sounds pretty confusing. > No, the "/" would look like it's matching the / of a full file name, but > it would really be just a marker to indicate that the rest is a regexp > (and where it's anchored) and the matching code would extract the regexp > from it (and replace it with the equivalent of \\(?:\\`\\|/\\) as > needed). 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. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no