bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#197: marked as done (next-error wrong position in target file)


From: Emacs bug Tracking System
Subject: bug#197: marked as done (next-error wrong position in target file)
Date: Mon, 28 Jul 2008 12:50:04 -0700

Your message dated Mon, 28 Jul 2008 15:44:46 -0400
with message-id <87iqup6bf5.fsf@stupidchicken.com>
and subject line Re: next-error wrong position in target file
has caused the Emacs bug report #216,
regarding next-error wrong position in target file
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact don@donarmstrong.com
immediately.)


-- 
216: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=216
Emacs Bug Tracking System
Contact don@donarmstrong.com with problems
--- Begin Message --- Subject: next-error wrong position in target file Date: Thu, 08 May 2008 09:37:54 +1000 User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.2 (gnu/linux)
In Emacs 22.2, the first `next-error' in certain circumstances goes to
the wrong error line in the target file.  With the dummy file foo.txt
below, and on a 50 line console,

    emacs -Q foo.txt
    C-v               # page down in foo.txt
    C-x b Ret         # back to *scratch* buffer
    M-x compile
    echo 'foo.txt:''150: an error here'
    C-x `             # next-error

    => goes to foo.txt with point at line 56

The echo simply produces a compilation buffer claiming an error at
foo.txt line 150, but then next-error goes to line 56.  On a different
size terminal or under X you get a different wrong position, like line
45 or 24.

The recipe above is rather specific, there's all sorts of ways it works
correctly.  If you don't scroll-up, or if you leave foo.txt the current
buffer, then it's fine.  I've struck this on various occasions without
ever being able to reproduce it, since a second try in the same session
goes ok!  My recent-ish build of the current emacs cvs head still seems
to have the problem too, whatever it is.



In GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.3)
 of 2008-04-11 on raven, modified by Debian
configured using `configure  '--build=i486-linux-gnu' '--host=i486-linux-gnu' 
'--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' 
'--localstatedir=/var/lib' '--infodir=/usr/share/info' 
'--mandir=/usr/share/man' '--with-pop=yes' 
'--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.2/leim'
 '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 
'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g 
-O2''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_AU
  locale-coding-system: iso-8859-1
  default-enable-multibyte-characters: t


Attachment: foo.txt
Description: Text document


--- End Message ---
--- Begin Message --- Subject: Re: next-error wrong position in target file Date: Mon, 28 Jul 2008 15:44:46 -0400
> In Emacs 22.2, the first `next-error' in certain circumstances goes to
> the wrong error line in the target file.  With the dummy file foo.txt
> below, and on a 50 line console,
>
>     emacs -Q foo.txt
>     C-v               # page down in foo.txt
>     C-x b Ret         # back to *scratch* buffer
>     M-x compile
>     echo 'foo.txt:''150: an error here'
>     C-x `             # next-error
>
>     => goes to foo.txt with point at line 56
>
> The echo simply produces a compilation buffer claiming an error at
> foo.txt line 150, but then next-error goes to line 56.  On a different
> size terminal or under X you get a different wrong position, like line
> 45 or 24.

I've checked in a fix.  Thanks.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]