From 010ab95f59d8a4fcdd6fa26db3c1e567ab1ccacc Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Tue, 28 Dec 2021 12:04:17 -0500 Subject: piem-edit-patch-am: Relay piem-am-ready-mbox's format piem-edit stores the format returned by piem-am-ready-mbox in a buffer-local variable, piem-edit-patch--format. However, piem-edit-patch-am doesn't use this value when it calls piem-am, instead passing a hard-coded "mbox". Pass piem-edit-patch--format so that git-am is called with the appropriate format. Cc: Leo Message-Id: <20211228170417.216825-1-kyle@kyleam.com> --- piem.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piem.el b/piem.el index b06719b..b839942 100644 --- a/piem.el +++ b/piem.el @@ -1006,7 +1006,7 @@ this triggers the creation of a new worktree." (interactive) (let ((buf (current-buffer))) (piem-am buf - "mbox" + piem-edit-patch--format (piem-extract-mbox-info (current-buffer)) piem-edit-patch--coderepo) (kill-buffer buf))) -- cgit v1.2.3