On Fri, Aug 03 2012, Austin Clements amdra...@mit.edu wrote:
Code LGTM, but maybe the comment should explain that this is a
workaround for a bug in Emacs, given that both sleep-for and sit-for
are supposed to process process output and run sentinels (which has
been stated in the Elisp
-Wswitch-enum is a bit awkward if a switch statement is intended to
handle just some of the named codes of an enumeration especially, and
leave the rest to the default label.
We already have -Wall, which enables -Wswitch by default, and per GCC
documentation, The only difference between -Wswitch
Hi all, immediate v2 of id:cover.1344028781.git.j...@nikula.org just
to rebase patch 3 against master. No other changes.
BR,
Jani.
Jani Nikula (7):
build: drop the -Wswitch-enum warning
lib: add a date/time parser module
test: add new test tool parse-time for date/time parser
test: add
Add a tool to support testing the date/time parser module directly and
independent of the rest of notmuch.
---
test/Makefile.local |7 ++-
test/basic |2 +-
test/parse-time.c | 145 +++
3 files changed, 152 insertions(+), 2
Build a date/time parser as part of the notmuch lib, to be used for
adding date range query support later on.
Signed-off-by: Jani Nikula j...@nikula.org
---
lib/Makefile.local |1 +
lib/parse-time-string.c | 1384 +++
lib/parse-time-string.h |
Test the date/time parser module directly. Just a small sanity test
initially.
---
test/notmuch-test |1 +
test/parse-time-string | 26 ++
2 files changed, 27 insertions(+)
create mode 100755 test/parse-time-string
diff --git a/test/notmuch-test
Add a custom value range processor to enable date and time searches of
the form date:since..until, where since and until are expressions
understood by the previously added date/time parser, to restrict the
results to messages within a particular time range (based on the Date:
header).
If since or
A brief initial test set.
---
test/notmuch-test |1 +
test/search-date | 21 +
2 files changed, 22 insertions(+)
create mode 100755 test/search-date
diff --git a/test/notmuch-test b/test/notmuch-test
index 80e687e..1654eb6 100755
--- a/test/notmuch-test
+++
---
man/man7/notmuch-search-terms.7 | 147 +++
1 file changed, 135 insertions(+), 12 deletions(-)
diff --git a/man/man7/notmuch-search-terms.7 b/man/man7/notmuch-search-terms.7
index b8ab52d..cec3785 100644
--- a/man/man7/notmuch-search-terms.7
+++
From: David Bremner brem...@debian.org
Since notmuch dump doesn't use positional arguments anymore, it seems
better to be consistent.
---
dunno how I missed the failing test in maildir-sync
man/man1/notmuch-restore.1 |2 +-
notmuch-restore.c |2 +-
test/dump-restore |
On Fri, Aug 03 2012, da...@tethera.net wrote:
The positional argument to dump was deprecated quite a while ago. For
restore, we never formally deprecated it. It seems a bit more
consistent this way, but I don't mind leaving restore alone if people
feel strongly about it.
LGTM.
jamie.
Quoth Adrien Bustany on Jul 24 at 1:03 am:
Le 20/07/2012 06:23, Austin Clements a écrit :
Quoth Adrien Bustany on Jul 19 at 9:25 pm:
Le 18/07/2012 23:40, Austin Clements a écrit :
This is subtle enough that I think it deserves a comment in the source
code explaining that tracking the talloc
Hi all, this series adds a decent date range query support to the
notmuch lib. For example:
$ notmuch search date:2012-01-01..2012-02-01
$ notmuch search date:10:00..13:00
$ notmuch search date:monday..friday
$ notmuch search date:2months5days..2weeks5hours
$ notmuch search
-Wswitch-enum is a bit awkward if a switch statement is intended to
handle just some of the named codes of an enumeration especially, and
leave the rest to the default label.
We already have -Wall, which enables -Wswitch by default, and per GCC
documentation, "The only difference between -Wswitch
Add a tool to support testing the date/time parser module directly and
independent of the rest of notmuch.
---
test/Makefile.local |9 +++-
test/basic |2 +-
test/parse-time.c | 145 +++
3 files changed, 153 insertions(+), 3
Test the date/time parser module directly. Just a small sanity test
initially.
---
test/notmuch-test |1 +
test/parse-time-string | 26 ++
2 files changed, 27 insertions(+)
create mode 100755 test/parse-time-string
diff --git a/test/notmuch-test
Add a custom value range processor to enable date and time searches of
the form date:since..until, where "since" and "until" are expressions
understood by the previously added date/time parser, to restrict the
results to messages within a particular time range (based on the Date:
header).
If
A brief initial test set.
---
test/notmuch-test |1 +
test/search-date | 21 +
2 files changed, 22 insertions(+)
create mode 100755 test/search-date
diff --git a/test/notmuch-test b/test/notmuch-test
index 80e687e..1654eb6 100755
--- a/test/notmuch-test
+++
Build a date/time parser as part of the notmuch lib, to be used for
adding date range query support later on.
Signed-off-by: Jani Nikula
---
lib/Makefile.local |1 +
lib/parse-time-string.c | 1384 +++
lib/parse-time-string.h | 95
3
---
man/man7/notmuch-search-terms.7 | 147 +++
1 file changed, 135 insertions(+), 12 deletions(-)
diff --git a/man/man7/notmuch-search-terms.7 b/man/man7/notmuch-search-terms.7
index b8ab52d..cec3785 100644
--- a/man/man7/notmuch-search-terms.7
+++
The positional argument to dump was deprecated quite a while ago. For
restore, we never formally deprecated it. It seems a bit more
consistent this way, but I don't mind leaving restore alone if people
feel strongly about it.
From: David Bremner
The syntax --output=filename is a smaller change than deleting the
output argument completely, and conceivably useful e.g. when running
notmuch under a debugger.
---
man/man1/notmuch-dump.1 |5 ++---
notmuch-dump.c |3 +--
From: David Bremner
Since notmuch dump doesn't use positional arguments anymore, it seems
better to be consistent.
---
man/man1/notmuch-restore.1 |2 +-
notmuch-restore.c |2 +-
test/dump-restore |8
3 files changed, 6 insertions(+), 6
On Fri, Aug 03 2012, Austin Clements wrote:
> Code LGTM, but maybe the comment should explain that this is a
> workaround for a bug in Emacs, given that both sleep-for and sit-for
> are supposed to process process output and run sentinels (which has
> been stated in the Elisp reference at least
-Wswitch-enum is a bit awkward if a switch statement is intended to
handle just some of the named codes of an enumeration especially, and
leave the rest to the default label.
We already have -Wall, which enables -Wswitch by default, and per GCC
documentation, "The only difference between -Wswitch
Hi all, immediate v2 of id:"cover.1344028781.git.jani at nikula.org" just
to rebase patch 3 against master. No other changes.
BR,
Jani.
Jani Nikula (7):
build: drop the -Wswitch-enum warning
lib: add a date/time parser module
test: add new test tool parse-time for date/time parser
test:
Add a tool to support testing the date/time parser module directly and
independent of the rest of notmuch.
---
test/Makefile.local |7 ++-
test/basic |2 +-
test/parse-time.c | 145 +++
3 files changed, 152 insertions(+), 2
Build a date/time parser as part of the notmuch lib, to be used for
adding date range query support later on.
Signed-off-by: Jani Nikula
---
lib/Makefile.local |1 +
lib/parse-time-string.c | 1384 +++
lib/parse-time-string.h | 95
3
Test the date/time parser module directly. Just a small sanity test
initially.
---
test/notmuch-test |1 +
test/parse-time-string | 26 ++
2 files changed, 27 insertions(+)
create mode 100755 test/parse-time-string
diff --git a/test/notmuch-test
Add a custom value range processor to enable date and time searches of
the form date:since..until, where "since" and "until" are expressions
understood by the previously added date/time parser, to restrict the
results to messages within a particular time range (based on the Date:
header).
If
A brief initial test set.
---
test/notmuch-test |1 +
test/search-date | 21 +
2 files changed, 22 insertions(+)
create mode 100755 test/search-date
diff --git a/test/notmuch-test b/test/notmuch-test
index 80e687e..1654eb6 100755
--- a/test/notmuch-test
+++
---
man/man7/notmuch-search-terms.7 | 147 +++
1 file changed, 135 insertions(+), 12 deletions(-)
diff --git a/man/man7/notmuch-search-terms.7 b/man/man7/notmuch-search-terms.7
index b8ab52d..cec3785 100644
--- a/man/man7/notmuch-search-terms.7
+++
From: David Bremner
Since notmuch dump doesn't use positional arguments anymore, it seems
better to be consistent.
---
dunno how I missed the failing test in maildir-sync
man/man1/notmuch-restore.1 |2 +-
notmuch-restore.c |2 +-
test/dump-restore
LGTM.
jamie.
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL:
<http://notmuchmail.org/pipermail/notmuch/attachments/20120804/dd80099c/attachment.pgp>
Quoth Adrien Bustany on Jul 24 at 1:03 am:
> Le 20/07/2012 06:23, Austin Clements a ?crit :
> >Quoth Adrien Bustany on Jul 19 at 9:25 pm:
> >>Le 18/07/2012 23:40, Austin Clements a ?crit :
> >>>This is subtle enough that I think it deserves a comment in the source
> >>>code explaining that
35 matches
Mail list logo