From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.bugs Subject: bug#21164: 25.0.50; char-fold search broken for multi-line searches (sometimes) Date: Wed, 5 Aug 2015 19:16:22 +0100 Message-ID: References: <87zj2d6keq.fsf@secretsauce.net> <87twshqv9s.fsf@mail.linkov.net> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1438798641 26185 80.91.229.3 (5 Aug 2015 18:17:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Aug 2015 18:17:21 +0000 (UTC) Cc: Dima Kogan , 21164@debbugs.gnu.org To: Juri Linkov , emacs-devel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 05 20:17:14 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 1ZN3Fa-0000i2-Gq for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Aug 2015 20:17:14 +0200 Original-Received: from localhost ([::1]:41624 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZN3FZ-0003js-VI for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Aug 2015 14:17:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZN3FT-0003hn-RV for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 14:17:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZN3FO-00089U-TA for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 14:17:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZN3FO-00089P-QB for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 14:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZN3FO-00022I-H0 for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 14:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Aug 2015 18:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21164 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21164-submit@debbugs.gnu.org id=B21164.14387985867776 (code B ref 21164); Wed, 05 Aug 2015 18:17:02 +0000 Original-Received: (at 21164) by debbugs.gnu.org; 5 Aug 2015 18:16:26 +0000 Original-Received: from localhost ([127.0.0.1]:40331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZN3Eo-00021L-1l for submit@debbugs.gnu.org; Wed, 05 Aug 2015 14:16:26 -0400 Original-Received: from mail-la0-f41.google.com ([209.85.215.41]:34486) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZN3El-00021D-A0 for 21164@debbugs.gnu.org; Wed, 05 Aug 2015 14:16:23 -0400 Original-Received: by labow3 with SMTP id ow3so34272477lab.1 for <21164@debbugs.gnu.org>; Wed, 05 Aug 2015 11:16:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=BEMHYBgUa8LmONc+VOFtaDNwj1RbbxVsKM8u0NePSLc=; b=vvsw9gbKQu+sWOLXn0cr7ArMfz94GiFRv+XkLBtsVdupaRa7CsHkn4XV1gBEkkixDM 8pPEQlUQew9grQ0mujnmc7vEuZUaXW3zEMgQI+2jbXbvxovAutYnQdq0G2N3MkhYlSO4 LogebWZJywbPjLbXOdMqHgcm0bYqsjZwcGMT2Ey/YkZFSbwu1qIdOzlZwYCd9NIubp5M VjlqhOBOcggA89+KHSBTTqaiExUx17NKvEeCZ5C+1BxS9IHs32ALVAuXLgCceu+gSwbt LpT/eCraN+hWrWnQHX24L+fS/aa1+qvl39SsVeKQuRq3/e63kP2WPSZMmvYiY6ALE5BV 8qHQ== X-Received: by 10.112.145.169 with SMTP id sv9mr10453951lbb.73.1438798582526; Wed, 05 Aug 2015 11:16:22 -0700 (PDT) Original-Received: by 10.25.134.139 with HTTP; Wed, 5 Aug 2015 11:16:22 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: HSireo5eRLmDBVgKlYZYGMWmdS4 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: 140.186.70.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:105315 Archived-At: There is some logic in `isearch-search-fun-default' that I don't quite understand, and it's giving me trouble. The following expression is used to decide whether lax-whitespace matching should be used. ;; Use lax versions to not fail at the end of the word while ;; the user adds and removes characters in the search string ;; (or when using nonincremental word isearch) (let ((lax (not (or isearch-nonincremental (null (car isearch-cmds)) (eq (length isearch-string) (length (isearch--state-string (car isearch-cmds)))))))) ...) I don't understand the purpose of the last clause `(eq (...) (...))'. For me, the only effect that it has is to disable lax while isearch is looking for matches beyond the current one. For instance, here's what happens with me: 1. Type C-s SPC to start isearching for a space. 2. All of the clauses evaluate to nil, and the `isearch-word' function is called with LAX being t (all good). 3. Immediately (without me typing anything), isearch will start looking for the next match, but this time the last clause will evaluate to t. So the `isearch-word' function will be called with LAX being nil, and some of the upcoming matches will be missed. 4. Step 3 is repeated to find more matches, always with lax being nil.