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.bugs Subject: bug#60562: [PATCH] Fix split-string error if there is a space in the filename. Date: Sat, 07 Jan 2023 12:48:24 +0200 Message-ID: <83wn5ysjrb.fsf@gnu.org> References: <87zgawgfic.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13768"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60562@debbugs.gnu.org, rpluim@gmail.com To: lux Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 07 11:49:21 2023 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 1pE6lN-0003MP-Ij for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Jan 2023 11:49:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pE6l9-0002nI-OE; Sat, 07 Jan 2023 05:49:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pE6l4-0002mn-Tz for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2023 05:49:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pE6l4-00041f-JB for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2023 05:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pE6l4-0003TH-8h for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2023 05:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Jan 2023 10:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60562 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 60562-submit@debbugs.gnu.org id=B60562.167308849513252 (code B ref 60562); Sat, 07 Jan 2023 10:49:02 +0000 Original-Received: (at 60562) by debbugs.gnu.org; 7 Jan 2023 10:48:15 +0000 Original-Received: from localhost ([127.0.0.1]:56532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pE6kJ-0003Rf-3U for submit@debbugs.gnu.org; Sat, 07 Jan 2023 05:48:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pE6kH-0003Qz-B1 for 60562@debbugs.gnu.org; Sat, 07 Jan 2023 05:48:14 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pE6kA-0003x8-MI; Sat, 07 Jan 2023 05:48:06 -0500 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=fI9lWfTsVEIU9Yp0EDDz2rGq+69jlwzuAHbbFEcWFz0=; b=EE1QgGgv4sPB 3HStV2cGnNoxZlRcaaaaAFG8sxmBl7i1P5uEoy5YCv01KkzEaZRWhZDrurfmyfH81RetFE/Qj3ar/ SMThVdxW+fcr2PtNHVJFQzbOp6u5EpWdRukx2kt2jWBHeL7Z7Wcfk0+sjhV+2abZmcoYg+jsgm7H0 6K1cwMehYm++le6Hy+h551zpU0OBE6sSHRGURF28XtNqNUvin7s/AFp4zv7Zmjeajp8A1vAcbEwt8 1TJ1YURJHgDDexZrI83+m9u259chpmTrbCr/GQ2MSTanmCbsbqfy6LnVXZ5wFVw+xAarY+zIVPS4j vgrQnMib/DXjOwmO4jAHHw==; Original-Received: from [87.69.77.57] (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 1pE6k7-0005FP-Up; Sat, 07 Jan 2023 05:48:04 -0500 In-Reply-To: (message from lux on Sat, 7 Jan 2023 17:42:35 +0800) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:252781 Archived-At: > Cc: 60562@debbugs.gnu.org > Date: Sat, 7 Jan 2023 17:42:35 +0800 > From: lux > > On Fri, 06 Jan 2023 10:48:43 +0100 > Robert Pluim wrote: > > > You can avoid the issue (and improve portability) by using > > `directory-files-recursively' instead of `find' > > But `hfy-find-cmd' is a configurable variable: > > (defcustom hfy-find-cmd > "find . -type f \\! -name \\*~ \\! -name \\*.flc \\! -path > \\*/CVS/\\*" "Find command used to harvest a list of files to attempt > to fontify." :tag "find-command" > :type '(string)) We can convert that to a customizable regexp, and maybe to a predicate function if a simple regexp won't do. > I don't know if using `directory-files-recursively' has other effects. Why would that bother us? This is used to find the files under a given directory, avoiding some files which we know will not be wanted.