jed-users mailing list

[2010 Date Index] [2010 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [Jed-users-l] Compile and run


Gabriel Hurley <gabriel.hurley@xxxxxxxxx> wrote:
>>
>>         compile(cmd);
>>
>> This will execute the command in an external process and allow you to
>> step through any compilation errors.  The compile function is defined
>> in "acompile.sl".
>>
>
> Is there also a way to do this with "shell_command"?

To parse the compilation errors?  The compile_parse_buf function
defined in compile.sl will parse the errors in the current buffer.
Also note that the function that takes you from one error to the next
is called "compile_parse_errors", which is bound to Ctrl-X ' in emacs
mode.

Finally, have you considered using a Makefile?  For example, the
following Makefile may be used to compile and run `foo' via 
`make EXEC=foo`:

LIBS =
run-$(EXEC): $(EXEC).c
	gcc -W -Wall -Wextra -o $(EXEC) $(EXEC).c $(LIBS)
	./$(EXEC)
# Note that the two previous lines must begin with a literal TAB character.

Thanks,
--John
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l


[2010 date index] [2010 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]