From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: next-error was never ready for makefiles Date: 16 May 2002 18:09:44 -0600 Organization: IHS Engineering, Electronic Systems Development Sender: bug-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1021594320 9002 127.0.0.1 (17 May 2002 00:12:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 17 May 2002 00:12:00 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 178VLj-0002L5-00 for ; Fri, 17 May 2002 02:11:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 178VM5-0004yW-00; Thu, 16 May 2002 20:12:21 -0400 Original-Received: from mailbox1.ucsd.edu ([132.239.1.53]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 178VJX-0004pP-00 for ; Thu, 16 May 2002 20:09:44 -0400 Original-Received: from mail.fu-berlin.de (mail.fu-berlin.de [160.45.11.165]) by mailbox1.ucsd.edu (8.12.1/8.12.1) with ESMTP id g4H09gYW014843 for ; Thu, 16 May 2002 17:09:42 -0700 (PDT) Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Fri, 17 May 2002 02:09:41 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Fri, 17 May 2002 02:09:41 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 39 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: fu-berlin.de 1021594180 23026839 170.207.51.80 (16 [82742]) X-Newsreader: Gnus v5.3/Emacs 19.34 Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:1408 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:1408 jidanni@deadspam.com (Dan Jacobson) writes: > Fellas, how could it be that 15 years ago I was already using M-x > compile and gdb etc. all hooked together, whatever, but still down to > this very day if I say, blow something in a Makefile, M-x compile > can't jump to the error: > > cd /home/jidanni/unicode/ > make > echo 'a@b#c|perl -wln a.pl > /bin/sh: -c: line 1: unexpected EOF while looking for matching `'' > /bin/sh: -c: line 2: syntax error: unexpected end of file > make: *** [a] Error 2 > > Compilation exited abnormally with code 2 at Thu May 16 11:08:06 > > the Makefile's error is obvious: > > a: > echo 'a@b#c$"|perl -wln a.pl > # echo 30|perl -wlne 'print hex $$_' > > Anyway, will the emacs dude and/or the bash dude get together and do > what is needed for next-error to jump to problems even in makefiles?! > [first gotta say the name of the makefile...] Indeed: if the user specifies the Makefile in the `M-x make' command line via -f, Emacs would need to parse the shell command to find it. And how is Emacs supposed to find the responsible command in the Makefile if it's not echoed due to a leading "@"? I don't understand how bash could be changed so that Makefile command failures could be recognized by `M-x next-error'. I think make itself needs to be modified to report the line number (as well as the target and the exit status) when a command fails. But perhaps in the short term we could hack up something in Emacs Lisp to match the current error message format and generate the line number from the target. -- Kevin Rodgers