Hi all,
I've created a new file xtla-core.el, that will contain the low levels
functions used in xtla.el.
Later, tla-run-arch & its friends should move there.
For now, there is just a function
(defun tla--get-buffer-create (type path)
"Gets a buffer of type TYPE for the path PATH. Reuse one if it
exists, otherwise, call `create-file-buffer' to create the buffer.
PATH should include the trailing slash."
I've applied it to tla-changes, and it works well:
(let* ((root (with-current-buffer tla-process-buffer
(tla-tree-root default-directory t)))
(changes-buffer (tla--get-buffer-create 'changes root))
^^^^^^^^^^^^^^^^^^^^^^
This way, one can have several *tla-changes* buffer at the same time,
in different trees.
I'll apply that to tla-inventory in my next patch. It could be applied
in other places too. Please use it !
--
Matthieu