From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ari Roponen Newsgroups: gmane.emacs.bugs Subject: bug#9679: 24.0.90; After rgrep, next-error goes to the wrong line Date: Fri, 07 Oct 2011 11:41:38 +0300 Message-ID: References: <8739f6w35v.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1317976989 29139 80.91.229.12 (7 Oct 2011 08:43:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2011 08:43:09 +0000 (UTC) Cc: 9679@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 07 10:43:05 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 1RC61J-0008NN-6r for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Oct 2011 10:43:05 +0200 Original-Received: from localhost ([::1]:39054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RC61I-0000IS-Qw for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Oct 2011 04:43:04 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RC616-0000Dn-3L for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 04:43:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RC614-0002YP-W1 for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 04:42:52 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RC614-0002YH-Td for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 04:42:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RC61H-0006kV-FZ for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 04:43:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ari Roponen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Oct 2011 08:43: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.131797692825854 (code B ref 9679); Fri, 07 Oct 2011 08:43:02 +0000 Original-Received: (at 9679) by debbugs.gnu.org; 7 Oct 2011 08:42:08 +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 1RC60N-0006iw-ST for submit@debbugs.gnu.org; Fri, 07 Oct 2011 04:42:08 -0400 Original-Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RC60J-0006iR-Rh for 9679@debbugs.gnu.org; Fri, 07 Oct 2011 04:42:05 -0400 Original-Received: by eye22 with SMTP id 22so2036321eye.3 for <9679@debbugs.gnu.org>; Fri, 07 Oct 2011 01:41:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=rRsySs4UGyrqoV6EOg28aKyOwRyestPORs5LuorR3cE=; b=Wlj2+JKAyMaRcjlH2PUP99rk+RkM02DalCAGj84aZw/xRU3WRLl+2ldpMZmHi1xZ39 Hv/bwX9f7FghESCXW6dao96PT4OWsVUh4Q7XcxrtMs0NOluPAKxZAr3N7uWVUyRwpV5r geJWHMm3j+05v3qn+hFaTgYVJ+udKQg3d7j2U= Original-Received: by 10.223.15.25 with SMTP id i25mr9335188faa.31.1317976904737; Fri, 07 Oct 2011 01:41:44 -0700 (PDT) Original-Received: from arirop (dsl-jklbrasgw1-fe17fb00-113.dhcp.inet.fi. [84.251.23.113]) by mx.google.com with ESMTPS id h16sm11547324fab.19.2011.10.07.01.41.42 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Oct 2011 01:41:43 -0700 (PDT) In-Reply-To: (Ari Roponen's message of "Fri, 07 Oct 2011 08:15:49 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 07 Oct 2011 04:43:03 -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:52359 Archived-At: Ari Roponen writes: > I guess the problem has something to do with those markers. I found a way to fix the problem locally without reverting any commits. The function `compilation-next-error-function' contains this: ;; If loc contains no marker, no error in that file has been visited. ;; If the marker is invalid the buffer has been killed. ;; So, recalculate all markers for that file. (unless (and (compilation--loc->marker loc) (marker-buffer (compilation--loc->marker loc)) ;; FIXME-omake: For "omake -P", which automatically recompiles ;; when the file is modified, the line numbers of new output ;; may not be related to line numbers from earlier output When I add "nil" after "and", the problem goes away. -- Ari Roponen