aboutsummaryrefslogtreecommitdiff
path: root/piem-b4.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-06-05 20:27:59 -0400
committerKyle Meyer <kyle@kyleam.com>2020-06-06 11:20:49 -0400
commitd557be18da6cd61dd2830677bbc08b06d39f0eac (patch)
treeb196a0e888739e5dbc08574a8da496e9decfdf1a /piem-b4.el
parent5631f6d6371c243b85c54c20f3baa5a44b40c5c3 (diff)
downloadpiem-d557be18da6cd61dd2830677bbc08b06d39f0eac.tar.gz
b4: Drop custom process buffer
Directing all piem-related output to one buffer should be sufficient, for now at least.
Diffstat (limited to 'piem-b4.el')
-rw-r--r--piem-b4.el18
1 files changed, 6 insertions, 12 deletions
diff --git a/piem-b4.el b/piem-b4.el
index 3a5cacd..f8908f7 100644
--- a/piem-b4.el
+++ b/piem-b4.el
@@ -66,8 +66,6 @@ the following information about the patch series:
;;;; Internals
-(defconst piem-b4-output-buffer "*piem-b4-output*")
-
(defun piem-b4--series-info (cover patches)
"Collect information for a patch series.
COVER is an mbox with the cover letter, and PATCHES is an
@@ -167,8 +165,7 @@ in `piem-b4-default-branch-function'."
(setq custom-p t))))
;; Move to the coderepo so that we pick up any b4 configuration
;; from there.
- (apply #'piem-process-call piem-b4-output-buffer coderepo
- piem-b4-b4-executable "am"
+ (apply #'piem-process-call coderepo piem-b4-b4-executable "am"
(and custom-p
(concat "--use-local-mbox=" mbox-thread))
(concat "--outdir=" outdir)
@@ -189,16 +186,15 @@ in `piem-b4-default-branch-function'."
(defun piem-b4-am-ready-from-mbox (mbox &optional args)
(interactive (list (read-file-name "mbox: ")
(transient-args 'piem-b4-am)))
- (apply #'piem-process-start piem-b4-output-buffer nil
- piem-b4-b4-executable "am"
+ (apply #'piem-process-start nil piem-b4-b4-executable "am"
(cons (concat "--use-local-mbox=" mbox) args)))
;;;###autoload
(defun piem-b4-am-ready-from-mid (mid &optional args)
(interactive (list (read-string "Message ID: " nil nil (piem-mid))
(transient-args 'piem-b4-am)))
- (apply #'piem-process-start piem-b4-output-buffer nil
- piem-b4-b4-executable "am" (append args (list mid))))
+ (apply #'piem-process-start nil piem-b4-b4-executable "am"
+ (append args (list mid))))
;;;###autoload
(defun piem-b4-am-from-mid (mid &optional args)
@@ -238,14 +234,12 @@ in `piem-b4-default-branch-function'."
(magit-list-local-branch-names)))
(base (plist-get info :base-commit)))
(if base (cons base cands) cands)))))
- (apply #'piem-process-call piem-b4-output-buffer nil
- piem-git-executable "checkout"
+ (apply #'piem-process-call nil piem-git-executable "checkout"
(append (if (string-empty-p new-branch)
(list "--detach")
(list "-b" new-branch))
(list base))))
- (piem-process-call piem-b4-output-buffer nil
- piem-git-executable "am" "--scissors"
+ (piem-process-call nil piem-git-executable "am" "--scissors"
mbox-file)
(if (and piem-use-magit
(fboundp 'magit-status-setup-buffer))