This question already has an answer here:

How do I find out if compilation was successful or not?

I would like to have a variable compilation-no-error set to true after successful compilation.

I looked at variables and functions starting with compilation-..., but I could not find a simple solution.

marked as duplicate by Kaushal Modi, Andrew Swann, JeanPierre, Scott Weldon, Community May 20 '16 at 0:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    What about variables compilation-finish-function and compilation-finish-functions? – JeanPierre May 19 '16 at 10:28
  • 2
    I think, this answer could help. – Nsukami _ May 19 '16 at 10:33
  • 1
    @Nsukami_ Great, that answers my question! – tom May 19 '16 at 11:33