all messages for Emacs-related lists mirrored at yhetil.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
  2002-05-17 19:28 ` Richard Stallman
  0 siblings, 2 replies; 3+ 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] 3+ 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
  2002-05-17 19:28 ` Richard Stallman
  1 sibling, 0 replies; 3+ 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] 3+ 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
@ 2002-05-17 19:28 ` Richard Stallman
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Stallman @ 2002-05-17 19:28 UTC (permalink / raw)
  Cc: emacs-devel

I have an idea for how Make and Bash can solve that,
so I suggested it to the maintainers.

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

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

Thread overview: 3+ 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
2002-05-17 19:28 ` Richard Stallman

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.