|
From: | Rami A |
Subject: | Re: Waiting on compilation to finish before executing another function |
Date: | Thu, 15 Aug 2013 16:03:54 -0700 (PDT) |
User-agent: | G2/1.0 |
Ok. I fixed it: (setq compilevar "Bad") (defun compile-hgpull () (interactive) (save-all-buffers) (setq compilevar "Good") (compile-pkg "hg pull -u")) (defun notify-compilation-result () (if (string-match "Good" compilevar) (progn (setq compilevar "Bad") (revert-all-buffers)))) (add-to-list 'compilation-finish-functions 'notify-compilation-result)
[Prev in Thread] | Current Thread | [Next in Thread] |