From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#9679: 24.0.90; After rgrep, next-error goes to the wrong line Date: Thu, 06 Oct 2011 18:27:56 +0300 Organization: JURTA Message-ID: <8739f6w35v.fsf@mail.jurta.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1317915011 3726 80.91.229.12 (6 Oct 2011 15:30:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2011 15:30:11 +0000 (UTC) Cc: 9679@debbugs.gnu.org To: Ari Roponen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 06 17:30:07 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RBptb-00018x-Ot for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2011 17:30:03 +0200 Original-Received: from localhost ([::1]:50345 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBptb-0001Dx-2H for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2011 11:30:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBptT-0001DZ-CK for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 11:30:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBptS-0003EQ-7N for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 11:29:55 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBptR-0003EM-Up for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 11:29:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RBpta-00045R-No for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 11:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Oct 2011 15:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9679-submit@debbugs.gnu.org id=B9679.131791495915637 (code B ref 9679); Thu, 06 Oct 2011 15:30:02 +0000 Original-Received: (at 9679) by debbugs.gnu.org; 6 Oct 2011 15:29:19 +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 1RBpss-00044A-RE for submit@debbugs.gnu.org; Thu, 06 Oct 2011 11:29:19 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBpsq-000442-G1 for 9679@debbugs.gnu.org; Thu, 06 Oct 2011 11:29:17 -0400 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 05A226E8064; Thu, 6 Oct 2011 08:29:06 -0700 (PDT) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 1F095451C527; Thu, 6 Oct 2011 08:29:04 -0700 (PDT) In-Reply-To: (Ari Roponen's message of "Thu, 06 Oct 2011 09:14:02 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 06 Oct 2011 11:30:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:52291 Archived-At: > Sometimes next-error goes to the wrong line when stepping through rgrep > matches. > > Using git bisect and the code below, I found the commit that causes the > problem (rev 105677). Reverting that (and before that a commit that > depended on it) makes the problem disappear. > > rev 105685: (grep-regexp-alist): Move dangling comment to the previous rule. > rev 105677: progmodes/grep.el (grep-regexp-alist): Calculate column positions > > I used the following test case to find the problematic commit. It > creates a file with two lines matching "mapcar" and then rgreps for it. > After that it calls next-error two times. The second call goes into the > line starting with " (list 'face ...". > ^- here Thanks for the comprehensive test case. I tried it but the second call goes into the line starting with "(mapcar #'string-to-number ...".