GNU bug report logs - #6808
24.0.50; Incomplete match highlighting with `query-replace-regexp'

Previous Next

Package: emacs;

Reported by: Tassilo Horn <tassilo <at> member.fsf.org>

Date: Fri, 6 Aug 2010 06:46:02 UTC

Severity: normal

Found in version 24.0.50

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Tassilo Horn <tassilo <at> member.fsf.org>
Cc: 6808 <at> debbugs.gnu.org
Subject: bug#6808: 24.0.50; Incomplete match highlighting with `query-replace-regexp'
Date: Fri, 06 Aug 2010 15:13:55 +0200
> The matches to be replaced by `query-replace-regexp' aren't highlighted
> completely, although the replacement is correct.

> Here's a recipe:

> 1. emacs -Q
> 2. Create a buffer with contents:

>  #1 153030 120 = 423988
>  #2 152845 181 = 1500234
>  #3 155160 247 = 767821
>  #4 155160 310 = 11131347
>  #5 155160 319 = 13979167

> 3. M-x query-replace-regexp RET [0-9]+ = RET RET

> Result:

> - The first match "120 =" is highlighted completely.
> - All further matches have only the last number highlighted, e.g. "1 =",
>   "7 =", ...
> - Performing the replacement replaces the correct, complete match,
>   e.g. "120 =", "181 =", "247 ="

I'd guess that those incorrect matches are search with
re-search-backward rather than re-search-forward.


        Stefan




This bug report was last modified 14 years and 347 days ago.

Previous Next


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