From unknown Sun Jun 22 17:17:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21164: 25.0.50; char-fold search broken for multi-line searches (sometimes) Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 Jul 2015 04:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21164 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 21164@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.143831546615567 (code B ref -1); Fri, 31 Jul 2015 04:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 31 Jul 2015 04:04:26 +0000 Received: from localhost ([127.0.0.1]:35322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZL1YX-000431-SR for submit@debbugs.gnu.org; Fri, 31 Jul 2015 00:04:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60023) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZL1YV-00042s-VW for submit@debbugs.gnu.org; Fri, 31 Jul 2015 00:04:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZL1YU-0003Ff-Sm for submit@debbugs.gnu.org; Fri, 31 Jul 2015 00:04:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:32781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZL1YU-0003Fb-PT for submit@debbugs.gnu.org; Fri, 31 Jul 2015 00:04:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZL1YT-0002PI-FV for bug-gnu-emacs@gnu.org; Fri, 31 Jul 2015 00:04:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZL1YO-0003El-H1 for bug-gnu-emacs@gnu.org; Fri, 31 Jul 2015 00:04:21 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:59525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZL1YO-0003EW-BR for bug-gnu-emacs@gnu.org; Fri, 31 Jul 2015 00:04:16 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 25716201D0 for ; Fri, 31 Jul 2015 00:04:15 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Fri, 31 Jul 2015 00:04:15 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=content-type:date:from:message-id:mime-version:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=MQyOZwYO8+yASwFV+VAxHJI6PyI =; b=C7iDHdpMWGNYrtF8a1L3lqxa+noRP8xOhHDee0GHE8ru1tIgCZEwBnYEKX3 dEgr9Zjrkdr+WEtDHLNlqTNe27R1+YTuIT7vALFG9seH/B7c/WorEovoYkNV58yU Q3Eyv3U6PZgaB7Smd5liXvQz9CukQCu5Aj+7HJk9/B4+0OME= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=MQ yOZwYO8+yASwFV+VAxHJI6PyI=; b=M0+EHUaZHADEu0ERhitIS72j8qIMuAr8AX dPQySf0PgDJtBfHkRAOswgCDpOlN96UIwMCI9zODjznsI4n28ePYnaFKKxT/kRM4 h34SYdPN9EWxktl0K7sM+WLOtuIyQZlONkgGa8bO6Lxv3wbHNmae9QNNIcJgAEkD pqvlPJ5mQ= X-Sasl-enc: aRKfmklfHaGaLt7p0xYcie5kVxHfsmMU+Na5BzcV2z8g 1438315454 Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id C8B026800ED for ; Fri, 31 Jul 2015 00:04:14 -0400 (EDT) Received: from ip6-localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1ZL1a9-0007S9-LX for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2015 21:06:05 -0700 From: Dima Kogan Date: Thu, 30 Jul 2015 21:06:05 -0700 Message-ID: <87zj2d6keq.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi. I'm using a very recent emacs built from the git HEAD. Sometime in the recent past the default C-s behavior was changed to include char-folding by default. There's a bug here. Suppose I have a buffer containing the following C source. ---------------------------------------------------- int a(void) { for(unsigned long x = 0; x < 10; x += 2) { nvm_flash_erase_app_page( x ); } } int b(void) { for(unsigned long x = 0; x < 10; x += 2) { } } ---------------------------------------------------- Note that the two functions are identical. I place the point at the start of one of the 'for' statements, then C-s to enter char-folding isearch, then C-w to grab some amount of text to search for. While I'm grabbing text that's still on the 'for' line, isearch sees the other match, highlights it, and I can jump to it by hitting C-s. However, if I hit C-w enough times to go to the next line, the other match is no longer seen. This resolves when I turn off char-folding. From unknown Sun Jun 22 17:17:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21164: 25.0.50; char-fold search broken for multi-line searches (sometimes) Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Aug 2015 20:43: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: To: Dima Kogan Cc: 21164@debbugs.gnu.org Received: via spool by 21164-submit@debbugs.gnu.org id=B21164.143854813428831 (code B ref 21164); Sun, 02 Aug 2015 20:43:02 +0000 Received: (at 21164) by debbugs.gnu.org; 2 Aug 2015 20:42:14 +0000 Received: from localhost ([127.0.0.1]:37519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZM05F-0007Ux-IU for submit@debbugs.gnu.org; Sun, 02 Aug 2015 16:42:13 -0400 Received: from sub3.mail.dreamhost.com ([69.163.253.7]:51051 helo=homiemail-a13.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZM05C-0007Uf-FL for 21164@debbugs.gnu.org; Sun, 02 Aug 2015 16:42:10 -0400 Received: from homiemail-a13.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a13.g.dreamhost.com (Postfix) with ESMTP id 01EAF33406F; Sun, 2 Aug 2015 13:42:10 -0700 (PDT) Received: from localhost.linkov.net (m83-191-198-229.cust.tele2.ee [83.191.198.229]) (Authenticated sender: jurta@jurta.org) by homiemail-a13.g.dreamhost.com (Postfix) with ESMTPA id EFCE933406C; Sun, 2 Aug 2015 13:42:08 -0700 (PDT) From: Juri Linkov Organization: LINKOV.NET References: <87zj2d6keq.fsf@secretsauce.net> Date: Sun, 02 Aug 2015 23:40:15 +0300 In-Reply-To: <87zj2d6keq.fsf@secretsauce.net> (Dima Kogan's message of "Thu, 30 Jul 2015 21:06:05 -0700") Message-ID: <87twshqv9s.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > Hi. I'm using a very recent emacs built from the git HEAD. Sometime in > the recent past the default C-s behavior was changed to include > char-folding by default. There's a bug here. Suppose I have a buffer > containing the following C source. > > ---------------------------------------------------- > int a(void) > { > for(unsigned long x = 0; > x < 10; > x += 2) > { > nvm_flash_erase_app_page( x ); > } > } > > int b(void) > { > for(unsigned long x = 0; > x < 10; > x += 2) > { > } > } > ---------------------------------------------------- > > > Note that the two functions are identical. I place the point at the > start of one of the 'for' statements, then C-s to enter char-folding > isearch, then C-w to grab some amount of text to search for. While I'm > grabbing text that's still on the 'for' line, isearch sees the other > match, highlights it, and I can jump to it by hitting C-s. However, if I > hit C-w enough times to go to the next line, the other match is no > longer seen. This resolves when I turn off char-folding. Thank you for the bug report. This can be fixed by a small patch: diff --git a/lisp/character-fold.el b/lisp/character-fold.el index bf5ae59..db77845 100644 --- a/lisp/character-fold.el +++ b/lisp/character-fold.el @@ -123,7 +123,7 @@ (defun character-fold-to-regexp (string &optional lax) (apply #'concat (mapcar (lambda (c) (let ((out (or (aref character-fold-table c) (regexp-quote (string c))))) - (if (and lax (memq c '(?\s ?\t ?\r ?\n ))) + (if (memq c '(?\s ?\t ?\r ?\n )) (concat out "+") out))) string)) Later we could also see how to handle both lax-at-the-end-of-the-search-string and lax-a-sequence-of-whitespace-chars. Maybe something like: diff --git a/lisp/isearch.el b/lisp/isearch.el index 8d4bf24..74b7e56 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -2613,7 +2613,11 @@ (defun isearch-search-fun-default () (length (isearch--state-string (car isearch-cmds)))))))) (funcall - (if isearch-forward #'re-search-forward #'re-search-backward) + (if (and isearch-lax-whitespace search-whitespace-regexp) + (if isearch-forward + 're-search-forward-lax-whitespace + 're-search-backward-lax-whitespace) + (if isearch-forward #'re-search-forward #'re-search-backward)) (if (functionp isearch-word) (funcall isearch-word string lax) (word-search-regexp string lax)) From unknown Sun Jun 22 17:17:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21164: 25.0.50; char-fold search broken for multi-line searches (sometimes) Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Aug 2015 17:21: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: To: Juri Linkov Cc: Dima Kogan , 21164@debbugs.gnu.org Reply-To: bruce.connor.am@gmail.com Received: via spool by 21164-submit@debbugs.gnu.org id=B21164.14387952442553 (code B ref 21164); Wed, 05 Aug 2015 17:21:02 +0000 Received: (at 21164) by debbugs.gnu.org; 5 Aug 2015 17:20:44 +0000 Received: from localhost ([127.0.0.1]:40307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZN2Mt-0000f7-QO for submit@debbugs.gnu.org; Wed, 05 Aug 2015 13:20:44 -0400 Received: from mail-lb0-f175.google.com ([209.85.217.175]:33433) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZN2Mq-0000ey-Gr for 21164@debbugs.gnu.org; Wed, 05 Aug 2015 13:20:41 -0400 Received: by lbbyj8 with SMTP id yj8so28412848lbb.0 for <21164@debbugs.gnu.org>; Wed, 05 Aug 2015 10:20:39 -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=UD5WxFnI7W0xmk1SAWEMmLGa6QfVDXjdq2Vjxs6JslU=; b=RWrgrqqZdswZnaBtSdnVKaVlCSKEan7/9frcnMKzWf3QIrjMocDPiw1SF1sxFxB68B ae5NtbDiNlgfgfwe80ZMOgi6UWH2flIe1j87QrSmrTBh9fFXJDjIVG+QBMechjas0viX X7EMtd7i2FrX3sCbxD4hZVmfFh+2J70H4gZd/nUQrTKLJgBhdSY9HWOJ6SNZfVoH6DGp G58eWC8pfxzOEtXQs7XTLyEbkrLutprPZfIxMRrgIxfJAQyCqzeziiasoDVMj9hK/Kop K40nsV66CGMCtYOvbdekEVyHUWWRDodkwjLmyICbyDD57kYOBBm7dppXPRLyhaa9MVK+ MeEA== MIME-Version: 1.0 X-Received: by 10.153.7.137 with SMTP id dc9mr10142739lad.16.1438795239700; Wed, 05 Aug 2015 10:20:39 -0700 (PDT) Received: by 10.25.134.139 with HTTP; Wed, 5 Aug 2015 10:20:39 -0700 (PDT) In-Reply-To: <87twshqv9s.fsf@mail.linkov.net> References: <87zj2d6keq.fsf@secretsauce.net> <87twshqv9s.fsf@mail.linkov.net> Date: Wed, 5 Aug 2015 18:20:39 +0100 X-Google-Sender-Auth: rSfANuvPF3negMhOJsUiLpwJ68E Message-ID: From: Artur Malabarba Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > Thank you for the bug report. This can be fixed by a small patch: > > diff --git a/lisp/character-fold.el b/lisp/character-fold.el > index bf5ae59..db77845 100644 > --- a/lisp/character-fold.el > +++ b/lisp/character-fold.el > @@ -123,7 +123,7 @@ (defun character-fold-to-regexp (string &optional lax) > (apply #'concat > (mapcar (lambda (c) (let ((out (or (aref character-fold-table c) > (regexp-quote (string c))))) > - (if (and lax (memq c '(?\s ?\t ?\r ?\n ))) > + (if (memq c '(?\s ?\t ?\r ?\n )) Before applying this, I'd like to figure out why lax is nil here. IIUC, it is supposed to be t whenever isearch-lax-whitespace is non-nil. When I test use-case in the bug report I get that this function is immediately invoked 3 times. And lax is t in the first, but nil in the following two. From unknown Sun Jun 22 17:17:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21164: 25.0.50; char-fold search broken for multi-line searches (sometimes) 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: To: Juri Linkov , emacs-devel Cc: Dima Kogan , 21164@debbugs.gnu.org Reply-To: bruce.connor.am@gmail.com Received: via spool by 21164-submit@debbugs.gnu.org id=B21164.14387985867776 (code B ref 21164); Wed, 05 Aug 2015 18:17:02 +0000 Received: (at 21164) by debbugs.gnu.org; 5 Aug 2015 18:16:26 +0000 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 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 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== MIME-Version: 1.0 X-Received: by 10.112.145.169 with SMTP id sv9mr10453951lbb.73.1438798582526; Wed, 05 Aug 2015 11:16:22 -0700 (PDT) Received: by 10.25.134.139 with HTTP; Wed, 5 Aug 2015 11:16:22 -0700 (PDT) In-Reply-To: References: <87zj2d6keq.fsf@secretsauce.net> <87twshqv9s.fsf@mail.linkov.net> Date: Wed, 5 Aug 2015 19:16:22 +0100 X-Google-Sender-Auth: HSireo5eRLmDBVgKlYZYGMWmdS4 Message-ID: From: Artur Malabarba Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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. From unknown Sun Jun 22 17:17:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21164: 25.0.50; char-fold search broken for multi-line searches (sometimes) Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Aug 2015 09:01: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: To: Juri Linkov Cc: Dima Kogan , 21164@debbugs.gnu.org Reply-To: bruce.connor.am@gmail.com Received: via spool by 21164-submit@debbugs.gnu.org id=B21164.143911083417702 (code B ref 21164); Sun, 09 Aug 2015 09:01:02 +0000 Received: (at 21164) by debbugs.gnu.org; 9 Aug 2015 09:00:34 +0000 Received: from localhost ([127.0.0.1]:50972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOMT4-0004bR-0P for submit@debbugs.gnu.org; Sun, 09 Aug 2015 05:00:34 -0400 Received: from mail-la0-f50.google.com ([209.85.215.50]:35132) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOMT2-0004bJ-3q for 21164@debbugs.gnu.org; Sun, 09 Aug 2015 05:00:32 -0400 Received: by lahi9 with SMTP id i9so10271352lah.2 for <21164@debbugs.gnu.org>; Sun, 09 Aug 2015 02:00:31 -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=HIP7EO0AkeDekfZC3B5gBS5NxgW4N63nyMju8g/pVck=; b=DJZxstxsj7iYaFkh536grcjqL3NzLiv5kohiMof319L/fDA55J0tbIzk9kL2rVBLKb 6y7G7mH1kF29cVaZlICp1x4Lu8z6qUdDePOiwQUc6019I24L9UhzmKy4ZyAmv4MtFf5d OOV+4luPRiMf7+KCEdo+rWt42TrzswcMKy0N6fRGLZfKyBbH/crAhbg2dBTL/uyGZ7tM jw5ab6B2slyFFzA73zTZn1AIiGXwmuyUxdB4V44H+Y6V9wwr05HV6QQhbnRRLldyl4gl U7ZjG3DTd3lPANUjHCQFm2jMJlKHE1iRxPGizWI1pAzo+VcV0vyeMkmCHbsjJ4qXEp3l /s9w== MIME-Version: 1.0 X-Received: by 10.112.145.169 with SMTP id sv9mr15723932lbb.73.1439110831124; Sun, 09 Aug 2015 02:00:31 -0700 (PDT) Received: by 10.25.134.139 with HTTP; Sun, 9 Aug 2015 02:00:31 -0700 (PDT) In-Reply-To: References: <87zj2d6keq.fsf@secretsauce.net> <87twshqv9s.fsf@mail.linkov.net> Date: Sun, 9 Aug 2015 10:00:31 +0100 X-Google-Sender-Auth: CPcy_pla26kn7sS7Ao6cJLNynY0 Message-ID: From: Artur Malabarba Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) I just pushed commit a5bdb87 which should fix this. Dima, could you confirm that it solves your issue? From unknown Sun Jun 22 17:17:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21164: 25.0.50; char-fold search broken for multi-line searches (sometimes) Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Aug 2015 22:47:01 +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: To: 21164@debbugs.gnu.org Received: via spool by 21164-submit@debbugs.gnu.org id=B21164.143950597430304 (code B ref 21164); Thu, 13 Aug 2015 22:47:01 +0000 Received: (at 21164) by debbugs.gnu.org; 13 Aug 2015 22:46:14 +0000 Received: from localhost ([127.0.0.1]:55337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZQ1GI-0007si-5R for submit@debbugs.gnu.org; Thu, 13 Aug 2015 18:46:14 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:35071) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZQ1GF-0007sZ-8R for 21164@debbugs.gnu.org; Thu, 13 Aug 2015 18:46:11 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A99DC22AE2 for <21164@debbugs.gnu.org>; Thu, 13 Aug 2015 18:46:10 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Thu, 13 Aug 2015 18:46:10 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=Mx/hM yaSpO7+I8aCQ4H9e3KsXu8=; b=lDz02MYeoJaMWwPKdZlNHvR4eBiz4c+Zw2KKg I3fOgnn5NhrZzdRii2+cr58Z3Yc4+L5YJgX/U+UAhnLVFdZBHj7wthk0a0sVvj0P KcJ2AoZutYeQ+Dtyw08Qil0tWDSiWHIRsKOy7IX09iZIC3d9XG95JbFDN9m/vFVV gxC5hI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=Mx/hMyaSpO7+I8aCQ4H9e3KsXu8=; b=jR6kv Jt7PXUiFcRguH06NT29b5FRGsVTarh8DvxeLaUA3dt2u8rZNKJ5Elmei06cbywWB b5825NWrHXDq6r5u/LJNtJJxP4qHWdj9JlJbSoxe0/zbWDrdgzFLjjE/XK10cL/o ocdx3EDJtyYN7orw70NU2i+i7gbNkDsA+wbNuc= X-Sasl-enc: VCo54cZeDsfdmbiwA/PSxv/D5DcckULVBtrSjDsljSDC 1439505970 Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 63A346800CB for <21164@debbugs.gnu.org>; Thu, 13 Aug 2015 18:46:10 -0400 (EDT) Received: from ip6-localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1ZQ1GD-0006al-B7 for 21164@debbugs.gnu.org; Thu, 13 Aug 2015 15:46:09 -0700 References: <87zj2d6keq.fsf@secretsauce.net> <87twshqv9s.fsf@mail.linkov.net> From: Dima Kogan In-reply-to: Date: Thu, 13 Aug 2015 15:46:09 -0700 Message-ID: <87r3n66c3y.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Artur Malabarba writes: > I just pushed commit a5bdb87 which should fix this. > Dima, could you confirm that it solves your issue? Yes, that patch resolves the issue. Thanks! From unknown Sun Jun 22 17:17:44 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Dima Kogan Subject: bug#21164: closed (Re: bug#21164: 25.0.50; char-fold search broken for multi-line searches (sometimes)) Message-ID: References: <87zj2d6keq.fsf@secretsauce.net> X-Gnu-PR-Message: they-closed 21164 X-Gnu-PR-Package: emacs Reply-To: 21164@debbugs.gnu.org Date: Fri, 14 Aug 2015 16:40:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1439570402-9572-1" This is a multi-part message in MIME format... ------------=_1439570402-9572-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #21164: 25.0.50; char-fold search broken for multi-line searches (sometimes) which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 21164@debbugs.gnu.org. --=20 21164: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D21164 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1439570402-9572-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 21164-done) by debbugs.gnu.org; 14 Aug 2015 16:39:17 +0000 Received: from localhost ([127.0.0.1]:55886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZQI0j-0002TQ-En for submit@debbugs.gnu.org; Fri, 14 Aug 2015 12:39:17 -0400 Received: from mail-lb0-f177.google.com ([209.85.217.177]:34665) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZQI0h-0002TH-8n for 21164-done@debbugs.gnu.org; Fri, 14 Aug 2015 12:39:15 -0400 Received: by lbbtg9 with SMTP id tg9so49009295lbb.1 for <21164-done@debbugs.gnu.org>; Fri, 14 Aug 2015 09:39:14 -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:cc:content-type; bh=BinS6xRxP4ZhgdZPlv3C3+CznRO4aRLrj0xal9SE6+Y=; b=XoYDsk9S4ITxzXtTe4P0zN3PAycznH+/5/dCArbvvoheRN0Fz86rQ7L4KgLuzeZawB UJphIXQB6Y/pIxs7fx7/f4N/uZAkZnlwfWI3TPDtkDd4bR+Ob4Jt3qkMyWpvZLqkVrkh nXmURfh/G/NbH8j9swpFnQdNJi6Zw3/hV1qDvfHsHN+A8ah/m+5BFtKJvGf4xDH+TWnE ftflXeQD6r/SzjDjnK9QFsRKLqbm1mJei4g9FgUmTgakDPG6V30q1X70r1tZJUlOYdLo hi8Lyzsojczh6Fl3Rd0q4x1ElKrYhFNjffqJHfRw/uaDANSc1nlGgcr/0U6aVm+PG7Lz w5UQ== MIME-Version: 1.0 X-Received: by 10.112.35.163 with SMTP id i3mr8868745lbj.4.1439570354291; Fri, 14 Aug 2015 09:39:14 -0700 (PDT) Received: by 10.25.134.139 with HTTP; Fri, 14 Aug 2015 09:39:14 -0700 (PDT) In-Reply-To: <87r3n66c3y.fsf@secretsauce.net> References: <87zj2d6keq.fsf@secretsauce.net> <87twshqv9s.fsf@mail.linkov.net> <87r3n66c3y.fsf@secretsauce.net> Date: Fri, 14 Aug 2015 17:39:14 +0100 X-Google-Sender-Auth: XH9prWHVnaoHpcosWHxEDxvBUSY Message-ID: Subject: Re: bug#21164: 25.0.50; char-fold search broken for multi-line searches (sometimes) From: Artur Malabarba Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 21164-done Cc: 21164-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: bruce.connor.am@gmail.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) Great! 2015-08-13 23:46 GMT+01:00 Dima Kogan : > Artur Malabarba writes: > >> I just pushed commit a5bdb87 which should fix this. >> Dima, could you confirm that it solves your issue? > > Yes, that patch resolves the issue. Thanks! > > > ------------=_1439570402-9572-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 31 Jul 2015 04:04:26 +0000 Received: from localhost ([127.0.0.1]:35322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZL1YX-000431-SR for submit@debbugs.gnu.org; Fri, 31 Jul 2015 00:04:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60023) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZL1YV-00042s-VW for submit@debbugs.gnu.org; Fri, 31 Jul 2015 00:04:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZL1YU-0003Ff-Sm for submit@debbugs.gnu.org; Fri, 31 Jul 2015 00:04:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:32781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZL1YU-0003Fb-PT for submit@debbugs.gnu.org; Fri, 31 Jul 2015 00:04:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZL1YT-0002PI-FV for bug-gnu-emacs@gnu.org; Fri, 31 Jul 2015 00:04:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZL1YO-0003El-H1 for bug-gnu-emacs@gnu.org; Fri, 31 Jul 2015 00:04:21 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:59525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZL1YO-0003EW-BR for bug-gnu-emacs@gnu.org; Fri, 31 Jul 2015 00:04:16 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 25716201D0 for ; Fri, 31 Jul 2015 00:04:15 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Fri, 31 Jul 2015 00:04:15 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=content-type:date:from:message-id:mime-version:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=MQyOZwYO8+yASwFV+VAxHJI6PyI =; b=C7iDHdpMWGNYrtF8a1L3lqxa+noRP8xOhHDee0GHE8ru1tIgCZEwBnYEKX3 dEgr9Zjrkdr+WEtDHLNlqTNe27R1+YTuIT7vALFG9seH/B7c/WorEovoYkNV58yU Q3Eyv3U6PZgaB7Smd5liXvQz9CukQCu5Aj+7HJk9/B4+0OME= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=MQ yOZwYO8+yASwFV+VAxHJI6PyI=; b=M0+EHUaZHADEu0ERhitIS72j8qIMuAr8AX dPQySf0PgDJtBfHkRAOswgCDpOlN96UIwMCI9zODjznsI4n28ePYnaFKKxT/kRM4 h34SYdPN9EWxktl0K7sM+WLOtuIyQZlONkgGa8bO6Lxv3wbHNmae9QNNIcJgAEkD pqvlPJ5mQ= X-Sasl-enc: aRKfmklfHaGaLt7p0xYcie5kVxHfsmMU+Na5BzcV2z8g 1438315454 Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id C8B026800ED for ; Fri, 31 Jul 2015 00:04:14 -0400 (EDT) Received: from ip6-localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1ZL1a9-0007S9-LX for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2015 21:06:05 -0700 From: Dima Kogan To: bug-gnu-emacs@gnu.org Subject: 25.0.50; char-fold search broken for multi-line searches (sometimes) Date: Thu, 30 Jul 2015 21:06:05 -0700 Message-ID: <87zj2d6keq.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi. I'm using a very recent emacs built from the git HEAD. Sometime in the recent past the default C-s behavior was changed to include char-folding by default. There's a bug here. Suppose I have a buffer containing the following C source. ---------------------------------------------------- int a(void) { for(unsigned long x = 0; x < 10; x += 2) { nvm_flash_erase_app_page( x ); } } int b(void) { for(unsigned long x = 0; x < 10; x += 2) { } } ---------------------------------------------------- Note that the two functions are identical. I place the point at the start of one of the 'for' statements, then C-s to enter char-folding isearch, then C-w to grab some amount of text to search for. While I'm grabbing text that's still on the 'for' line, isearch sees the other match, highlights it, and I can jump to it by hitting C-s. However, if I hit C-w enough times to go to the next line, the other match is no longer seen. This resolves when I turn off char-folding. ------------=_1439570402-9572-1--