From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.ciao.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34150: 26.1; Document filtering with `isearch-filter-predicate' in Elisp manual Date: Mon, 21 Jan 2019 20:27:29 +0200 Message-ID: <83h8e1amsu.fsf@gnu.org> References: <8c207ca2-39ae-4ec1-acbd-358165964319@default> <83o98a9e2l.fsf@gnu.org> <8c88ff94-e322-4754-b74a-c792512ec277@default> Injection-Info: ciao.gmane.org; posting-host="ciao.gmane.org:195.159.176.228"; logging-data="132491"; mail-complaints-to="usenet@ciao.gmane.org" Cc: 34150@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 21 19:53:52 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1glehe-000YD7-1G for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jan 2019 19:53:46 +0100 Original-Received: from localhost ([127.0.0.1]:57965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gleaL-0004zC-W8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jan 2019 13:46:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gleIl-0005Jn-CQ for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 13:28:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gleIk-0006TF-H5 for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 13:28:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41145) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gleIk-0006TA-Dv for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 13:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gleIk-0004WR-7W for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 13:28: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: Mon, 21 Jan 2019 18:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34150 X-GNU-PR-Package: emacs Original-Received: via spool by 34150-submit@debbugs.gnu.org id=B34150.154809527517369 (code B ref 34150); Mon, 21 Jan 2019 18:28:02 +0000 Original-Received: (at 34150) by debbugs.gnu.org; 21 Jan 2019 18:27:55 +0000 Original-Received: from localhost ([127.0.0.1]:40426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gleIc-0004W5-KG for submit@debbugs.gnu.org; Mon, 21 Jan 2019 13:27:54 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gleIa-0004Vr-6k for 34150@debbugs.gnu.org; Mon, 21 Jan 2019 13:27:52 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42342) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gleIT-0006JO-7B; Mon, 21 Jan 2019 13:27:45 -0500 Original-Received: from [176.228.60.248] (port=1611 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gleIR-0007K7-JP; Mon, 21 Jan 2019 13:27:44 -0500 In-reply-to: <8c88ff94-e322-4754-b74a-c792512ec277@default> (message from Drew Adams on Mon, 21 Jan 2019 10:18:23 -0800 (PST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:154648 Archived-At: > Date: Mon, 21 Jan 2019 10:18:23 -0800 (PST) > From: Drew Adams > Cc: 34150-done@debbugs.gnu.org > > > I don't see why the doc string shouldn't be enough. This is a quite > > obscure feature, so I don't think it warrants to be described in the > > manual. > > I disagree that it is obscure - or that it should be, > at least. ??? Most searches don't need any filtering at all. > > I modified the doc string to mention Isearch and replace commands. > > Thanks. And non-command functions such as `re-search-forward'? Not primitives, no. This is a Lisp-only (application-level) feature. > > > One thing that it would also be good to make extra clear is that > > > filtering takes place _after_ input matching; it is not part of > > > matching. > > > > How can it be part of matching, if the filter needs to be passed the > > limits of the matched text? > > No one contests that impossibility. > > But it and its consequences are not necessarily > obvious - especially to a user searching, as opposed > to a programmer writing a filter predicate. This is not a user-level facility, so the user perspective is not relevant.