From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Globbing file name match function? Date: Sun, 05 Jun 2022 14:29:47 +0300 Message-ID: <83ilpf9wlw.fsf@gnu.org> References: <87bkv75prr.fsf@gnus.org> <83k09v9wwx.fsf@gnu.org> <877d5v5p3m.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20360"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 05 13:37:56 2022 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 1nxoZw-00056Y-Gh for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Jun 2022 13:37:56 +0200 Original-Received: from localhost ([::1]:49160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nxoZt-0003WZ-15 for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Jun 2022 07:37:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxoSH-0001i9-5o for emacs-devel@gnu.org; Sun, 05 Jun 2022 07:30:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41916) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxoSG-0000tS-Qe; Sun, 05 Jun 2022 07:30:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=UI5jfjb+9zpVuKR6m8+ojM+eqEakicIgLR3DvMgLkzk=; b=LCnKV/CqoDll ygXb7iRm4LWL7leSbSMR8ScMw88lcnXMT1dGhbng8n74GZCHfP8dAhijNT5vZeEReUCbwK5XDiN9B c04WYYesEE3ny986DZ/yLGkEwEla1rROozO9Gs6RFXBa2QEvqEvKFY4TfsoRKExuxU3URcftco8bh 58j7ComqmHAaUq9IaIbHRqK+hpJOYIwysU5ckkCrAwsn3Cbgx6JLbFTCglR+iigkorm6bdLVjwmGB t+NJR8uD3H3GHGs4f721iy0UgX+tdD0ZwknXV+qJZ205wCqr/9O12Dg5UCFASi4x/aAsGirBaoqnt e0RTQkIsG+1YBVJitupjMQ==; Original-Received: from [87.69.77.57] (port=2486 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxoSG-0007iM-61; Sun, 05 Jun 2022 07:30:00 -0400 In-Reply-To: <877d5v5p3m.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 05 Jun 2022 13:25:33 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:290693 Archived-At: > From: Lars Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Sun, 05 Jun 2022 13:25:33 +0200 > > Eli Zaretskii writes: > > > Do you mean specifically a wildcard in the middle of a file name, > > which stands for matching subdirectories? > > Yes. The leaf part matching is covered by directory-files well enough. But what glob does is recursively find each wildcard, expand it, then go deeper and repeat. So it should be possible to do the same based on directory-files, I think?