From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#22043: 25.0.50; search-forward and char folding Date: Sun, 29 Nov 2015 12:41:16 -0800 (PST) Message-ID: References: <<15605.1448748702@allegro.localdomain>> <<17193.1448823812@allegro.localdomain>> <> <<837fl0obox.fsf@gnu.org>> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1448829744 19319 80.91.229.3 (29 Nov 2015 20:42:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 Nov 2015 20:42:24 +0000 (UTC) Cc: 22043@debbugs.gnu.org, m.kupfer@acm.org To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 29 21:42:06 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a38nN-0002MY-Ix for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Nov 2015 21:42:05 +0100 Original-Received: from localhost ([::1]:37653 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a38nR-0006Mo-J2 for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Nov 2015 15:42:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a38nN-0006Md-CY for bug-gnu-emacs@gnu.org; Sun, 29 Nov 2015 15:42:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a38nK-0003t6-2T for bug-gnu-emacs@gnu.org; Sun, 29 Nov 2015 15:42:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a38nJ-0003t2-V8 for bug-gnu-emacs@gnu.org; Sun, 29 Nov 2015 15:42:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a38nJ-0006pd-L5 for bug-gnu-emacs@gnu.org; Sun, 29 Nov 2015 15:42:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Nov 2015 20:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22043 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22043-submit@debbugs.gnu.org id=B22043.144882968826216 (code B ref 22043); Sun, 29 Nov 2015 20:42:01 +0000 Original-Received: (at 22043) by debbugs.gnu.org; 29 Nov 2015 20:41:28 +0000 Original-Received: from localhost ([127.0.0.1]:59782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a38ml-0006ol-L8 for submit@debbugs.gnu.org; Sun, 29 Nov 2015 15:41:28 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:20554) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a38mj-0006oc-4q for 22043@debbugs.gnu.org; Sun, 29 Nov 2015 15:41:25 -0500 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id tATKfJuN021882 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 29 Nov 2015 20:41:20 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id tATKfJ53027572 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 29 Nov 2015 20:41:19 GMT Original-Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id tATKfJHI012282; Sun, 29 Nov 2015 20:41:19 GMT In-Reply-To: <<837fl0obox.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109421 Archived-At: > > Isn't it correct and sufficient to say that non-regexp > > incrementalsearch uses character folding by default? >=20 > No, because "C-s RET" actually invokes a regexp search behind the > user's back when character folding or lax-whitespace are in effect, > and the user has no way of knowing whether it invoked a regexp or > non-regexp search. >=20 > > IOW, isn't this default behavior true for all incremental > > search commands except regexp search, and only for those > > commands (no non-incremental search commands)? >=20 > No. Nonincremental vs incremental is not the issue. The issue is > whether the search function that the command employs uses regexps or > not. It is a limitation of how these features are implemented that > they absolutely require regexp search. OK, but from a user point of view, is this not the case: 1. S?he invokes search using `C-M-s' or `C-s', which are advertised as regexp and plain (non regexp) search. IOW, regardless of what might go on under the covers (and a lot already does, for lax whitespace searching), s?he thinks of `C-s' as performing a non-regexp search. 2. There is no character folding with the "regexp" commands (`C-M-s'), because char folding substitutes its own regexp for the user input, and char folding does not currently parse regexp-pattern user input. Perhaps, to be more precise, the difference is search that does or does not accept general regexp patterns as _input_. Those that do have "regexp" (or "-re-"?) in their name; those that do not do not have it. The former do not support char folding; the latter do. Is that correct (and complete)? I guess I was mistaken in thinking that non-incremental search commands, such as `nonincremental-search-forward', do not support char folding (regardless of whether they include "-re" in their name). Which ones support it, and under what circumstances?