lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sun, 28 May 2006 21:13:56 +0200 Jürgen Hötzel wrote:

> On Sun, May 28, 2006 at 06:58:15PM +0200, David Hansen wrote:
>> On Sun, 28 May 2006 13:21:33 +0200 Jürgen Hötzel wrote:
>> 
>> > * lua-postprocess-output-buffer: jump to lua errors in source files
>> 
>> Emacs compile.el "catch all" regexp works pretty well with
>> lua error messages (at least with GNU Emacs 22).  Just set
>> `compile-command' to something useful.
>
> Yes. But i prefer running Lua as an inferior comint process, so i can
> develop code incrementally and interactively and never have to stop for a
> "compilation cycle".  This is why i adopted *-postprocess-output-buffer
> from python mode.

Oh, you don't have to "compile" a file to use `compile'.
Something like

  (setq compile-command (concat "lua " (buffer-file-name)))

is OK.

Anyway to make this work on regions is a bit more tricky and
i guess you have to use the evil `defadvice'

BTW:

  (lua-start-process lua-default-application lua-default-application)

in line 986 looks like bug.

David