I was sure that I changed it from using the hard coded value -.-
Anyways this looks good to me. There was no specific reason for me to
use "mbox" instead of the buffer-local variable.
Kyle Meyer <kyle@kyleam.com> writes:
> 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 <sourcehut@relevant-information.com>
> ---
> piem.el | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/piem.el b/piem.el
> index b06719b2..b839942e 100644
> --- a/piem.el
> +++ b/piem.el
> @@ -1006,7 +1006,7 @@ (defun piem-edit-patch-am ()
> (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)))
>
> base-commit: 2b08667d9165da5381e6044b1ffa0bea90241110
> --
> 2.34.0