Re: [PATCH] emacs: add notmuch-address-post-completion-hook

2016-11-03 Thread Mark Walters
On Thu, 03 Nov 2016, David Bremner wrote: > This hook can be used to update the message based on the results of > address completion. For example I use it to set the From address based > on the To address just completed. > > The post-completion command is added to the

[PATCH v3] emacs: add notmuch-address-post-completion-hook

2016-11-03 Thread David Bremner
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

Re: [PATCH v3] emacs: add notmuch-address-post-completion-hook

2016-11-03 Thread Mark Walters
On Thu, 03 Nov 2016, David Bremner wrote: > 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

[PATCH v2 0/2] add postpone support

2016-11-03 Thread Mark Walters
This is version 2 of this set. The previous version is at id:1473004582-19396-1-git-send-email-markwalters1...@gmail.com The diff between v1 and v2 is below. The main change is that we store the secure tag in a temporary header and restore it afterwards. This avoids a bug in the way emacs deals

[PATCH 6/8] emacs/desktop: update to use notmuch-emacs-mua and handle mailto

2016-11-03 Thread Jani Nikula
With the mailto: handling in notmuch-emacs-mua, we can update the desktop file to advertize we can be set as the default application to handle email. While at it, add GenericName and Comment to be more informative. --- emacs/notmuch-emacs-mua.desktop | 5 - 1 file changed, 4 insertions(+), 1

[PATCH 3/8] emacs: move notmuch-emacs-mua under emacs

2016-11-03 Thread Jani Nikula
While the notmuch-emacs-mua script is a sort of cli command, it is really a part of notmuch-emacs. Move it under the emacs directory. --- notmuch-emacs-mua => emacs/notmuch-emacs-mua | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename notmuch-emacs-mua => emacs/notmuch-emacs-mua (100%)

[PATCH 0/8] improvements around notmuch-emacs-mua

2016-11-03 Thread Jani Nikula
This series brings together a bunch of my previous patches [1][2][3], and adds some new ones, to make notmuch-emacs-mua a first class notmuch citizen. Document it as 'notmuch emacs-mua'. Do bash completion. Install it as part of notmuch-emacs. Have the desktop file use notmuch-emacs-mua. Update

[PATCH 7/8] build: install notmuch-emacs-mua.desktop file with emacs

2016-11-03 Thread Jani Nikula
There is really no need to have a separate install target for the desktop file. Just install the desktop file with emacs, with a configure option to opt out. --- configure| 13 + emacs/Makefile.local | 5 ++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git

[PATCH 2/8] man: advertize notmuch-emacs-mua as notmuch emacs-mua subcommand

2016-11-03 Thread Jani Nikula
With subcommand handling for external commands we can now hide the implementation detail of emacs-mua being a separate notmuch-emacs-mua script. --- doc/man1/notmuch-emacs-mua.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/man1/notmuch-emacs-mua.rst

[PATCH 8/8] build: update the desktop database after installing the desktop file

2016-11-03 Thread Jani Nikula
This makes the option to choose Notmuch as mailto: handler show up in the desktop environment settings. --- emacs/Makefile.local | 1 + 1 file changed, 1 insertion(+) diff --git a/emacs/Makefile.local b/emacs/Makefile.local index a984023f7840..3192b5a9c3cc 100644 --- a/emacs/Makefile.local +++

[PATCH 5/8] notmuch.desktop: move under emacs as notmuch-emacs-mua.desktop

2016-11-03 Thread Jani Nikula
The notmuch.desktop file is part of notmuch-emacs. Move it under emacs, and rename as notmuch-emacs-mua.desktop to reflect this. --- Makefile.local | 5 - emacs/Makefile.local | 6 ++ notmuch.desktop =>

[PATCH v4] emacs: add notmuch-address-post-completion-hook

2016-11-03 Thread David Bremner
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