From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: [lennart.borgman.073@student.lu.se: compilation-previous-error fails if first error is at start of buffer] Date: Mon, 08 Jan 2007 12:11:59 +0100 Message-ID: <45A226FF.30507@gmail.com> References: <45A1F9F1.4050500@swipnet.se> <17826.570.959259.398020@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1168254746 25400 80.91.229.12 (8 Jan 2007 11:12:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Jan 2007 11:12:26 +0000 (UTC) Cc: =?ISO-8859-1?Q?Jan_Dj=E4rv?= , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 08 12:12:23 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H3sQQ-0003lx-Gb for ged-emacs-devel@m.gmane.org; Mon, 08 Jan 2007 12:12:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H3sQP-0003mc-S1 for ged-emacs-devel@m.gmane.org; Mon, 08 Jan 2007 06:12:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H3sQB-0003m3-3Y for emacs-devel@gnu.org; Mon, 08 Jan 2007 06:12:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H3sQ9-0003lr-97 for emacs-devel@gnu.org; Mon, 08 Jan 2007 06:12:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H3sQ9-0003lo-27 for emacs-devel@gnu.org; Mon, 08 Jan 2007 06:12:05 -0500 Original-Received: from [80.76.149.213] (helo=ch-smtp02.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H3sQ7-0005l9-6c; Mon, 08 Jan 2007 06:12:03 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:62625 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1H3sQ5-0003VH-7J; Mon, 08 Jan 2007 12:12:01 +0100 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Original-To: Nick Roberts In-Reply-To: <17826.570.959259.398020@kahikatea.snap.net.nz> X-Antivirus: avast! (VPS 0701-3, 2007-01-08), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1H3sQ5-0003VH-7J. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1H3sQ5-0003VH-7J 7c463e7dbddf6278d855f44fef032c0e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64967 Archived-At: Nick Roberts wrote: > > > If the compilation buffer begins with error lines right at the top: > > > > > > c:/EmacsW32/etc/EmacsW32Util.html:7:5: Warning: inserting "type" > > > attribute > > > c:/EmacsW32/etc/EmacsW32Util.html:12:19: Warning: lacks > > > "summary" attribute > > > c:/EmacsW32/etc/EmacsW32Util.html:29:5: Warning:
lacks "summary" > > > attribute > > > > > > then if point is on second line compilation-previous-error fails. > > > > > > > What is the error message? > > Warnings and errors are equivalent in the compilation buffer. I don't see how > Lennart gets error lines right at the top as I always get the following four > lines: > > -*- mode: compilation; default-directory: "~/" -*- > Compilation started at Mon Jan 8 21:22:48 > > `command used for my compilation' The output is from a library not included in Emacs (actually a version of tidy.el). The output does not have the lines above at the beginning. It would be rather inconvenient if it had, but maybe those line still should be there for some reason? > > Perhaps this is for his patched version. Anyway there's not much point fixing > it when, like the heads of the Lernaean Hydra, two new bugs will take it's > place in FOR-RELEASE. I do not send bug report for the patched version, of course. (And I have tried to make it clear on download page on my site that you should use the unpatched version for bug reports.) Here is a way to reproduce the error (CVS Emacs from 2007-01-03): emacs -Q M-: (switch-to-buffer "TEST") Paste these lines (inside the "cut lines") into the buffer: >>>>> cut here >>>>>>> c:/EmacsW32/nxml/nxhtml/doc/temp.htm:9:5: Warning: missing before c:/EmacsW32/nxml/nxhtml/doc/temp.htm:10:5: Warning: discarding unexpected c:/EmacsW32/nxml/nxhtml/doc/temp.htm:9:5: Warning: trimming empty

Info: Doctype given is "-//W3C//DTD XHTML 1.1//EN" Info: Document content looks like XHTML 1.1 3 warnings, 0 errors were found! <<<<<<<< cut here <<<<<<<<<<<< so that the first error is on the first line of the buffer TEST, the second error on the second line and the third error on the third line. (You may have to edit this a bit because of line breaks in this mail message.) Now do M-x compilation-mode Go to the beginning of the buffer. Press TAB. The point should move to the second error line. Press TAB again -> to third line. Now press S-TAB. Should go to second line. S-TAB again should go to first line, but it does not. Is this enough to reproduce it for you?