]> git.notmuchmail.org Git - notmuch/commit
Add an argument to notmuch-mua-mail
authorAaron Ecay <aaronecay@gmail.com>
Sat, 17 Dec 2011 15:24:47 +0000 (10:24 -0500)
committerDavid Bremner <bremner@debian.org>
Sun, 18 Dec 2011 12:18:06 +0000 (08:18 -0400)
commita2d0215a58ea20f904e2b5dc3e8d5623c82ed6f3
treecfe2a4941a2973f2bec7573bd7dfb2ab26988ddf
parent47b5797261f4d0f1dcf74e507452e120788964cf
Add an argument to notmuch-mua-mail

From the emacs changelog:

  ** `compose-mail' now accepts an optional 8th arg, RETURN-ACTION, and
  passes it to the mail user agent function.  This argument specifies an
  action for returning to the caller after finishing with the mail.
  This is currently used by Rmail to delete a mail window.

Under Emacs 24, notmuch breaks when this argument is passed to it by a
function in another part of Emacs.  One example of a functon that does
this is report-emacs-bug -- so notmuch users cannot file emacs bug
reports!

This patch also adds a &rest argument to the arg-list of this function,
to future-proof against such changes.  This is adapted from the approach
taken by message-mail, a similar function built into emacs.

This patch was originally submitted by richardmurri@gmail.com on Aug. 1:
id:"877h6x6oor.fsf@veracitynetworks.com"
emacs/notmuch-mua.el