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#69542: Feature request: making occur obey isearch-filter-predicate Date: Wed, 06 Mar 2024 19:47:50 +0200 Organization: LINKOV.NET Message-ID: <86plw7xp5t.fsf@mail.linkov.net> References: <6071eb9a-fa15-45fb-9917-7a35c7556680@medialab.sissa.it> <86msrdnjdn.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="553"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 69542@debbugs.gnu.org To: Gabriele Nicolardi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 06 18:49:56 2024 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 1rhvOt-000AXo-Lg for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Mar 2024 18:49:55 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhvOb-0007xe-31; Wed, 06 Mar 2024 12:49:37 -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 1rhvOV-0007vs-Fi for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2024 12:49:31 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rhvOV-0005gz-7J for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2024 12:49:31 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rhvP0-0005F5-4Q for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2024 12:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Mar 2024 17:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69542 X-GNU-PR-Package: emacs Original-Received: via spool by 69542-submit@debbugs.gnu.org id=B69542.170974739020118 (code B ref 69542); Wed, 06 Mar 2024 17:50:02 +0000 Original-Received: (at 69542) by debbugs.gnu.org; 6 Mar 2024 17:49:50 +0000 Original-Received: from localhost ([127.0.0.1]:51353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhvOo-0005EI-0T for submit@debbugs.gnu.org; Wed, 06 Mar 2024 12:49:50 -0500 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:50427) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhvOn-0005DO-0F for 69542@debbugs.gnu.org; Wed, 06 Mar 2024 12:49:49 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id DF0B1E0009; Wed, 6 Mar 2024 17:48:51 +0000 (UTC) In-Reply-To: (Gabriele Nicolardi's message of "Tue, 5 Mar 2024 18:11:37 +0100") X-GND-Sasl: juri@linkov.net 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:281120 Archived-At: > An alternative would be to add a new variable > 're-search-forward-function' and then to use it like > '(funcall re-search-forward-function)'. > > The idea of a new function seems good to me. Indeed, and this will require only a simple change in 'how-many' and other functions to replace such calls (re-search-forward regexp rend t) with (funcall re-search-forward-function regexp rend t)