Subject: Re: bug#57400: 29.0.50; Support sending patches from VC directly

From: Eli Zaretskii <[email-masked]>
Date: Tue, 04 Oct 2022 11:00:03 +0300

> From: Philip Kaludercic <[email-masked]>
> Cc: [email-masked],  [email-masked],  [email-masked]
> Date: Tue, 04 Oct 2022 07:10:15 +0000
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> >> +            (compose-mail addressee
> >> +                          (or (plist-get patch :subject)
> >> +                              (concat
> >> +                               "Patch for " ;guess
> >> +                               (file-name-nondirectory
> >> +                                (directory-file-name
> >> +                                 (vc-root-dir)))))
> >> +                          nil nil nil nil
> >> +                          `((exit-recursive-edit)))
> >> +            (message-goto-body)
> >
> > compose-mail doesn't necessarily invoke message.el functions, so
> > message-goto-body is not necessarily appropriate here.
> 
> Oh, I thought it was because `submit-emacs-patch' did the same.  Again,
> do you have any suggestions what else could be done to keep this
> generic?

Can you ask more specific questions?  Are you looking for a generic
way of doing what message-goto-body does?  If so, would
rfc822-goto-eoh do the job?