unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* next-error was never ready for makefiles
@ 2002-05-16  3:17 Dan Jacobson
  2002-05-17  0:09 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Jacobson @ 2002-05-16  3:17 UTC (permalink / raw)


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...]
-- 
http://jidanni.org/ Taiwan(04)25854780

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: next-error was never ready for makefiles
  2002-05-16  3:17 next-error was never ready for makefiles Dan Jacobson
@ 2002-05-17  0:09 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2002-05-17  0:09 UTC (permalink / raw)


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 <kevinr@ihs.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-17  0:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-16  3:17 next-error was never ready for makefiles Dan Jacobson
2002-05-17  0:09 ` Kevin Rodgers

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).