Re: [PATCH] emacs: filter tag completions by current query

2018-10-08 Thread David Edmondson
On Monday, 2018-10-08 at 14:46:25 +02, Jeff Templon wrote: > hi guys, > > a question from a newbie - where are all these things documented? The > notmuch-emacs documentation that I could find was pretty basic IIRC. Jeff, which things do you mean? > Be glad to hear that I've been looking in the

Re: [PATCH] emacs: filter tag completions by current query

2018-10-08 Thread David Edmondson
Looks good - a nice usability improvement. On Monday, 2018-10-08 at 04:47:52 -07, William Casarin wrote: > When filtering by tags in notmuch-search-filter-by-tag, only return tags > related to the current query. > > Before, it was returning all tags. There's no reason to refine the > current

Re: [PATCH] emacs: filter tag completions by current query

2018-10-08 Thread David Edmondson
On Monday, 2018-10-08 at 15:14:50 +02, Jeff Templon wrote: > Hi, > > David Edmondson writes: > >> On Monday, 2018-10-08 at 14:46:25 +02, Jeff Templon wrote: >> >>> hi guys, >>> >>> a question from a newbie - where are all these things documented? The >>> notmuch-emacs documentation that I could

Re: [PATCH] emacs: filter tag completions by current query

2018-10-08 Thread Jeff Templon
Hi, David Edmondson writes: > On Monday, 2018-10-08 at 14:46:25 +02, Jeff Templon wrote: > >> hi guys, >> >> a question from a newbie - where are all these things documented? The >> notmuch-emacs documentation that I could find was pretty basic IIRC. > > Jeff, which things do you mean? I see

[PATCH] emacs: filter tag completions by current query

2018-10-08 Thread William Casarin
When filtering by tags in notmuch-search-filter-by-tag, only return tags related to the current query. Before, it was returning all tags. There's no reason to refine the current query with tags that don't exist in the current result set. Signed-off-by: William Casarin --- emacs/notmuch.el | 2

Re: [PATCH] emacs: filter tag completions by current query

2018-10-08 Thread Jeff Templon
hi guys, a question from a newbie - where are all these things documented? The notmuch-emacs documentation that I could find was pretty basic IIRC. Be glad to hear that I've been looking in the wrong places. David Edmondson writes: > Looks good - a nice usability improvement. JT

Remaining NEWS for 0.28

2018-10-08 Thread David Bremner
Please speak up soon if you'd prefer to describe your contribution differently. [PATCH 1/4] NEWS: emacs news for 0.28 [PATCH 2/4] NEWS: note Sebastian's windows-1252 fix [PATCH 3/4] NEWS: note database path change [PATCH 4/4] NEWS: note zsh completion rewrite

[PATCH 3/4] NEWS: note database path change

2018-10-08 Thread David Bremner
--- NEWS | 9 + 1 file changed, 9 insertions(+) diff --git a/NEWS b/NEWS index 9c25a6ca..ea86c7a7 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,15 @@ Improve threading Handle mislabeled Windows-1252 parts. +Command Line Interface +-- + +Support relative database

[PATCH 2/4] NEWS: note Sebastian's windows-1252 fix

2018-10-08 Thread David Bremner
--- NEWS | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index 40e9defe..9c25a6ca 100644 --- a/NEWS +++ b/NEWS @@ -4,11 +4,15 @@ Notmuch 0.28 (UNRELEASED) General --- -The threading algorithm has been updated to consider all references, -not

Re: [PATCH] Avoid spurious gcc warning in debugger.c

2018-10-08 Thread David Bremner
Daniel Kahn Gillmor writes: > Without this patch, gcc 8.2.0-7 complains: > > debugger.c: In function ‘debugger_is_active’: > debugger.c:40:24: warning: passing argument 2 to restrict-qualified parameter > aliases with argument 1 [-Wrestrict] > if (readlink (buf, buf, sizeof (buf)) != -1 &&

Re: [PATCH] test: git should ignore message-id-parse

2018-10-08 Thread David Bremner
Daniel Kahn Gillmor writes: > b31e44c678bf3bfe81bcc5f159e627551f12700f introduced message-id-parse > as a new binary created by the test suite. It shows up as sometihng > additional to git, but git ought to know to ignore it. pushed to master, with one spelling fix. d

Re: [PATCH] emacs: filter tag completions by current query

2018-10-08 Thread David Bremner
David Edmondson writes: > On Monday, 2018-10-08 at 15:14:50 +02, Jeff Templon wrote: > >> Hi, >> >> David Edmondson writes: >> >>> On Monday, 2018-10-08 at 14:46:25 +02, Jeff Templon wrote: >>> hi guys, a question from a newbie - where are all these things documented? The

Re: [PATCH v1 2/2] emacs: Update integration with third party packages.

2018-10-08 Thread David Bremner
David Edmondson writes: > `mm-inline-text-html-with-images' was removed from mm-decode.el in > 2016 and replaced with `mm-html-inhibit-images'. > > `gnus-select-frame-set-input-focus' was removed from gnus-util.el in > 2016 and existed only for XEmacs compatibility. pushed to master d

Re: [PATCH] Avoid spurious gcc warning in debugger.c

2018-10-08 Thread Daniel Kahn Gillmor
On Mon 2018-10-08 16:47:08 +0100, David Edmondson wrote: > On Monday, 2018-10-08 at 12:42:18 -03, David Bremner wrote: > >> Daniel Kahn Gillmor writes: >> >>> Without this patch, gcc 8.2.0-7 complains: >>> >>> debugger.c: In function ‘debugger_is_active’: >>> debugger.c:40:24: warning: passing

Re: [PATCH 1/2] WIP: groundwork for new sorting API

2018-10-08 Thread William Casarin
David Bremner writes: > --- a/lib/notmuch.h > +++ b/lib/notmuch.h > @@ -773,6 +773,10 @@ notmuch_query_create (notmuch_database_t *database, > * Sort values for notmuch_query_set_sort. > */ > typedef enum { > +/** > + * Value was not set > + */ > +NOTMUCH_SORT_UNSET = -1, >

Re: [BUG] Can't search for some square brackets in From:

2018-10-08 Thread David Bremner
Justin Humm writes: > Hello, > > I struggle with searching the From field of mails, that have square brackets > in it. The first instance of that problem I found is > > From: =?UTF-8?Q?Shedhalle_T=c3=bcbingen_[Festival]?= > > In this case, on 0.27 I'm unable to find any mail with > >

[BUG] Can't search for some square brackets in From:

2018-10-08 Thread Justin Humm
Hello, I struggle with searching the From field of mails, that have square brackets in it. The first instance of that problem I found is From: =?UTF-8?Q?Shedhalle_T=c3=bcbingen_[Festival]?= In this case, on 0.27 I'm unable to find any mail with from:"Shedhalle" from:"Tübingen"

Re: Proposed New sort API

2018-10-08 Thread William Casarin
David Bremner writes: > I started looking at William's sorting patches [1], but the > proliferation of sorting options bugged me a bit. I decided to sketch > out a new more flexible API. > > In the new API, there is is a sort "key", currently mapped one-to-one > to value slots, but potentially

[PATCH 4/4] NEWS: note zsh completion rewrite

2018-10-08 Thread David Bremner
--- NEWS | 5 + 1 file changed, 5 insertions(+) diff --git a/NEWS b/NEWS index ea86c7a7..76fdf2ce 100644 --- a/NEWS +++ b/NEWS @@ -32,6 +32,11 @@ Call `notmuch-mua-send-hook` hooks when sending a message This hook was documented, but not functional for a very long time. +Completion

[PATCH 1/4] NEWS: emacs news for 0.28

2018-10-08 Thread David Bremner
This is all dme's work. --- NEWS | 9 + 1 file changed, 9 insertions(+) diff --git a/NEWS b/NEWS index fbfea956..40e9defe 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,15 @@ in the database). The heuristic for choosing a parent message has also been updated to again consider the

Re: [PATCH] Avoid spurious gcc warning in debugger.c

2018-10-08 Thread David Edmondson
On Monday, 2018-10-08 at 12:42:18 -03, David Bremner wrote: > Daniel Kahn Gillmor writes: > >> Without this patch, gcc 8.2.0-7 complains: >> >> debugger.c: In function ‘debugger_is_active’: >> debugger.c:40:24: warning: passing argument 2 to restrict-qualified >> parameter aliases with argument