[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)
Re: Waiting on compilation to finish before executing another function, Thien-Thi Nguyen, 2013/08/15
Message not available