diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2017-04-18 17:13:55 +0100 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2017-04-18 17:13:55 +0100 |
commit | 1855e2ec6b5564c1f95e080c4d54129f539e4472 (patch) | |
tree | 9b01646a45f3bccefd8e93d4285fe714e479aad2 | |
parent | 98d564861e42415beaf95a9feb1ca402641b1569 (diff) |
lava-job-list-mode: make unique to server
This includes copying across the buffer locals we need for this
instance of the job list.
-rw-r--r-- | lava-job-list-mode.el | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lava-job-list-mode.el b/lava-job-list-mode.el index f5db789..34db077 100644 --- a/lava-job-list-mode.el +++ b/lava-job-list-mode.el @@ -85,7 +85,17 @@ Letters do not insert themselves; instead, they are commands. (defun lava-job-list--buffer () "Return a buffer to process the lava job list." - (get-buffer-create "*LAVA Job List*")) + (let ((host lava-host) + (user lava-user-name) + (token lava-api-token) + (job-buffer + (get-buffer-create + (format "*LAVA Job List for %s*" lava-host)))) + (with-current-buffer job-buffer + (setq lava-host host + lava-user-name user + lava-api-token token)) + job-buffer)) (defun lava-update-job-status (jobid resp) "Process RESP for JOBID." |