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: Wed, 23 Feb 2022 13:05:27 +0100 Message-ID: <87bkyx94ag.fsf@gnus.org> 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> <87k0dnca7g.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="19459"; 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 Wed Feb 23 13:12:46 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 1nMqVi-0004rX-0x for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Feb 2022 13:12:46 +0100 Original-Received: from localhost ([::1]:60122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nMqVg-00061u-Nn for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Feb 2022 07:12:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMqPI-0008Ot-F5 for bug-gnu-emacs@gnu.org; Wed, 23 Feb 2022 07:06:08 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50197) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nMqPB-0000BN-VJ for bug-gnu-emacs@gnu.org; Wed, 23 Feb 2022 07:06:08 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nMqPB-0003i6-Qv for bug-gnu-emacs@gnu.org; Wed, 23 Feb 2022 07:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Feb 2022 12:06:01 +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.164561794314234 (code B ref 16577); Wed, 23 Feb 2022 12:06:01 +0000 Original-Received: (at 16577) by debbugs.gnu.org; 23 Feb 2022 12:05:43 +0000 Original-Received: from localhost ([127.0.0.1]:44094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMqOs-0003hW-QU for submit@debbugs.gnu.org; Wed, 23 Feb 2022 07:05:43 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:33724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMqOp-0003hH-NK for 16577@debbugs.gnu.org; Wed, 23 Feb 2022 07:05:41 -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=2+/2Wf7brkfEunpTd5NiN3UMAfTBcluKyz912Eez5bo=; b=XbiwLC/C4AOwoEd/mgpe0PLK3X TUE7XMwFIyoDx3+ouMEoLAs7SVFdyVJ58mNv12YFdwXEbgtpaOz9RFxdVy/M8sIPvpAmd+79bRipl dVRw6nigrHRmG/yk4rJpedUw/PPUEHCqec8tRex19m0+UJjipzjbepCr4zNJK/6ESahA=; 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 1nMqOf-0001HJ-15; Wed, 23 Feb 2022 13:05:32 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEV9hLKztss+SZwk KmT///+HInAoAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+YCFwwBOfTDLlQAAAGcSURBVDjLhZSLseMw CEWRXgNyKsBQQaD/3vZesJz47c4smfFYOvzBEWk5fsn662aLLPOYZhbi9Qyj+FsOnAqY4KmzwLRT DijylFBLwAIyBy0APDw9E7YFVBqYQzkSIu0qbAP8MgwmHuWBMRogt2AUAsV5g8B7OcnK1vJ/gJfx AX4VCP0HQIodo0Erd0cK0P12zaKNhQKsAr7vQ1hn1ZE3YA0XmGxi5AdMAJ4IrMAVFKA1HoBjydm5 EWR+pem+013xAPmpY6ZO5VyxKzZ1ylQRxTzkfU481zrGmC+M7jUE76hjqKN+gkPnz2lrrAOahy5x ORU6Y6hBfYi8Fl0lExVVFRWDW5U1QVeiDralE72ycvYq6rrHcEsDXHG4Gfc9JrhusCWjtmSxzW3x zeiqBvAA3qAdPUAtHIH1nvzKqkF+A7d3AUa/Adc3fjYoi/xMhJvYWd096d3PrqNy6pZcMFk51Svn 3Ssm+ObM690rjHXLEhZH1Fe0N7tb1aAdWX9+tUzoawPPXfzl6Po+aLNjsNEb+AX8AnU6sRr//vf5 AxNqlRczdUN+AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTAyLTIzVDEyOjAxOjU3KzAwOjAwNFqC XwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wMi0yM1QxMjowMTo1NyswMDowMEUHOuMAAAAASUVO RK5CYII= X-Now-Playing: Cat Power's _Covers_: "It Wasn't God Who Made Honky Tonk Angels" In-Reply-To: (Stefan Monnier's message of "Tue, 22 Feb 2022 08:56:51 -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:227501 Archived-At: Stefan Monnier writes: > [ Not sure I'd bother with the non-regexp variable (other than having to > use \\. to match a dot, a regexp should work just as well). ] Well, the semantics for completion-ignored-files would be that they match on file names (i.e., the part after the last "/" if there's any slashes in there), which sounds like a pretty attractive thing, while completion-ignored-files would have no anchoring. completion-ignored-files could be regexps with anchoring, too, but then we'd have two regexp variables, which seems excessive again. :-/ > This is the best way long term, yes. We could mark > `completion-ignored-extensions` as obsolete and in a few years we're > back with a clean semantics and a simple variable. I like completion-ignored-extensions -- it's clear what it does and easy to alter both programmatically and for users. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no