|
|
Thanks David for you reply, however this is exactly what I do by
setting up the hook:
(add-hook 'compilation-finish-functions #'(lambda (buf str) (progn
(message "FOOKME") (setq cw-compile-flag nil))))
It works, however only in interactive mode. If I run my compilation
function as function call, it does not start compilation. Thus either
I have to wait for
start of compilation somehow, or process some message queue or
something else to make the async process running
d.
On 5 Srp, 13:39, David Hansen <david.han...@xxxxxxx> wrote:
> On Tue, 5 Aug 2008 04:15:54 -0700 (PDT) <dejf...@xxxxxxxxx> wrote:
>
> > i'd like to call compile command from elisp. I need a function, which
> > exits when the compilation is finished. As compilation is asynchronous
> > process, it needs to be synchronized. I wrote then a hook which should
> > do the job, and called my compiling function:
>
> How about
>
> ,----[ C-h v compilation-finish-functions RET ]
> | compilation-finish-functions is a variable defined in `compile.el'.
> | Its value is nil
> |
> | Documentation:
> | Functions to call when a compilation process finishes.
> | Each function is called with two arguments: the compilation buffer,
> | and a string describing how the process finished.
> |
> `----
>
> David
|
|