[PATCH] emacs: Add notmuch-before/after-tag-hook

Daniel Schoepe daniel.schoepe at googlemail.com
Mon May 16 13:48:24 PDT 2011


From the commit message:

    emacs: add notmuch-before- and notmuch-after-tag-hook
    
    This patch adds hooks that are run before/after messages are tagged
    from the emacs interface.  In order to implement this and to avoid
    having hooks parse all the arguments to the notmuch binary again, I
    created a `notmuch-tag' function that other modules should use instead
    of running (notmuch-call-notmuch-process "tag" ...) directly.

I wasn't sure about adding the notmuch-tag function, but I think it is a
bit cleaner than calling notmuch-call-notmuch-process directly in so
many places anyway.

Of course, any comments or criticism is appreciated.

-- Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-emacs-add-notmuch-before-and-notmuch-after-tag-hook.patch
Type: text/x-diff
Size: 5794 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20110516/e50d1695/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20110516/e50d1695/attachment.pgp>


More information about the notmuch mailing list