From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#21208: 25.0.50; isearch gets confused with 'too many words' Date: Fri, 04 Sep 2015 01:27:30 +0300 Organization: LINKOV.NET Message-ID: <8737yvm94d.fsf@mail.linkov.net> References: <87wpx75r6j.fsf@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1441319542 17730 80.91.229.3 (3 Sep 2015 22:32:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Sep 2015 22:32:22 +0000 (UTC) Cc: 21208@debbugs.gnu.org To: Dima Kogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 04 00:32:10 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 1ZXd3C-0003Kv-0Q for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Sep 2015 00:32:10 +0200 Original-Received: from localhost ([::1]:52333 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXd3C-00008c-1p for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Sep 2015 18:32:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXd37-00008B-NV for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2015 18:32:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXd34-0007q5-HR for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2015 18:32:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXd34-0007q1-Eg for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2015 18:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZXd33-0001bN-UU for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2015 18:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Sep 2015 22:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21208 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21208-submit@debbugs.gnu.org id=B21208.14413195056094 (code B ref 21208); Thu, 03 Sep 2015 22:32:01 +0000 Original-Received: (at 21208) by debbugs.gnu.org; 3 Sep 2015 22:31:45 +0000 Original-Received: from localhost ([127.0.0.1]:48000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXd2m-0001aD-Vy for submit@debbugs.gnu.org; Thu, 03 Sep 2015 18:31:45 -0400 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:37870 helo=homiemail-a11.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXd2k-0001Zk-KS for 21208@debbugs.gnu.org; Thu, 03 Sep 2015 18:31:43 -0400 Original-Received: from homiemail-a11.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a11.g.dreamhost.com (Postfix) with ESMTP id 0C4AB6E075; Thu, 3 Sep 2015 15:31:36 -0700 (PDT) Original-Received: from localhost.linkov.net (m212-53-123-180.cust.tele2.ee [212.53.123.180]) (Authenticated sender: jurta@jurta.org) by homiemail-a11.g.dreamhost.com (Postfix) with ESMTPA id 146456E072; Thu, 3 Sep 2015 15:31:34 -0700 (PDT) In-Reply-To: <87wpx75r6j.fsf@secretsauce.net> (Dima Kogan's message of "Fri, 07 Aug 2015 03:27:48 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) 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:106133 Archived-At: > 6. Eventually (column 239 or so) the minibuffer says 'too many words', > and the search no longer matches anything on either line. The sought > string looks like it's appending words without spaces ("123412341234" > instead of "1234 1234 1234"). Manually fixing that with M-e doesn't > appear to help. A possible solution in case of the error =E2=80=9CToo many words=E2=80=9D= is to fall back to the ordinary search, and continue the search with success: diff --git a/lisp/isearch.el b/lisp/isearch.el index 8d4bf24..a888f79 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -2720,6 +2734,10 @@ (defun isearch-search () ((and (not isearch-regexp) (string-match "\\`Regular expression too big" isearch-error)) (cond + ((eq isearch-word #'character-fold-to-regexp) + ;; Fallback to an ordinary search + (setq isearch-word nil) + (isearch-search)) (isearch-word (setq isearch-error "Too many words")) ((and isearch-lax-whitespace search-whitespace-regexp)