Apparently it is a (not completely adhered to) emacs convention [1] that
only hooks that don't take arguments end in 'hook'
[1]: https://www.gnu.org/software/emacs/manual/html_node/elisp/Hooks.html
:group 'notmuch-send
:group 'notmuch-external)
:group 'notmuch-send
:group 'notmuch-external)
-(defcustom notmuch-address-completion-hook nil
+(defcustom notmuch-address-post-completion-functions nil
"Functions called after completing address.
The completed address is passed as an argument to each function.
"Functions called after completing address.
The completed address is passed as an argument to each function.
(push chosen notmuch-address-history)
(delete-region beg end)
(insert chosen)
(push chosen notmuch-address-history)
(delete-region beg end)
(insert chosen)
- (run-hook-with-args 'notmuch-address-completion-hook chosen))
+ (run-hook-with-args 'notmuch-address-post-completion-functions chosen))
(message "No matches.")
(ding))))
(t nil)))
(message "No matches.")
(ding))))
(t nil)))
(match (if (string-match notmuch-company-last-prefix arg)
(match-end 0)
0))
(match (if (string-match notmuch-company-last-prefix arg)
(match-end 0)
0))
- (post-completion (run-hook-with-args 'notmuch-address-completion-hook arg))
+ (post-completion (run-hook-with-args 'notmuch-address-post-completion-functions arg))