Re: [PATCH 4/4] python-cffi: switch to notmuch_database_{open,create}_with_config

2021-10-31 Thread Tomi Ollila
On Sat, Oct 30 2021, David Bremner wrote: > Since release 0.32, libnotmuch provides searching for database and > configuration paths. This commit changes the python module notmuch2 to > use those facilities. > > This fixes the bug reported in [1], along with a couple of the > deprecation warnings

Re: [PATCH] emacs: don't add space to tag completion candidates.

2021-10-31 Thread Tomi Ollila
On Sat, Oct 30 2021, David Bremner wrote: > "inwit" writes: > >> Works as expected under selectrum! Thanks! >> >> > > right, I guess the question is how annoying it is for users of standard > emacs completion. I generally enter one tag at a time, so it won't > really affect me. I recall doing ad

Re: [RFC PATCH] python-cffi out-of-tree build

2021-10-31 Thread Tomi Ollila
On Sun, Oct 31 2021, David Bremner wrote: > Tomi Ollila writes: > >> setup.py and _build.py to refer some other files based on directory >> where setup.py is located (os.path.dirname(sys.argv[0]). >> >> Dropped bindings/python-cffi/version.txt and refer ../../version.txt >> instead -- _build.py a

Re: [RFC PATCH] python-cffi out-of-tree build

2021-10-31 Thread David Bremner
Tomi Ollila writes: > setup.py and _build.py to refer some other files based on directory > where setup.py is located (os.path.dirname(sys.argv[0]). > > Dropped bindings/python-cffi/version.txt and refer ../../version.txt > instead -- _build.py already refers ../../lib so why have version.txt > t

[PATCH] python-cffi: fix out-of-tree build

2021-10-31 Thread David Bremner
The main idea is to replace the hack of copying version.txt into the bindings source with a generated _notmuch_config.py file. This will mean that the bindings only build after configuring and building notmuch itself. Given those constraints, "pip install ." should work. --- Makefile.local