Matthieu MOY <[EMAIL PROTECTED]> writes:
> I suggest only "clean" code be moved to xtla-core : We have written a lot of
> things, not always consistant, and in particular, tla-run-arch could be
> greatly
> improved (possibility to run several processes at the same time, ...).
Just a quick note on this... I've been fiddling around with
tla-run-arch and the sentinel code a bit. At the moment I've got
something that lets you write:
(defun tla-changes (&optional arg)
"Run tla changes."
(interactive "P")
(tla-save-some-buffers)
(let* ((root (tla-tree-root))
(buffer (tla--get-buffer-create 'changes root)))
(with-current-buffer buffer
(let (buffer-read-only) (erase-buffer))))
(tla-run-arch (if arg '("changes") '("changes" "--diffs")) t ; t runs
asynchronously
:finished (lambda (output error status)
(message "No changes in this working copy"))
:killed (lambda (output error status)
(message "Command killed unexpectedly!"))
:error (lambda (output error status)
(let ((tla-process-buffer output))
(tla-show-changes-buffer)))))
But it's still a little half-baked and might not scale well to other
commands, so I'm still playing around with it :o)
Of course, if anyone is already working on something like this, I'm
happy to send what I've got if they'd like it.
Cheers,
Mark
--
Mark Triggs
<[EMAIL PROTECTED]>