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

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

Re: Waiting on compilation to finish before executing another function


From: Rami A
Subject: Re: Waiting on compilation to finish before executing another function
Date: Thu, 15 Aug 2013 15:41:54 -0700 (PDT)
User-agent: G2/1.0

Ok. I tried something like this, but I keep getting errors, any pointers?

(setq compilevar nil)  
(defun compile-hgpull ()
  (interactive)
  (save-all-buffers)
  (setq compilevar 1)
  (compile-pkg "hg pull -u"))

(defun notify-compilation-result ()
  (if compilevar (revert-all-buffers))
  (setq compilevar nil)
  )

(add-to-list 'compilation-finish-functions
             'notify-compilation-result)


reply via email to

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