[PATCH] configure: add options to disable emacs/zsh/bash and choose install dir.

2011-01-23 Thread Michal Sojka
Hi C?dric, thanks for the patch. I checked it and it didn't break anything for me. But it made me thinking why zsh completion does not work for a long time. Carl, please apply the patch below. -Michal >From 72f6488b39aec318264caf26d2b163f73d3cf694 Mon Sep 17 00:00:00 2001 From: Michal Sojka

[PATCH 3.5/8] Query parser tests for wildcard queries.

2011-01-23 Thread Austin Clements
;, "P", FALSE, FALSE); > +_notmuch_qparser_add_db_prefix (qparser, "lit", "L", TRUE, FALSE); > +_notmuch_qparser_add_db_prefix (qparser, "tag", "K", TRUE, FALSE); > return qparser; > } > > ___ > notmuch mailing list > notmuch at notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch > -- next part -- An HTML attachment was scrubbed... URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20110123/e2d97574/attachment.html>

[PATCH] configure: add options to disable emacs/zsh/bash and choose install dir.

2011-01-23 Thread Cédric Cabessa
add --bashcompletiondir and --zshcompletiondir (like --emacslispdir) to choose installation dir for bash/zsh completion files Make some features optional: --without-emacs / --with-emacs=no do not install lisp file --without-bash-completion / --with-bash-completion=no do not install bash

[PATCH 4/4] Add first date parser tests

2011-01-23 Thread Michal Sojka
Some tests are currently broken for several reasons: 1) in the context of e-mails, we implicitly mean past dates e.g. Monday means the last Monday and not the next one, as it is currently implemented by the parser. 2) yesterday means "now -24 hours" and I think that should be "midnight

[PATCH 3/4] Use the time/date parser for after: and before: prefixes

2011-01-23 Thread Michal Sojka
This allows to have queries like: after:10am after:"10:00 GMT" after:"now -2 hours" after:"2 hours ago" after:yesterday after:"last month" --- lib/database.cc | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/database.cc b/lib/database.cc index

[PATCH 2/4] Compile the date/time parser into notmuch library

2011-01-23 Thread Michal Sojka
--- Makefile.local |3 + configure |8 ++ lib/Makefile.local |5 +- lib/config.h | 45 + lib/getdate.c | 185 +++- lib/getdate.h |9 +++ lib/getdate.y | 15 - 7 files changed,

[PATCH 1/4] Import date/time parser from GNU coreutils

2011-01-23 Thread Michal Sojka
This function have quite a lot dependencies. We may reduce them later it it is a problem. --- lib/c-ctype.c | 398 +++ lib/c-ctype.h | 297 + lib/getdate.c | 3497 lib/getdate.h | 22 + lib/getdate.y | 1572

[PATCH 0/4] Versatile date/time parser

2011-01-23 Thread Michal Sojka
Hi all, the following patch series brings into notmuch date/time parser stolen from GNU coreutils. It can be applied on top of custom query parser patches from Austin Clements. This is RFC and it not meant for merging. With these patches you can specify the date/time in many ways such as:

[PATCH] test: Make it easier to resolve conflicts when adding new tests

2011-01-23 Thread Michal Sojka
Currently, there are two places in the test framework that contain very long list on a single line. Whenever a test is added (or changed) in several branches and these branches are merged, it results in conflict which is hard to resolve because one has to go through the whole long line to find

[PATCH] emacs: View the output of pipe command when it fails

2011-01-23 Thread Michal Sojka
Previously, the user didn't know whether the pipe command succeeded or not. It was only possible to find it out by manually inspecting the work done (or not done) by the command or by manually switching to *notmuch-pipe* buffer and determine it from command output. For this the user had to first

[PATCH] test: Make it easier to resolve conflicts when adding new tests

2011-01-23 Thread Michal Sojka
Currently, there are two places in the test framework that contain very long list on a single line. Whenever a test is added (or changed) in several branches and these branches are merged, it results in conflict which is hard to resolve because one has to go through the whole long line to find

[PATCH 0/4] Versatile date/time parser

2011-01-23 Thread Michal Sojka
Hi all, the following patch series brings into notmuch date/time parser stolen from GNU coreutils. It can be applied on top of custom query parser patches from Austin Clements. This is RFC and it not meant for merging. With these patches you can specify the date/time in many ways such as:

[PATCH 2/4] Compile the date/time parser into notmuch library

2011-01-23 Thread Michal Sojka
--- Makefile.local |3 + configure |8 ++ lib/Makefile.local |5 +- lib/config.h | 45 + lib/getdate.c | 185 +++- lib/getdate.h |9 +++ lib/getdate.y | 15 - 7 files changed,

[PATCH 4/4] Add first date parser tests

2011-01-23 Thread Michal Sojka
Some tests are currently broken for several reasons: 1) in the context of e-mails, we implicitly mean past dates e.g. Monday means the last Monday and not the next one, as it is currently implemented by the parser. 2) yesterday means now -24 hours and I think that should be midnight -24

Re: [PATCH] configure: add options to disable emacs/zsh/bash and choose install dir.

2011-01-23 Thread Xavier Maillard
Hi Cedric, On Sun, 23 Jan 2011 14:33:43 +0100, Cédric Cabessa c...@ryick.net wrote: add --bashcompletiondir and --zshcompletiondir (like --emacslispdir) to choose installation dir for bash/zsh completion files Make some features optional: --without-emacs / --with-emacs=no do not install