[RFC] http://notmuchmail.org/searching/ [was: Re: Improving notmuch query documentation]

2012-03-15 Thread Austin Clements
Quoth Andrei POPESCU on Mar 16 at 2:30 am: > On Jo, 15 mar 12, 17:11:08, Austin Clements wrote: > > > > I think having two divergent documents covering the same thing is less > > than ideal, but perhaps they could be merged in the near future. > > I want to have this page more or less complete

[PATCH 5/5] emacs: make show set --exclude=flag

2012-03-15 Thread Mark Walters
Show has to set --exclude=flag to deal with cases where it is asked to show a single excluded message. It uses JSON so it can easily pass the exclude information to the user. --- emacs/notmuch-show.el |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH 4/5] cli: move show to the new --exclude= option naming scheme.

2012-03-15 Thread Mark Walters
This moves show to the --exclude=(true|false|flag) naming scheme. When `exclude' is false or flag show returns all threads that match including those that only match in an excluded message, the difference being whether excluded messages are flagged excluded. When exclude=true the behaviour

[PATCH 3/5] cli: move search to the new --exclude= naming scheme.

2012-03-15 Thread Mark Walters
This commit replaces the --no-exclude option with a --exclude=(true|false|flag) option. The default is to omit the excluded messages. The flag option only makes sense if output=summary (as otherwise there is nowhere to print the flag). In summary output exclude=false and exclude=flag give almost

[PATCH 2/5] cli: move count to the new --exclude=(true|false|flag) naming scheme.

2012-03-15 Thread Mark Walters
Move the option --no-exclude to the --exclude= scheme. Since there is no way to flag messages only true and false are implemented. Note that, for consistency with other commands, this is implemented as a keyword option rather than a boolean option. --- man/man1/notmuch-count.1 |5 +++--

[PATCH 1/5] lib: change default for notmuch_query_set_omit_excluded

2012-03-15 Thread Mark Walters
--- lib/notmuch.h | 11 ++- lib/query.cc | 10 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/lib/notmuch.h b/lib/notmuch.h index babd208..029a2c3 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -449,12 +449,13 @@ typedef enum { const char *

[PATCH 0/5] Move --no-exclude to --exclude=(true|false|flag)

2012-03-15 Thread Mark Walters
This series changes the --no-exclude options to count, search and show to --exclude=(true|false|flag). It also changes the default to true rather than flag for speed and for uncluttered command line output. This series replaces the series id:"1330779918-28024-1-git-send-email-markwalters1009 at

[PATCH] emacs-show: open excluded matches if no other matches

2012-03-15 Thread Mark Walters
Currently emacs show does not open matching but excluded messages. This is normally the desired behaviour but is probably not ideal if only excluded messages match. This patch opens all the matching (necessarily excluded) messages in this case and goes to the first one. --- emacs/notmuch-show.el

Patches for 0.12

2012-03-15 Thread Austin Clements
Quoth myself on Mar 14 at 6:16 pm: > Quoth David Bremner on Mar 10 at 10:09 am: > > > > As usual, nothing brings out the bug reports like a freeze. > > > > There are some patches that should probably go in, but could use one > > more pair of eyes. > > > >

Improving notmuch query documentation [was: Re: Partial words on notmuch search?]

2012-03-15 Thread Austin Clements
Quoth Mark Anderson on Jan 20 at 12:08 pm: > On Tue, 17 Jan 2012 16:29:23 -0600, Austin Clements > wrote: > > Quoth Andrei Popescu on Jan 18 at 12:14 am: > > > On Lu, 16 ian 12, 21:34:31, Austin Clements wrote: > > > > Quoth Andrei Popescu on Jan 16 at 10:21 pm: > > > > > Where can I read more

[RFC] http://notmuchmail.org/searching/ [was: Re: Improving notmuch query documentation]

2012-03-15 Thread Austin Clements
Quoth Andrei POPESCU on Mar 15 at 11:39 am: > On Ma, 17 ian 12, 17:29:23, Austin Clements wrote: > > Quoth Andrei Popescu on Jan 18 at 12:14 am: > > > > > > If I get around to write something myself where do you suggest I should > > > start, the wiki or the manpage? > > > > Probably expanding

[RFC] http://notmuchmail.org/searching/ [was: Re: Improving notmuch query documentation]

2012-03-15 Thread Andrei POPESCU
signature Size: 490 bytes Desc: Digital signature URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120315/35739a42/attachment.pgp>

[PATCH] emacs: fix MML quoting in replies

2012-03-15 Thread Jani Nikula
lled line of text and fail to quote that > line? It doesn't matter. The quoting is done between point and point-max, and the message body to cite is extracted right after quoting using: (setq body (buffer-substring (point) (point-max. BR, Jani. -- next part -- An HTML attachment was scrubbed... URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120315/7978b00d/attachment-0001.html>

[PATCH 6/6] NEWS: cli: manual page for notmuch configuration options

2012-03-15 Thread Jani Nikula
--- bb8ab4c man: document the notmuch configuration settings in notmuch-config(1) --- NEWS |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/NEWS b/NEWS index b2c07ab..09c5d9c 100644 --- a/NEWS +++ b/NEWS @@ -20,6 +20,12 @@ Mail store folder/file ignore NOTE:

[PATCH 5/6] NEWS: emacs: enable `notmuch-search-line-faces' by default

2012-03-15 Thread Jani Nikula
--- e06943f emacs: add default value to notmuch-search-line-faces --- NEWS |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/NEWS b/NEWS index 83d764a..b2c07ab 100644 --- a/NEWS +++ b/NEWS @@ -95,6 +95,12 @@ Generate inline patch fake attachment file names from

[PATCH 4/6] NEWS: emacs: inline patch fake attachment file names

2012-03-15 Thread Jani Nikula
--- f893d31 emacs: create patch filename from subject for inline patch fake parts --- NEWS |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/NEWS b/NEWS index 3c2cd82..83d764a 100644 --- a/NEWS +++ b/NEWS @@ -88,6 +88,13 @@ Support text/calendar MIME type The

[PATCH 3/6] NEWS: emacs: support text/calendar MIME type

2012-03-15 Thread Jani Nikula
--- cfdc9a4 emacs: support text/calendar mime type --- NEWS |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/NEWS b/NEWS index 86c0690..3c2cd82 100644 --- a/NEWS +++ b/NEWS @@ -83,6 +83,11 @@ Show view archiving key binding changes results. The thread archiving

[PATCH 2/6] NEWS: emacs: show view archiving key binding changes

2012-03-15 Thread Jani Nikula
--- d2ef4ed emacs: make show view a/A/x/X key bindings more consistent --- NEWS |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/NEWS b/NEWS index 6778442..86c0690 100644 --- a/NEWS +++ b/NEWS @@ -74,6 +74,15 @@ Fix MML tag quoting in replies inserted in

[PATCH 1/6] NEWS: emacs: Fix MML tag quoting in replies

2012-03-15 Thread Jani Nikula
--- 90f310b emacs: fix MML quoting in replies --- NEWS |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/NEWS b/NEWS index 4152e7c..6778442 100644 --- a/NEWS +++ b/NEWS @@ -68,6 +68,12 @@ New functions optionally visiting a URI to the current message at one of a

[PATCH 0/6] news for 0.12

2012-03-15 Thread Jani Nikula
Hi David, a bunch of 0.12 news items for you, the way you wanted: separate and boring. ;) They apply both to master and release branches at the time of writing. Drop the un-news-worthy ones as you see fit. J. Jani Nikula (6): NEWS: emacs: Fix MML tag quoting in replies NEWS: emacs: show

[PATCH 0/6] news for 0.12

2012-03-15 Thread David Bremner
On Wed, 14 Mar 2012 23:21:05 +0200, Jani Nikula wrote: > Hi David, a bunch of 0.12 news items for you, the way you wanted: separate and > boring. ;) They apply both to master and release branches at the time of > writing. Drop the un-news-worthy ones as you see fit. > I pushed all six. I was a

Re: [PATCH] emacs: fix MML quoting in replies

2012-03-15 Thread Jani Nikula
On Mar 15, 2012 12:08 AM, Austin Clements amdra...@mit.edu wrote: On Sun, 4 Mar 2012 10:25:38 +0200, Jani Nikula j...@nikula.org wrote: The reply MML quoting added in commit ae438cc unintentionally MML quotes also the signature/encryption MML tags added via message-setup-hook, causing the

[RFC] http://notmuchmail.org/searching/ [was: Re: Improving notmuch query documentation]

2012-03-15 Thread Andrei POPESCU
On Ma, 17 ian 12, 17:29:23, Austin Clements wrote: Quoth Andrei Popescu on Jan 18 at 12:14 am: If I get around to write something myself where do you suggest I should start, the wiki or the manpage? Probably expanding man/man7/notmuch-search-terms.7 would be the way to go. I went

[PATCH] emacs-show: open excluded matches if no other matches

2012-03-15 Thread Mark Walters
Currently emacs show does not open matching but excluded messages. This is normally the desired behaviour but is probably not ideal if only excluded messages match. This patch opens all the matching (necessarily excluded) messages in this case and goes to the first one. --- emacs/notmuch-show.el

[PATCH 1/5] lib: change default for notmuch_query_set_omit_excluded

2012-03-15 Thread Mark Walters
--- lib/notmuch.h | 11 ++- lib/query.cc | 10 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/lib/notmuch.h b/lib/notmuch.h index babd208..029a2c3 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -449,12 +449,13 @@ typedef enum { const char *

[PATCH 2/5] cli: move count to the new --exclude=(true|false|flag) naming scheme.

2012-03-15 Thread Mark Walters
Move the option --no-exclude to the --exclude= scheme. Since there is no way to flag messages only true and false are implemented. Note that, for consistency with other commands, this is implemented as a keyword option rather than a boolean option. --- man/man1/notmuch-count.1 |5 +++--

[PATCH 3/5] cli: move search to the new --exclude= naming scheme.

2012-03-15 Thread Mark Walters
This commit replaces the --no-exclude option with a --exclude=(true|false|flag) option. The default is to omit the excluded messages. The flag option only makes sense if output=summary (as otherwise there is nowhere to print the flag). In summary output exclude=false and exclude=flag give almost

[PATCH 4/5] cli: move show to the new --exclude= option naming scheme.

2012-03-15 Thread Mark Walters
This moves show to the --exclude=(true|false|flag) naming scheme. When `exclude' is false or flag show returns all threads that match including those that only match in an excluded message, the difference being whether excluded messages are flagged excluded. When exclude=true the behaviour

[PATCH 5/5] emacs: make show set --exclude=flag

2012-03-15 Thread Mark Walters
Show has to set --exclude=flag to deal with cases where it is asked to show a single excluded message. It uses JSON so it can easily pass the exclude information to the user. --- emacs/notmuch-show.el |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git

Re: [RFC] http://notmuchmail.org/searching/ [was: Re: Improving notmuch query documentation]

2012-03-15 Thread Austin Clements
Quoth Andrei POPESCU on Mar 15 at 11:39 am: On Ma, 17 ian 12, 17:29:23, Austin Clements wrote: Quoth Andrei Popescu on Jan 18 at 12:14 am: If I get around to write something myself where do you suggest I should start, the wiki or the manpage? Probably expanding

Re: Improving notmuch query documentation [was: Re: Partial words on notmuch search?]

2012-03-15 Thread Austin Clements
Quoth Mark Anderson on Jan 20 at 12:08 pm: On Tue, 17 Jan 2012 16:29:23 -0600, Austin Clements amdra...@mit.edu wrote: Quoth Andrei Popescu on Jan 18 at 12:14 am: On Lu, 16 ian 12, 21:34:31, Austin Clements wrote: Quoth Andrei Popescu on Jan 16 at 10:21 pm: Where can I read more

Re: Patches for 0.12

2012-03-15 Thread Austin Clements
Quoth myself on Mar 14 at 6:16 pm: Quoth David Bremner on Mar 10 at 10:09 am: As usual, nothing brings out the bug reports like a freeze. There are some patches that should probably go in, but could use one more pair of eyes.

Re: [RFC] http://notmuchmail.org/searching/ [was: Re: Improving notmuch query documentation]

2012-03-15 Thread Andrei POPESCU
On Jo, 15 mar 12, 17:11:08, Austin Clements wrote: I think having two divergent documents covering the same thing is less than ideal, but perhaps they could be merged in the near future. I want to have this page more or less complete and descriptive. Once this is done I should be able to

Re: [RFC] http://notmuchmail.org/searching/ [was: Re: Improving notmuch query documentation]

2012-03-15 Thread Austin Clements
Quoth Andrei POPESCU on Mar 16 at 2:30 am: On Jo, 15 mar 12, 17:11:08, Austin Clements wrote: I think having two divergent documents covering the same thing is less than ideal, but perhaps they could be merged in the near future. I want to have this page more or less complete and

[PATCH] emacs: Fix search tab completion in terminals

2012-03-15 Thread Austin Clements
In X, Emacs distinguishes the tab key, which produces a 'tab event; from C-i, which produces a ?\t event. However, in a terminal, these are indistinguishable and only produce a ?\t event. In order to simplify things, Emacs automatically translates from 'tab to ?\t (see Function key translations

Re: [Patch v2 0/3] Add test and fix exclude bug

2012-03-15 Thread Austin Clements
Quoth Mark Walters on Mar 14 at 12:26 pm: The test in the previous patches id:1331551914-28323-1-git-send-email-markwalters1...@gmail.com triggered the bug accidentally. It accidentally set the exclude tags to be = and deleted rather than just deleted. The non-existent = tag (i.e., the tag