From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teika Kazura Newsgroups: gmane.emacs.bugs Subject: bug#13178: Query-replace fails soon after narrow-to-region Date: Fri, 14 Dec 2012 13:03:20 +0900 (JST) Message-ID: <20121214.130320.1173151390202861752.teika@lavabit.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1355457922 1976 80.91.229.3 (14 Dec 2012 04:05:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Dec 2012 04:05:22 +0000 (UTC) To: 13178@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 14 05:05:36 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TjMWi-0002Ze-8J for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Dec 2012 05:05:32 +0100 Original-Received: from localhost ([::1]:46950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjMWV-0001NV-8D for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Dec 2012 23:05:19 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjMWM-0001MW-H3 for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 23:05:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjMWJ-00056P-QO for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 23:05:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjMWJ-00055m-MF for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 23:05:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TjMXD-00020p-29 for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 23:06:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Teika Kazura Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Dec 2012 04:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13178 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13554579127630 (code B ref -1); Fri, 14 Dec 2012 04:06:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Dec 2012 04:05:12 +0000 Original-Received: from localhost ([127.0.0.1]:41644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjMWN-0001z0-O3 for submit@debbugs.gnu.org; Thu, 13 Dec 2012 23:05:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33542) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjMWL-0001yt-LO for submit@debbugs.gnu.org; Thu, 13 Dec 2012 23:05:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjMVP-0004lF-Fa for submit@debbugs.gnu.org; Thu, 13 Dec 2012 23:04:14 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:56513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjMVP-0004lB-CQ for submit@debbugs.gnu.org; Thu, 13 Dec 2012 23:04:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjMVM-0001F4-NG for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 23:04:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjMVJ-0004kn-TC for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 23:04:08 -0500 Original-Received: from karen.lavabit.com ([72.249.41.33]:45688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjMVJ-0004kb-PP for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 23:04:05 -0500 Original-Received: from a.earth.lavabit.com (a.earth.lavabit.com [192.168.111.10]) by karen.lavabit.com (Postfix) with ESMTP id AD93911BC8B; Thu, 13 Dec 2012 22:04:04 -0600 (CST) Original-Received: from localhost (p1143-ipad308hodogaya.kanagawa.ocn.ne.jp [124.85.82.143]) by lavabit.com with ESMTP id LDBKFOSRH1QR; Thu, 13 Dec 2012 22:04:04 -0600 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=xG2G0bI9wRT7jcJcERnMBuJJjk7uCxUCRVohhXcFJ1t7kx34Ekl5pj7qY7nvrYrc3dE3fWKdFq8EuJAjwDxfCRqqJn36tD/gFGyfwqsRZrynkT6RaoioE/r886g3vGgTNAuer9KgxNMw9cni31bSIp7qJOmLmnpEHPm9USvEcfw=; h=Date:Message-Id:To:Subject:From:Mime-Version:Content-Type:Content-Transfer-Encoding; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:68492 Archived-At: Hi, Emacs developers. In Emacs 24.1, query-replace soon after narrow-to-region fails. More precisely, minibuffer says "Replaced 0 occurrences", and the query-replace finishes even if there're matches. I don't think it's a recent regresion. Steps to reproduce: 0. emacs -Q 1. Open a buffer. 2. Set mark, and do narrow-to-region 3. Move to the top of the narrowed buffer. 4. Do query-replace. 5. minibuffer says "Replaced 0 occurrences", and the query-replace finishes. If you do query-replace again, then it starts correctly. It seems that some extra commands between each step hinder to reproduce. Probably you have to enable narrow-to-region beforehand, and query-replace history is necessary, so that "M-% " can invoke a query-replace. In fact, it was already reported in bug #8952: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8952 but as a "wishlist", mixed with several other things. So I dare to submit a separate entry. I've been bothered by this bug for years, but I didn't know how to reproduce it. Thank you in advance. Best regards, Teika (Teika kazura)