]> git.notmuchmail.org Git - notmuch/commit - emacs/notmuch-address.el
emacs: add notmuch-address-post-completion-hook
authorDavid Bremner <david@tethera.net>
Fri, 4 Nov 2016 01:02:43 +0000 (22:02 -0300)
committerDavid Bremner <david@tethera.net>
Fri, 4 Nov 2016 15:51:50 +0000 (12:51 -0300)
commit343534d82dc8882b3f0e2a847ee9d10ba5392809
tree616acf89bc80c11e14c129810934e2ee4a88cd16
parente5786283e7465377d828c36c951f77fe629a0885
emacs: add notmuch-address-post-completion-hook

This hook can be used to update the message based on the results of
address completion. For example using message-templ or gnus-alias to set
the From address based on the To address just completed.

The post-completion command is added to the notmuch-company backend to
ensure that the hook is also called company completion is started
without going through notmuch-address-expand-name. See the docstring of
`company-backends' for more information.
emacs/notmuch-address.el
emacs/notmuch-company.el