From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#6808: 24.0.50; Incomplete match highlighting with `query-replace-regexp' Date: Sun, 08 Aug 2010 16:56:06 -0400 Message-ID: <87k4o0vn6h.fsf@stupidchicken.com> References: <878w4kqlw0.fsf@member.fsf.org> <87r5ibwasr.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1281301723 6038 80.91.229.12 (8 Aug 2010 21:08:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Aug 2010 21:08:43 +0000 (UTC) Cc: Tassilo Horn , 6808@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 08 23:08:41 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OiD6m-0004dX-Vv for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Aug 2010 23:08:41 +0200 Original-Received: from localhost ([127.0.0.1]:47697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiD6m-0008H8-87 for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Aug 2010 17:08:40 -0400 Original-Received: from [140.186.70.92] (port=43631 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiD6d-0008Ft-S7 for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2010 17:08:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OiD6a-0007qn-Nb for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2010 17:08:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56104) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiD6a-0007qj-MB for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2010 17:08:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OiCuY-0004Vw-DV; Sun, 08 Aug 2010 16:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Aug 2010 20:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6808 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6808-submit@debbugs.gnu.org id=B6808.128130093017333 (code B ref 6808); Sun, 08 Aug 2010 20:56:02 +0000 Original-Received: (at 6808) by debbugs.gnu.org; 8 Aug 2010 20:55:30 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiCu1-0004VW-QC for submit@debbugs.gnu.org; Sun, 08 Aug 2010 16:55:30 -0400 Original-Received: from pantheon-po14.its.yale.edu ([130.132.50.23]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiCtz-0004VR-FE for 6808@debbugs.gnu.org; Sun, 08 Aug 2010 16:55:28 -0400 Original-Received: from furry (173-9-75-145-NewEngland.hfc.comcastbusiness.net [173.9.75.145]) (authenticated bits=0) by pantheon-po14.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o78Ku62H024491 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 8 Aug 2010 16:56:07 -0400 Original-Received: by furry (Postfix, from userid 1000) id B025EC013; Sun, 8 Aug 2010 16:56:06 -0400 (EDT) In-Reply-To: <87r5ibwasr.fsf@gnu.org> ("Johan =?UTF-8?Q?Bockg=C3=A5rd"'s?= message of "Sat, 07 Aug 2010 02:01:24 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 08 Aug 2010 16:56:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39317 Archived-At: Johan Bockg=C3=A5rd 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.