From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#14013: 24.3.50; dired-isearch-filenames-regexp is matching text outside filenames Date: Sun, 12 Jun 2022 19:46:04 +0300 Organization: LINKOV.NET Message-ID: <86y1y1q183.fsf@mail.linkov.net> References: <87li9hk5e5.fsf@web.de> <87wqt1vd0o.fsf@mail.jurta.org> <87d2ut4mji.fsf@web.de> <87620lvavl.fsf@mail.jurta.org> <87zjxxsd6c.fsf@web.de> <87vc8ke4os.fsf@mail.jurta.org> <86zgmutwx9.fsf@mail.linkov.net> <87o83ab67d.fsf@web.de> <86r185520f.fsf@mail.linkov.net> <87czjn39yf.fsf@web.de> <86y2215rbn.fsf@mail.linkov.net> <87ee3tjecw.fsf@web.de> <87pmnap75m.fsf@web.de> <86mtha7y8w.fsf@mail.linkov.net> <877d8935sf.fsf@web.de> <861qygal8h.fsf@mail.linkov.net> <86pmlyqbfh.fsf@mail.linkov.net> <87pmjudoqz.fsf@web.de> <861qvw773e.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37269"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Stefan Monnier , 14013@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 12 18:47:37 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 1o0QkS-0009UR-C1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jun 2022 18:47:36 +0200 Original-Received: from localhost ([::1]:48222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0QkP-0005uf-SG for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jun 2022 12:47:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0Qju-0005uJ-Nh for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 12:47:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34288) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o0Qju-00035x-8K for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 12:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o0Qju-0005QJ-6S for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 12:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Jun 2022 16:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 14013-submit@debbugs.gnu.org id=B14013.165505240420815 (code B ref 14013); Sun, 12 Jun 2022 16:47:02 +0000 Original-Received: (at 14013) by debbugs.gnu.org; 12 Jun 2022 16:46:44 +0000 Original-Received: from localhost ([127.0.0.1]:56416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0Qjc-0005Pe-8N for submit@debbugs.gnu.org; Sun, 12 Jun 2022 12:46:44 -0400 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:57209) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0Qja-0005PN-Mf; Sun, 12 Jun 2022 12:46:43 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 172761BF206; Sun, 12 Jun 2022 16:46:33 +0000 (UTC) In-Reply-To: <861qvw773e.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 10 Jun 2022 20:17:25 +0300") 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:234366 Archived-At: close 14013 29.0.50 thanks >>> This works surprisingly well. Maybe there are more corner cases, >>> but something already works with quick tests: >> >> Yes, not bad indeed. Did you find any corner cases? > > Using a temporary buffer like you proposed works fine, > and handles all possible regexps including corner cases. > However, wouldn't this make the search too inefficient? Now the implementation that supports all cases is pushed. Thanks for all suggestions that helped to achieve this. Any ideas for more improvements are welcome.