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 18:51:26 +0300 Message-ID: References: <8739f6w35v.fsf@mail.jurta.org> <87r52o7rqj.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1318002726 23478 80.91.229.12 (7 Oct 2011 15:52:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2011 15:52:06 +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 17:52:02 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 1RCCiO-0001C8-GC for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Oct 2011 17:52:00 +0200 Original-Received: from localhost ([::1]:51365 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCCiO-00061r-4E for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Oct 2011 11:52:00 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCCiG-0005xl-4X for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 11:51:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RCCiC-0001a4-6W for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 11:51:52 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCCiC-0001a0-2A for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 11:51:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RCCiQ-0002fD-4i for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 11:52:02 -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 15:52: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.131800271710229 (code B ref 9679); Fri, 07 Oct 2011 15:52:02 +0000 Original-Received: (at 9679) by debbugs.gnu.org; 7 Oct 2011 15:51:57 +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 1RCCiL-0002ev-4N for submit@debbugs.gnu.org; Fri, 07 Oct 2011 11:51:57 -0400 Original-Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RCCiI-0002eg-6I for 9679@debbugs.gnu.org; Fri, 07 Oct 2011 11:51:55 -0400 Original-Received: by bkaq10 with SMTP id q10so4503971bka.3 for <9679@debbugs.gnu.org>; Fri, 07 Oct 2011 08:51:33 -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=do4pRBzH1eXUq06juwrqFwqRjhvT7HEvH6LL8WLegA0=; b=NGMkIplGhb/IV8DqtelICnxYXVenhZA+4+sihhNXV8tA9bVmgMfppdMQvoTv6yPnc0 h5fclnXAnsMm8HiNqXN12Ia4vYneu0UyuLnAMTDdVhNPfc6G/W45xxzWRovepEdP5ZXn p3V4AI83HOmWM5Djk+D0UpE1IsIYoOAvOtUjo= Original-Received: by 10.204.152.24 with SMTP id e24mr1614872bkw.136.1318002693232; Fri, 07 Oct 2011 08:51:33 -0700 (PDT) Original-Received: from arirop (dsl-jklbrasgw1-fe17fb00-113.dhcp.inet.fi. [84.251.23.113]) by mx.google.com with ESMTPS id t13sm1686929fae.0.2011.10.07.08.51.31 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Oct 2011 08:51:32 -0700 (PDT) In-Reply-To: <87r52o7rqj.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 07 Oct 2011 18:20:52 +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 11:52: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:52381 Archived-At: Juri Linkov writes: > I suspect it may be related to screen columns because somehow > `compilation-move-to-column' in `compilation-next-error-function' > goes to the wrong line and column, i.e. to the position 387. > What values of `compilation-error-screen-columns' and > `grep-error-screen-columns' do you have in the *grep* buffer? > I have both of them equal to `nil'. I run the test case with "emacs -Q -l bug.el", so the variables use their default values: compilation-error-screen-columns is a variable defined in `compile.el'. Its value is nil Original value was t Local in buffer *grep*; global value is t grep-error-screen-columns is a variable defined in `grep.el'. Its value is nil > > Could you please get the values of arguments that > `compilation-move-to-column' receives here by debugging > or adding (message "...") and seeing what values it prints > in the *Message* buffer? (defun compilation-move-to-column (col screen) "Go to column COL on the current line. If SCREEN is non-nil, columns are screen columns, otherwise, they are just char-counts." (message "col: %S, screen %S" col screen) ; Display parameters. (if screen (move-to-column (max col 0)) (goto-char (min (+ (line-beginning-position) col) (line-end-position))))) => Grep finished (matches found) col: 13, screen nil col: 7, screen nil col: 13, screen t col: 7, screen t I get the same values also with the simpler "fix" that I mentioned in the other post. -- Ari Roponen