From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22090: Isearch is sluggish and eventually refuses further service with "[Too many words]". Date: Fri, 04 Dec 2015 22:08:48 +0200 Message-ID: <83wpsuf033.fsf@gnu.org> References: <20151204042052.GA1965@acm.fritz.box> <20151204192126.73199.qmail@mail.muc.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1449259826 19745 80.91.229.3 (4 Dec 2015 20:10:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Dec 2015 20:10:26 +0000 (UTC) Cc: 22090@debbugs.gnu.org, bruce.connor.am@gmail.com To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 04 21:10:15 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 1a4wgH-0004lJ-RE for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Dec 2015 21:10:13 +0100 Original-Received: from localhost ([::1]:43231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4wgH-0005pq-BU for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Dec 2015 15:10:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4wgA-0005mB-In for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 15:10:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4wg7-0007ot-A1 for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 15:10:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4wg7-0007on-6k for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 15:10:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a4wg6-0006Vn-M0 for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 15:10: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: Fri, 04 Dec 2015 20:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22090 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22090-submit@debbugs.gnu.org id=B22090.144925974424958 (code B ref 22090); Fri, 04 Dec 2015 20:10:02 +0000 Original-Received: (at 22090) by debbugs.gnu.org; 4 Dec 2015 20:09:04 +0000 Original-Received: from localhost ([127.0.0.1]:39421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4wf9-0006UT-Qr for submit@debbugs.gnu.org; Fri, 04 Dec 2015 15:09:04 -0500 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:49526) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4wf7-0006U3-Ma for 22090@debbugs.gnu.org; Fri, 04 Dec 2015 15:09:02 -0500 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NYU00M00NOON000@mtaout28.012.net.il> for 22090@debbugs.gnu.org; Fri, 04 Dec 2015 22:08:05 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYU00BGPNXH9RF0@mtaout28.012.net.il>; Fri, 04 Dec 2015 22:08:05 +0200 (IST) In-reply-to: <20151204192126.73199.qmail@mail.muc.de> X-012-Sender: halo1@inter.net.il 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:109622 Archived-At: > Date: 4 Dec 2015 19:21:26 -0000 > From: Alan Mackenzie > Cc: 22090@debbugs.gnu.org > > > (character-fold-to-regexp): Remove special code for > > case-folding. Char-fold search still respects the > > `case-fold-search' variable (i.e., f matches F). This only > > removes the code that was added to ensure that f also matched > > all chars that F matched. For instance, after this commit, f > > no longer matches 𝔽. > > > This was necessary because the logic created a regexp with > > 2^(length of the string) redundant paths. So, when a very > > long string "almost" matched, Emacs took a very long time to > > figure out that it didn't. This became particularly relevant > > because isearch's lazy-highlight does a search bounded by (1- > > match-end) (which, in most circumstances, is a search that > > almost matches). A recipe for this can be found in bug#22090. > > Would you like any help to sort out these regexps? I'm not sure the use cases related to case folding should be working in principle. That's because normalization under case folding means first downcase, then decompose; it is not allowed to downcase the decomposition. So if this issue is only about those, I don't think there's anything to sort out here, thanks.