#564268 devscripts: nmudiff - Add new option --emacs

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
jaalto
Date:
2010-01-11 15:39:05 UTC
Severity:
wishlist
#564268#5
Date:
2010-01-08 21:02:56 UTC
From:
To:
In addition to option --mutt, please add support for Emacs by adding option
--emacs.

It's very easy to start mail with a email message template (the -Q is
there only for fast startup):

   emacs -Q -nw --eval '(progn (find-file "/tmp/template.mail") (message-mode))'

The message template, here /tmp/template.mail, can contail pre-filled
(To: Subject:) and have a MIME attachement filename pointing to
external source via "filename="

    To:
    Subject:
    --text follows this line--

    <#part type="text/x-diff" filename="/tmp/file.patch" disposition=inline>
    <#/part>
--- /etc/devscripts.conf ---
--- ~/.devscripts --- Not present
#564268#10
Date:
2010-01-08 21:17:57 UTC
From:
To:
Is this not solved by using --no-mutt (or setting NMUDIFF_MUTT=no in
~/.devscripts) so that sensible-editor runs?  That would likely be
emacs in your environment.  Once you make any potential modifications
and exit emacs, nmudiff will send the email.

#564268#15
Date:
2010-01-09 07:41:02 UTC
From:
To:
James Vega <jamessan@debian.org> writes:

This is different.

In the example sent in previous mail, the Emacs "message-mode" provides
a complete environment to format and send the mail. In this mode it is
possile to:

    - Attach more log files
    - Attach more build logs
    ...
    for the maintainer

If Emacs is only used as a plain editor, the benefits of complete Email
interface is lost.

If I understood correctly, the --mutt option offer complete mail
interface; here the suggested option --emacs would do the same; to let
the user handle sending the email from that interface.

Jari

#564268#20
Date:
2010-01-09 14:41:06 UTC
From:
To:
I guess you can instruct emacs to load message-mode if the file path matches a
certain pattern? If so nmudiff could be changed to output a tempfile with a
known prefix

filippo

#564268#25
Date:
2010-01-09 20:25:39 UTC
From:
To:
Filippo Giunchedi <filippo@debian.org> writes:

You could (e,g, "*.mail"), but it would need a specific setting to
everybody's ~/.emacs . Would it be hard to arrange call like the one
presented in the bug report:

    With separate --emacs option, it would be a sign ro signify that the
    user is taking reponsible for sending the mail from inside Emacs.

Some users may prefer to use Emacs for "sensible-editor" and have the
nmudiff(1) send the mail.

That would serve both.

Jari

#564268#30
Date:
2010-01-09 20:40:42 UTC
From:
To:
If we go that way, I'd prefer to have a general --mua option that
accepts mutt, emacs, and can later be extended to support other MUAs.

#564268#35
Date:
2010-01-11 15:36:38 UTC
From:
To:
James Vega <jamessan@debian.org> writes:

That would be even better.

Jari