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: Sat, 05 Dec 2015 19:32:17 +0200 Message-ID: <8337vgg5su.fsf@gnu.org> References: <20151204192126.73199.qmail@mail.muc.de> <20151204230000.GC6070@acm.fritz.box> 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 1449336805 6493 80.91.229.3 (5 Dec 2015 17:33:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Dec 2015 17:33:25 +0000 (UTC) Cc: 22090@debbugs.gnu.org, acm@muc.de To: bruce.connor.am@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 05 18:33:11 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 1a5Ghp-0006ju-LF for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2015 18:33:09 +0100 Original-Received: from localhost ([::1]:47282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5Gho-0003xG-PE for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2015 12:33:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5Ghm-0003x7-9f for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 12:33:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5Ghj-0000Af-33 for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 12:33:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5Ghi-0000Aa-W7 for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 12:33:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a5Ghi-0000QK-De for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 12:33: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: Sat, 05 Dec 2015 17:33: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.14493367691607 (code B ref 22090); Sat, 05 Dec 2015 17:33:02 +0000 Original-Received: (at 22090) by debbugs.gnu.org; 5 Dec 2015 17:32:49 +0000 Original-Received: from localhost ([127.0.0.1]:40048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5GhU-0000Pr-MB for submit@debbugs.gnu.org; Sat, 05 Dec 2015 12:32:48 -0500 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:33240) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5GhA-0000PJ-8j for 22090@debbugs.gnu.org; Sat, 05 Dec 2015 12:32:47 -0500 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NYW00J00AMNBN00@mtaout25.012.net.il> for 22090@debbugs.gnu.org; Sat, 05 Dec 2015 19:29:29 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYW00AIEB955OF0@mtaout25.012.net.il>; Sat, 05 Dec 2015 19:29:29 +0200 (IST) In-reply-to: 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:109658 Archived-At: > Date: Sat, 5 Dec 2015 17:23:53 +0000 > From: Artur Malabarba > Cc: 22090@debbugs.gnu.org > > nn2015-12-04 23:00 GMT+00:00 Alan Mackenzie : > >> When case-fold-search is on the previous code would simply join these > >> regexps with "\\(\\(a[Β΄`]?\\|[Γ‘Γ π‘Ž]\\)\\|\\(A[`Β΄]?\\|[ÁÀ]\\)\\)". > > > > Quick question: _why_ do you need to join them? Given that > > case-fold-search is enabled, couldn't you just use, say, the lower case > > version? > > Because there are some characters in each regexp that don't have > lower/upper-case equivalents. For instance, if I use the > "\\(\\(a[Β΄`]?\\|[Γ‘Γ π‘Ž]\\)" regexp, that's enough to match A or Γ€, but > it's not enough to match a variety of other chars (π”Έπ•¬π– π—”π˜ˆπ˜Όπ™°πŸ„°). You don't need to match the latter set. Character folding is applied _after_ case folding, not before. So characters that don't have a lower-case variant simply shouldn't match a lower-case a -- and they won't, if you just let case-insensitive regexp matching do its job.