This patch series replaces my original set[1]. I've been using this
extensivly for about 3 weeks now and I'm pretty happy with it. I've
added the ability to change sort-order on the fly with the O key
binding.
Main use cases
--
* subject sorting: github subscriptions
Sorting through
---
doc/man1/notmuch-address.rst | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/doc/man1/notmuch-address.rst b/doc/man1/notmuch-address.rst
index cc31cc5a..38ae9a25 100644
--- a/doc/man1/notmuch-address.rst
+++ b/doc/man1/notmuch-address.rst
@@ -77,7 +77,11 @@ Supported o
This generalizes notmuch-search-oldest-first to
notmuch-search-sort-order. notmuch-search-sort-order can now be one
of:
* oldest-first
* newest-first
* subject-ascending
* subject-descending
* from-ascending
* from-descending
Order toggling now simply inverts the corresponding option.
Create a notmuch-sort-orders alist to be shared between
notmuch-search-sort-orders and notmuch-change-search-order
---
emacs/notmuch-lib.el | 19 ---
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index ee7b67d3..16725863
notmuch-search-change-order pops up a completing-read minibuffer
completion window for choosing sort-orders.
---
emacs/notmuch.el | 14 ++
1 file changed, 14 insertions(+)
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 334458b7..93b4e582 100644
--- a/emacs/notmuch.el
+++ b/ema
* add {from,subject}-{ascending,descending} sort options
---
lib/notmuch.h| 16
lib/query.cc | 12
notmuch-search.c | 4
3 files changed, 32 insertions(+)
diff --git a/lib/notmuch.h b/lib/notmuch.h
index f26565f3..071bfe4d 100644
--- a/lib/notmuch.h
+++
---
bindings/ruby/init.c | 24
1 file changed, 24 insertions(+)
diff --git a/bindings/ruby/init.c b/bindings/ruby/init.c
index 5556b43e..ace8f666 100644
--- a/bindings/ruby/init.c
+++ b/bindings/ruby/init.c
@@ -104,6 +104,30 @@ Init_notmuch (void)
*/
rb_define_
On Tue, Sep 26 2017, Tomi Ollila wrote:
>> +
>> +set -eu
>> +
>> +srcdir="$(cd "$(dirname "$0")"/.. && pwd)"
>
> quotes unnecessary above, but may clarify things...
outmost quotes, that is -- e.g. srcdir=$(cd "$(dirname "$0")"/.. && pwd)
-- other quotes are necessary
>
>> +builddir=$(mktemp -d)
On Mon, Sep 25 2017, Jani Nikula wrote:
> Something I used for 'git bisect run', but we should really add this
> as part of our process.
>
> Can also be used for running out-of-tree tests with e.g.:
>
> $ devel/out-of-tree-build-check.sh V=1 test
This series looks pretty good (there are some ""-q
Jani Nikula writes:
> + A regular expression delimited with // that will be matched
> + against the path of the file or directory relative to the
> + database path. The beginning and end of string must be
> + explictly anchored. For example, /.*/foo$/ would match
> +
Daniel Kahn Gillmor writes:
> On Mon 2017-09-25 08:34:13 -0300, David Bremner wrote:
>> I think there is two different discussions one could be having here; one
>> about the UI, the other about the implimentation.
>>
>> From the UI point of view,
>
> Are you using the term "UI" to mean "API" here
Something I used for 'git bisect run', but we should really add this
as part of our process.
Can also be used for running out-of-tree tests with e.g.:
$ devel/out-of-tree-build-check.sh V=1 test
---
devel/out-of-tree-build-check.sh | 16
1 file changed, 16 insertions(+)
create
Make a distinction between source and build directories.
---
test/T440-emacs-hello.sh | 2 +-
test/T450-emacs-show.sh | 2 +-
test/T460-emacs-tree.sh | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/T440-emacs-hello.sh b/test/T440-emacs-hello.sh
index 76e795937c6c..d23
Make a distinction between source and build directories.
---
test/T355-smime.sh | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/test/T355-smime.sh b/test/T355-smime.sh
index b813b6cad2e5..1523f17b9f6f 100755
--- a/test/T355-smime.sh
+++ b/test/T355-smime.sh
@@ -10,7 +10
Make a distinction between source and build directories.
---
test/T310-emacs.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/T310-emacs.sh b/test/T310-emacs.sh
index b8a89a4ac4c9..7f1c75630ca9 100755
--- a/test/T310-emacs.sh
+++ b/test/T310-emacs.sh
@@ -3,13 +3,13 @
It should now work without.
---
configure | 4
1 file changed, 4 deletions(-)
diff --git a/configure b/configure
index c0a550c7f9fd..d3e30b53ea51 100755
--- a/configure
+++ b/configure
@@ -40,10 +40,6 @@ if [ "$srcdir" != "." ]; then
cp "$srcdir"/"$dir"/Makefile "$dir"
done
-
Make a distinction between source and build directories.
---
test/T480-hex-escaping.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/T480-hex-escaping.sh b/test/T480-hex-escaping.sh
index 28564c3c9da2..2c5bbb631305 100755
--- a/test/T480-hex-escaping.sh
+++ b/test/T4
Make a distinction between source and build directories.
---
test/T590-thread-breakage.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/T590-thread-breakage.sh b/test/T590-thread-breakage.sh
index 53932d63effe..aeb82cf4e3f3 100755
--- a/test/T590-thread-breakage.sh
+
Make a distinction between source and build directories.
---
test/T360-symbol-hiding.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/T360-symbol-hiding.sh b/test/T360-symbol-hiding.sh
index 68edc2d3a7ab..43921cb4a275 100755
--- a/test/T360-symbol-hiding.sh
+++ b/tes
Make a distinction between source and build directories.
---
test/T380-atomicity.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/T380-atomicity.sh b/test/T380-atomicity.sh
index 17a3e478aeca..45de22284cb8 100755
--- a/test/T380-atomicity.sh
+++ b/test/T380-atomicity.sh
Make a distinction between source and build directories.
---
test/T160-json.sh | 4 ++--
test/T170-sexp.sh | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/test/T160-json.sh b/test/T160-json.sh
index 765b78a6746d..91b98e5d6bdc 100755
--- a/test/T160-json.sh
+++ b/test/T160-
Make a distinction between source and build directories.
---
test/T260-thread-order.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/T260-thread-order.sh b/test/T260-thread-order.sh
index 7f71ce097eb5..fea612757c41 100755
--- a/test/T260-thread-order.sh
+++ b/test/T260-t
Make a distinction between source and build directories.
---
test/T350-crypto.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/T350-crypto.sh b/test/T350-crypto.sh
index 0e19bd08f7f3..ef3b5ec6ff18 100755
--- a/test/T350-crypto.sh
+++ b/test/T350-crypto.sh
@@ -14,7 +14,7
Make a distinction between source and build directories.
---
test/T000-basic.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/T000-basic.sh b/test/T000-basic.sh
index f3808c0753a2..7fbdcfa3036c 100755
--- a/test/T000-basic.sh
+++ b/test/T000-basic.sh
@@ -32,19 +32,
Make a distinction between source and build directories.
---
test/notmuch-test | 23 ---
1 file changed, 16 insertions(+), 7 deletions(-)
diff --git a/test/notmuch-test b/test/notmuch-test
index 9d9df7dfedbe..ca68dd416cfc 100755
--- a/test/notmuch-test
+++ b/test/notmuch-test
Make a distinction between source and build directories.
---
test/test-lib.sh | 22 --
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/test/test-lib.sh b/test/test-lib.sh
index e3b40f21743d..5ccae7aea28b 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -2
Expect the tests to be run somewhere in the build directory
hierarchy. Allow for source and build directories to be passed through
the environment.
---
test/export-dirs.sh | 32
1 file changed, 32 insertions(+)
create mode 100644 test/export-dirs.sh
diff --git a/
Make a distinction between source and build directories.
---
performance-test/perf-test-lib.sh | 12
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/performance-test/perf-test-lib.sh
b/performance-test/perf-test-lib.sh
index c89d5aab39a0..56538abddcdb 100644
--- a/perfo
$TMP_DIRECTORY is a full path, while $test is not.
---
test/test-lib-common.sh | 1 -
test/test-lib.sh| 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/test/test-lib-common.sh b/test/test-lib-common.sh
index 5133917dae9a..5e53348a9438 100644
--- a/test/test-lib-common.s
Make a distinction between source and build directories.
The expectation is that anyone sourcing test-lib-common.sh has sourced
export-dirs.sh.
---
test/test-lib-common.sh | 43 +++
1 file changed, 15 insertions(+), 28 deletions(-)
diff --git a/test/test-l
Move notmuch executable check into common code. Redundant for
notmuch-test runs, but works also for individual tests.
---
test/T000-basic.sh | 10 --
test/test-lib.sh | 7 +++
2 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/test/T000-basic.sh b/test/T000-basic.sh
ind
Don't assume the tests are always run from within the source tree.
---
test/Makefile.local | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/Makefile.local b/test/Makefile.local
index 0df72c921654..1a0ab813f996 100644
--- a/test/Makefile.local
+++ b/test/Makefile.local
Don't assume the tests are always run from within the source tree.
---
test/T000-basic.sh| 2 +-
test/T010-help-test.sh| 2 +-
test/T020-compact.sh | 2 +-
test/T030-config.sh | 2 +-
test/T040-s
Don't assume the tests are always run from within the source tree.
---
performance-test/M00-new.sh | 2 +-
performance-test/M01-dump-restore.sh | 2 +-
performance-test/M02-show.sh | 2 +-
performance-test/M03-search.sh | 2 +-
performance-test/M04-reply.sh| 2 +-
pe
Turns out round trip tests didn't really round trip anything. Broken
by yours truly in 971cdc72cdb8 ("test: make it possible to have
multiple corpora"). Ooops.
---
test/T480-hex-escaping.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/T480-hex-escaping.sh b/test/T48
This lengthy but mostly mechanical series separates all source and build
directory references in the test framework to be able to properly build
and run out-of-tree tests. At the end, the 'cp -a' of the test directory
from source to build can be dropped.
The general idea is that you have current w
On Sun, Sep 24 2017, David Bremner wrote:
> Arun Isaac writes:
>
>>> In any case I've noted your feature request/bug-report. It doesn't sound
>>> terribly difficult to change, but it will need someone motivated to
>>> think about all of the related details like updating the test suite and
>>> cha
On Mon 2017-09-25 08:34:13 -0300, David Bremner wrote:
> I think there is two different discussions one could be having here; one
> about the UI, the other about the implimentation.
>
> From the UI point of view,
Are you using the term "UI" to mean "API" here? i tend to think of "UI"
as the CLI i
Jani Nikula writes:
> On Wed, 20 Sep 2017, Daniel Kahn Gillmor wrote:
>> right, about the defaults: as i'm sure you're aware, i'm trying to
>> introduce some boolean options whose default is "unset", meaning "do
>> whatever is set in the database config". In particular, --try-decrypt
>> (for th
39 matches
Mail list logo