update count API round 2

2014-12-30 Thread David Bremner
This obsoletes id:1419855291-31972-1-git-send-email-da...@tethera.net It got bigger when I updated the python and ruby bindings. The go bindings are still broken by this series. The first 4 commits are just updating the test suite so that I can actually see the breakage in the API bind

[Patch v2 2/5] test: add python tests for query.count_{messages,threads}

2014-12-30 Thread David Bremner
These are more or less cargo culted from the existing python tests. In particular they compare against the results of doing an analogous query using the CLI. --- test/T390-python.sh | 20 1 file changed, 20 insertions(+) diff --git a/test/T390-python.sh b/test/T390-python.sh

[Patch v2 5/5] lib: add status return to notmuch_query_count_{message,threads}

2014-12-30 Thread David Bremner
We follow many other notmuch_ functions by having a status return and an output parameter. I decided not to add compatibility wrappers but just to break the API because the old API seems worth encouraging people to move away from. This change is large than might otherwise be desirable because it

[Patch v2 1/5] build: integrate building ruby bindings into notmuch build process

2014-12-30 Thread David Bremner
Because ruby generates a Makefile, we have to use recursive make. Because mkmf.rb hardcodes the name Makefile, put our Makefile{.local} in the parent directory. --- bindings/Makefile | 7 +++ bindings/Makefile.local | 18 ++ configure | 18 +

[Patch v2 4/5] bindings/ruby: gitignore *.o

2014-12-30 Thread David Bremner
--- bindings/ruby/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/bindings/ruby/.gitignore b/bindings/ruby/.gitignore index fa25752..d682798 100644 --- a/bindings/ruby/.gitignore +++ b/bindings/ruby/.gitignore @@ -4,3 +4,4 @@ Makefile mkmf.log notmuch.so +*.o -- 2.1.3 _

[Patch v2 3/5] test: port existing python tests to ruby

2014-12-30 Thread David Bremner
This is pretty much a line by line translation. Add a dependency of the test suite on the ruby bindings, as these are currently not built by default. --- test/Makefile.local | 2 +- test/T395-ruby.sh | 86 + test/test-lib.sh| 5 3 f

Images being displayed inline depending on the window size

2014-12-30 Thread Sebastian Fischmeister
Hi, I have an email with 8 pictures attached. When I open the email (notmuch-search-show-thread), some of them are opened and shown inline, others are not. It seems that notmuch only shows the ones that fit on the screen depending on how much space emacs has. E.g., the ones with a size of 800x600

update count API round 2

2014-12-30 Thread David Bremner
This obsoletes id:1419855291-31972-1-git-send-email-david at tethera.net It got bigger when I updated the python and ruby bindings. The go bindings are still broken by this series. The first 4 commits are just updating the test suite so that I can actually see the breakage in the API bindin

[Patch v2 2/5] test: add python tests for query.count_{messages,threads}

2014-12-30 Thread David Bremner
These are more or less cargo culted from the existing python tests. In particular they compare against the results of doing an analogous query using the CLI. --- test/T390-python.sh | 20 1 file changed, 20 insertions(+) diff --git a/test/T390-python.sh b/test/T390-python.sh

[Patch v2 5/5] lib: add status return to notmuch_query_count_{message,threads}

2014-12-30 Thread David Bremner
We follow many other notmuch_ functions by having a status return and an output parameter. I decided not to add compatibility wrappers but just to break the API because the old API seems worth encouraging people to move away from. This change is large than might otherwise be desirable because it

[Patch v2 4/5] bindings/ruby: gitignore *.o

2014-12-30 Thread David Bremner
--- bindings/ruby/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/bindings/ruby/.gitignore b/bindings/ruby/.gitignore index fa25752..d682798 100644 --- a/bindings/ruby/.gitignore +++ b/bindings/ruby/.gitignore @@ -4,3 +4,4 @@ Makefile mkmf.log notmuch.so +*.o -- 2.1.3

[Patch v2 1/5] build: integrate building ruby bindings into notmuch build process

2014-12-30 Thread David Bremner
Because ruby generates a Makefile, we have to use recursive make. Because mkmf.rb hardcodes the name Makefile, put our Makefile{.local} in the parent directory. --- bindings/Makefile | 7 +++ bindings/Makefile.local | 18 ++ configure | 18 +

[Patch v2 3/5] test: port existing python tests to ruby

2014-12-30 Thread David Bremner
This is pretty much a line by line translation. Add a dependency of the test suite on the ruby bindings, as these are currently not built by default. --- test/Makefile.local | 2 +- test/T395-ruby.sh | 86 + test/test-lib.sh| 5 3 f

Images being displayed inline depending on the window size

2014-12-30 Thread Sebastian Fischmeister
Hi, I have an email with 8 pictures attached. When I open the email (notmuch-search-show-thread), some of them are opened and shown inline, others are not. It seems that notmuch only shows the ones that fit on the screen depending on how much space emacs has. E.g., the ones with a size of 800x600