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

2016-11-02 Thread David Bremner
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 notmuch-company backend to ensure that the hook is also called company completion

[PATCH v2] emacs: add compatability functions for emacs 23

2016-11-02 Thread Matt Armstrong
Mark Walters writes: [...] > Version 1 of this patch (with some discussion) is at > id:1477191835-17828-1-git-send-email-markwalters1009 at gmail.com > > The general consensus is that we should not define functions outside > our namespace, even when they are just backports of functions from > la

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

2016-11-02 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. --- notmuch.desktop | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff

[PATCH 1/2] build: only install the notmuch desktop file with emacs

2016-11-02 Thread Jani Nikula
The notmuch desktop file execs the emacs interface; no use installing it if notmuch-emacs has not been installed. --- Makefile.local | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.local b/Makefile.local index c60f4e7d4792..7cf694b068a0 100644 --- a/Makefile.local +++ b/Makefile.loc

[PATCH] build: install notmuch-emacs-mua if configured with emacs

2016-11-02 Thread Jani Nikula
notmuch-emacs-mua is good enough to be installed with notmuch-emacs. --- Makefile.local | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.local b/Makefile.local index d1b0585f2866..c60f4e7d4792 100644 --- a/Makefile.local +++ b/Makefile.local @@ -311,6 +311,9 @@ notmuch-shared: $(not

[PATCH v3] completion: complete mimetype: search prefix

2016-11-02 Thread Jani Nikula
Use /etc/mime.types if available, parsed using a sed one-liner, and fall back to a handful of common types otherwise. --- v2: smarter sed thanks to Lucas Hoffmann v3: use Tomi's sed... though I'm not sure what the improvement is... --- completion/notmuch-completion.bash | 32 +++

Re: [PATCH] man: advertize notmuch-emacs-mua as notmuch emacs-mua subcommand

2016-11-02 Thread Jani Nikula
On Wed, 02 Nov 2016, David Bremner wrote: > Jani Nikula writes: > >> 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 inse

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

2016-11-02 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 b/doc/man1/notm

Re: [PATCH 1/2] emacs: tree: allow the user to decrypt the message pane

2016-11-02 Thread David Bremner
Mark Walters writes: > This makes $ in the tree pane toggle decryption in the message > pane. Without this the user can only decrypt the message pane by > switching to it, or by setting decryption on globally by setting > notmuch-crypto-process-mime to t. > --- > > This seems an obvious extension

Re: [PATCH v2] notmuch-emacs-mua: add support for mailto: URL handling

2016-11-02 Thread David Bremner
Jani Nikula writes: > Add support for composing an email in the Notmuch Emacs UI using a > mailto: URL. The mailto: URL mode is mutually exclusive with > specifying other message modifying parameters and positional > arguments. > pushed to master d ___

Re: [PATCH v3] emacs: make faces readable on dark backgrounds.

2016-11-02 Thread David Bremner
Matt Armstrong writes: > The notmuch-tag-flagged, notmuch-search-flagged-face and > notmuch-crypto-part-header faces defaulted to "blue", which is nearly > unreadable when a dark background is in use. This is addressed by using > "LightBlue1" for dark backgrounds. > > As a side effect, these fac

Re: [PATCH] man: advertize notmuch-emacs-mua as notmuch emacs-mua subcommand

2016-11-02 Thread David Bremner
Jani Nikula writes: > 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/