help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Display compilation buffer only if compilation failed


From: Aurélien Aptel
Subject: Re: Display compilation buffer only if compilation failed
Date: Sat, 11 Feb 2012 19:13:52 +0100

I think I understand now.

(with-current-buffer "obfu.c"
  (let ((buf (buffer-name (recompile))))
    (sit-for 1)
    (my-compile-success-p "*compilation*")))
=> t

The call to recompile is asynchronous. I have to wait until the end of
the compilation before checking the content of the buffer.

How can I do this?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]