[PATCH v6 0/2] Refactor config reading to support non-regular files

2016-12-10 Thread Ioan-Adrian Ratiu
Changes since v5 (based on Tomi's feedback): * Return the same error message when config file is not found to avoid breaking test T040-setup.1. Ioan-Adrian Ratiu (1): notmuch-config: replace config reading function Jani Nikula (1): cli: abstract config file reading to a separate

[PATCH v6 1/2] cli: abstract config file reading to a separate function

2016-12-10 Thread Ioan-Adrian Ratiu
From: Jani Nikula Simplify and fix the coding style while at it. --- notmuch-config.c | 65 ++-- 1 file changed, 35 insertions(+), 30 deletions(-) diff --git a/notmuch-config.c b/notmuch-config.c index e5d42a0..bd52790 100644

[PATCH v6 2/2] notmuch-config: replace config reading function

2016-12-10 Thread Ioan-Adrian Ratiu
Config files are currently read using glib's g_key_file_load_from_file function which is very inconvenient because it's limited by design to read only from "regular data files" in a filesystem. Because of this limitation notmuch can't read configs from pipes, fifos, sockets, stdin, etc. Not even

Re: Fix for notmuch-search autoload cookie

2016-12-10 Thread Tomi Ollila
On Thu, Dec 08 2016, David Bremner wrote: > If your using the elpa packages (e.g. in recent debian packages), you might > have > noticed that the autoloading of notmuch-search was not working. > > This is a fix for that. You can test it by running: > > emacs -q > M-x

Re: NEWS/docs for insert tempfail changes

2016-12-10 Thread Tomi Ollila
On Wed, Dec 07 2016, David Bremner wrote: > I went back and forth few times, but eventually decided to go with > Tomi's version of the test quoting, the better to share the blame. > The patches will be merged to release and master, in prep for another > bugfix release. Here

Re: [PATCH v5 2/2] notmuch-config: replace config reading function

2016-12-10 Thread Tomi Ollila
On Thu, Dec 08 2016, Ioan-Adrian Ratiu wrote: > Config files are currently read using glib's g_key_file_load_from_file > function which is very inconvenient because it's limited by design to read > only from "regular data files" in a filesystem. Because of this limitation >