GNU bug report logs - #21164
25.0.50; char-fold search broken for multi-line searches (sometimes)

Previous Next

Package: emacs;

Reported by: Dima Kogan <dima <at> secretsauce.net>

Date: Fri, 31 Jul 2015 04:05:02 UTC

Severity: normal

Found in version 25.0.50

Done: Artur Malabarba <bruce.connor.am <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Dima Kogan <dima <at> secretsauce.net>
Subject: bug#21164: closed (Re: bug#21164: 25.0.50; char-fold search
 broken for multi-line searches (sometimes))
Date: Fri, 14 Aug 2015 16:40:02 +0000
[Message part 1 (text/plain, inline)]
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 <at> debbugs.gnu.org.

-- 
21164: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21164
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Artur Malabarba <bruce.connor.am <at> gmail.com>
Cc: 21164-done <at> debbugs.gnu.org
Subject: Re: bug#21164: 25.0.50; char-fold search broken for multi-line
 searches (sometimes)
Date: Fri, 14 Aug 2015 17:39:14 +0100
Great!

2015-08-13 23:46 GMT+01:00 Dima Kogan <dima <at> secretsauce.net>:
> Artur Malabarba <bruce.connor.am <at> gmail.com> 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!
>
>
>

[Message part 3 (message/rfc822, inline)]
From: Dima Kogan <dima <at> secretsauce.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; char-fold search broken for multi-line searches (sometimes)
Date: Thu, 30 Jul 2015 21:06:05 -0700
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.



This bug report was last modified 9 years and 286 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.