[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6808: 24.0.50; Incomplete match highlighting with `query-replace-reg
From: |
Chong Yidong |
Subject: |
bug#6808: 24.0.50; Incomplete match highlighting with `query-replace-regexp' |
Date: |
Sun, 08 Aug 2010 16:56:06 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Johan Bockgård <bojohan@gnu.org> writes:
> Yes. replace-highlight does not update isearch-forward, so you get this
> behavior if the previous isearch was a backward search (or in emacs -Q).
>
> The following patch fixes this and two other problems:
>
> * There is no lazy highlighting during replacement if the previous
> isearch set isearch-error (invalid regexp).
>
> * A search that is started with C-s uses forward search for highlighting
> and one that is started with C-r uses backward search, but the
> highlighting is not updated if one switches direction in the middle
> (C-s followed by C-r or vice versa).
Thanks. I've checked it into the branch.