[PATCH 5/5] emacs: Add a sort-order option to saved-searches

2014-04-05 Thread Mark Walters
This adds a sort-order option to saved-searches, stores it in the saved-search buttons (widgets), and uses the stored value when the button is pressed. Storing the sort-order in the widget was suggested by Jani in id:4c3876274126985683e888641b29cf18142a5eb8.1391771337.git.jani at nikula.org. ---

[PATCH 4/5] emacs: hello: switch notmuch-hello-insert-buttons to plists

2014-04-05 Thread Mark Walters
Switching notmuch-hello-insert-buttons to plists means we can easily pass extra options through to the buttons. --- emacs/notmuch-hello.el | 33 +++-- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el

[PATCH 3/5] emacs: hello: add a customize for saved-searches

2014-04-05 Thread Mark Walters
Make the defcustom for notmuch-saved-searches use the new plist format. It should still work with oldstyle saved-searches but will write the newstyle form. --- emacs/notmuch-hello.el |2 +- emacs/notmuch-lib.el | 28 +--- 2 files changed, 26 insertions(+), 4

[PATCH 2/5] emacs: hello: use the saved-search helper functions

2014-04-05 Thread Mark Walters
This uses the helper functions: the saved searches format has not changed yet but backwards compatibility means everything still works. --- emacs/notmuch-hello.el | 48 ++-- emacs/notmuch.el |6 +++--- 2 files changed, 25 insertions(+), 29

[PATCH 1/5] emacs: hello: add helper functions for saved-searches

2014-04-05 Thread Mark Walters
Add helper functions to for saved searches to ease the transition to the new plist form while maintaining backwards compatibility. They will be used in the next patch. --- emacs/notmuch-hello.el | 39 +++ 1 file changed, 39 insertions(+) diff --git

[PATCH 5/7] doc: Allow rst2man.py as an alternative to rst2man

2014-04-05 Thread Tomi Ollila
On Sat, Apr 05 2014, "W. Trevor King" wrote: > Gentoo's dev-python/docutils-0.10 installs Docutils scripts with a > *.py extension, so I have /usr/bin/rst2man.py and no rst2man script. > This patch supports users with both types of systems by checking for > rst2man, falling back on rst2man.py,

[PATCH 5/5] emacs: Add a sort-order option to saved-searches

2014-04-05 Thread Austin Clements
Quoth Mark Walters on Apr 05 at 10:24 pm: > This adds a sort-order option to saved-searches, stores it in the > saved-search buttons (widgets), and uses the stored value when the > button is pressed. > > Storing the sort-order in the widget was suggested by Jani in >

[PATCH 2/5] emacs: hello: use the saved-search helper functions

2014-04-05 Thread Austin Clements
Quoth Mark Walters on Apr 05 at 10:24 pm: > This uses the helper functions: the saved searches format has not > changed yet but backwards compatibility means everything still works. > --- > emacs/notmuch-hello.el | 48 > ++-- > emacs/notmuch.el

Feature suggestion. Indexing encrypted mail?

2014-04-05 Thread john.wy...@gmx.de
Jeremy Nickurak writes: > Off the top of my head, you could have an encrypted index too, which you > can only search while able to decrypt. Certainly another level of > complexity. > But why add so much complexity? If a user decides that either transport security is enough or additionally the

[PATCH 1/5] emacs: hello: add helper functions for saved-searches

2014-04-05 Thread Austin Clements
Quoth Mark Walters on Apr 05 at 10:24 pm: > Add helper functions to for saved searches to ease the transition to > the new plist form while maintaining backwards compatibility. They > will be used in the next patch. > --- > emacs/notmuch-hello.el | 39 +++ >

[PATCH v5 1/2] lib: drop support for single-message mbox files

2014-04-05 Thread Tomi Ollila
On Sat, Apr 05 2014, David Bremner wrote: > Jani Nikula writes: > >> We've supported mbox files containing a single message for historical >> reasons, but the support has been deprecated, with a warning message >> while indexing, since Notmuch 0.15. Finally drop the support, and >> consider all

[PATCH 7/7] doc/INSTALL: Remove rst2man reference and other updates

2014-04-05 Thread David Bremner
"W. Trevor King" writes: > {build|install}-man, which is backend (Sphinx/Docutils) agnostic > sphinx-{html|texinfo|info}, which doesn't have an install target > > Is that distinction intentional? Personally I prefer the consistency > of: > > {build|install}-{man|html|texinfo|info} > I

Feature suggestion. Indexing encrypted mail?

2014-04-05 Thread john.wy...@gmx.de
Hello! Would it be possible to add the configurable option to also decrypt encrypted messages on the fly while indexing to make them searchable, too? That would be really great for people that consider gnupg mainly an encryption for transport or have their complete hard drive encrypted...

[PATCH 7/7] doc/INSTALL: Remove rst2man reference and other updates

2014-04-05 Thread David Bremner
"W. Trevor King" writes: > The rst2man target was removed in 9d9a700 (doc: build man pages at > build time; introduce HAVE_SPHINX, HAVE_RST2MAN, 2014-03-13), but a > reference in the install docs slipped through. While I was removing > that reference, I also: > > * Converted doc/INSTALL to

[PATCH 7/7] doc/INSTALL: Remove rst2man reference and other updates

2014-04-05 Thread W. Trevor King
next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: OpenPGP digital signature URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20140405/b7335327/attachment-0001.pgp>

Feature suggestion. Indexing encrypted mail?

2014-04-05 Thread David Bremner
john.wyzer at gmx.de writes: > Would it be possible to add the configurable option to also decrypt > encrypted messages on the fly while indexing to make them searchable, > too? > > That would be really great for people that consider gnupg mainly an > encryption for transport or have their

[PATCH] debian: ignore performance corpus when making source package

2014-04-05 Thread David Bremner
David Bremner writes: > Currently "make debian-snapshot" will include the performance corpus > tarball in the source package, which slows things down and wastes disk > space. tar-ignore is needed twice to keep the default exclude rules > (e.g. to exclude .git) Pushed this. I'm thinking it

[PATCH v5 1/2] lib: drop support for single-message mbox files

2014-04-05 Thread David Bremner
Jani Nikula writes: > We've supported mbox files containing a single message for historical > reasons, but the support has been deprecated, with a warning message > while indexing, since Notmuch 0.15. Finally drop the support, and > consider all mbox files non-email. series pushed. d

[PATCH 1/1] release-checks: removed manual page version check

2014-04-05 Thread Tomi Ollila
Manual pages are now generated and during the generation the version string is read from `version` file, so this (currently failing) test checking manual page versions can be removed. While at it, changed the case pattern *[^0-9.]* to its portable alternative *[!0-9.]* ---

[PATCH v4 0/4] nmbug-status: Python-3-compatibility and general refactoring

2014-04-05 Thread David Bremner
"W. Trevor King" writes: > On Sun, Feb 16, 2014 at 07:46:29PM -0400, David Bremner wrote: >> pushed the last 4. > > It looks like there's still a nmbug-status branch on > git://notmuchmail.org/git/notmuch. It's an ancestor of debian/0.17-4, > and nmbug-status development seems to have calmed

[Patch v7 6/6] test: verify tag backup generated by database upgrade

2014-04-05 Thread David Bremner
'pre upgrade dump' is not much of a test, but at least this way we get somewhat sensible behaviour if it fails. --- test/T530-upgrade.sh | 6 ++ 1 file changed, 6 insertions(+) diff --git a/test/T530-upgrade.sh b/test/T530-upgrade.sh index d46e3d1..7d5d5aa 100755 --- a/test/T530-upgrade.sh

[Patch v7 5/6] notmuch-new: backup tags before database upgrade

2014-04-05 Thread David Bremner
All we do here is calculate the backup filename, and call the existing dump routine. Also take the opportity to add a message about being safe to interrupt. --- notmuch-new.c| 29 - test/T530-upgrade.sh | 4 +++- 2 files changed, 31 insertions(+), 2

[Patch v7 4/6] restore: transparently support gzipped input

2014-04-05 Thread David Bremner
We rely completely on zlib to do the right thing in detecting gzipped input. Since our dump format is chosen to be 7 bit ascii, this should be fine. --- doc/man1/notmuch-restore.rst | 8 notmuch-restore.c| 93 +---

[Patch v7 3/6] test: restore with missing final newline

2014-04-05 Thread David Bremner
Recent proposed patches for gzipped input had a bug with handling missing newlines that was not caught by the current test suite --- test/T240-dump-restore.sh | 9 + 1 file changed, 9 insertions(+) diff --git a/test/T240-dump-restore.sh b/test/T240-dump-restore.sh index d79aca8..b6d8602

[Patch v7 2/6] util: add gz_readline

2014-04-05 Thread David Bremner
The idea is to provide a more or less drop in replacement for readline to read from zlib/gzip streams. Take the opportunity to replace malloc with talloc. --- util/Makefile.local | 3 +- util/util.c | 24 +++ util/util.h | 29 ++ util/zlib-extra.c |

[Patch v7 1/6] dump: support gzipped and atomic output

2014-04-05 Thread David Bremner
The main goal is to support gzipped output for future internal calls (e.g. from notmuch-new) to notmuch_database_dump. The additional dependency is not very heavy since xapian already pulls in zlib. We want the dump to be "atomic", in the sense that after running the dump file is either present

v7 gzip dump restore patches

2014-04-05 Thread David Bremner
Supercedes id:1396554083-3892-2-git-send-email-david at tethera.net - adds new analogues of strerror - util_error_string - gz_error_string Interdiff: diff --git a/configure b/configure index 1d624f7..83b4af7 100755 --- a/configure +++ b/configure @@ -509,7 +509,7 @@ EOF echo "

Feature suggestion. Indexing encrypted mail?

2014-04-05 Thread Jeremy Nickurak
.org > http://notmuchmail.org/mailman/listinfo/notmuch > -- next part -- An HTML attachment was scrubbed... URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20140405/4cbd66bf/attachment-0001.html>

[PATCH 5/7] doc: Allow rst2man.py as an alternative to rst2man

2014-04-05 Thread W. Trevor King
r encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: OpenPGP digital signature

Feature suggestion. Indexing encrypted mail?

2014-04-05 Thread Jameson Graef Rollins
On Sat, Apr 05 2014, David Bremner wrote: > john.wyzer at gmx.de writes: > >> Would it be possible to add the configurable option to also decrypt >> encrypted messages on the fly while indexing to make them searchable, >> too? >> >> That would be really great for people that consider gnupg

[PATCH 7/7] doc/INSTALL: Remove rst2man reference and other updates

2014-04-05 Thread W. Trevor King
The rst2man target was removed in 9d9a700 (doc: build man pages at build time; introduce HAVE_SPHINX, HAVE_RST2MAN, 2014-03-13), but a reference in the install docs slipped through. While I was removing that reference, I also: * Converted doc/INSTALL to reStructuredText, so I can link to Sphinx

[PATCH 6/7] doc/prerst2man.py: Convert execfile to import

2014-04-05 Thread W. Trevor King
excefile is gone in Python 3 [1]. Instead of exec-ing the configuration, it's easier to insert the source directory in Python's path [2], and just import the configuration. With this change, prerst2man.py is compatible with both Python 2 and 3. [1]:

[PATCH 5/7] doc: Allow rst2man.py as an alternative to rst2man

2014-04-05 Thread W. Trevor King
Gentoo's dev-python/docutils-0.10 installs Docutils scripts with a *.py extension, so I have /usr/bin/rst2man.py and no rst2man script. This patch supports users with both types of systems by checking for rst2man, falling back on rst2man.py, and giving up only if neither is found. Users can also

[PATCH 4/7] doc/prerst2man.py: Fix 'os.system' -> 'system' typo

2014-04-05 Thread W. Trevor King
Avoid: $ make HAVE_SPHINX=0 HAVE_RST2MAN=1 build-man python ./doc/prerst2man.py ./doc doc/_build/man Traceback (most recent call last): File "./doc/prerst2man.py", line 65, in os.system('set -x; rst2man {0} {1}/{2}.{3}' NameError: name 'os' is not defined make: ***

[PATCH 3/7] doc/prerst2man.py: Use Python-3-compatible octal notation

2014-04-05 Thread W. Trevor King
Python 3 only supports the 0oXXX notation for octal literals [1,2], which have also been supported in 2.x since 2.6 [2]. [1]: https://docs.python.org/3.0/whatsnew/3.0.html#integers [2]: http://legacy.python.org/dev/peps/pep-3127/ --- doc/prerst2man.py | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 2/7] doc/mkdocdeps.py: Use "with" statement for the output file

2014-04-05 Thread W. Trevor King
Before this patch, the open was unnecessarily early and relied on the process cleanup to close. Neither one of these was a real problem, but PEP 343's context managers (which landed in Python 2.5) make proper cleanup very easy. [1]: http://legacy.python.org/dev/peps/pep-0343/ ---

[PATCH 1/7] doc/mkdocdeps.py: Convert execfile to import

2014-04-05 Thread W. Trevor King
excefile is gone in Python 3 [1]. Instead of exec-ing the configuration, it's easier to insert the source directory in Python's path [2], and just import the configuration. With this change, mkdocdeps.py is compatible with both Python 2 and 3. [1]:

[PATCH 0/7] doc: Python 3 compat, rst2man.py support, etc.

2014-04-05 Thread W. Trevor King
I just bumped into this today while testing v2 of my content-description series: $ ./configure ? $ make ? python ./doc/mkdocdeps.py ./doc doc/_build doc/docdeps.mk Traceback (most recent call last): File "./doc/mkdocdeps.py", line 6, in execfile(srcdir + '/conf.py')

[PATCH v4 0/4] nmbug-status: Python-3-compatibility and general refactoring

2014-04-05 Thread W. Trevor King
pgp-signature Size: 836 bytes Desc: OpenPGP digital signature URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20140405/97ea6436/attachment.pgp>

[PATCH] emacs: sign/encrypt replies to signed/encrypted messages

2014-04-05 Thread Jani Nikula
This is a simple approach to improving security when replying to signed or encrypted messages. If the message being replied to was signed, add mml tag to sign the reply. If the message being replied to was encrypted, add mml tag to sign and encrypt the reply. This may need configuration; I for

[PATCH 1/1] release-checks: removed manual page version check

2014-04-05 Thread Tomi Ollila
Manual pages are now generated and during the generation the version string is read from `version` file, so this (currently failing) test checking manual page versions can be removed. While at it, changed the case pattern *[^0-9.]* to its portable alternative *[!0-9.]* ---

Re: [PATCH v4 0/4] nmbug-status: Python-3-compatibility and general refactoring

2014-04-05 Thread W. Trevor King
On Sun, Feb 16, 2014 at 07:46:29PM -0400, David Bremner wrote: pushed the last 4. It looks like there's still a nmbug-status branch on git://notmuchmail.org/git/notmuch. It's an ancestor of debian/0.17-4, and nmbug-status development seems to have calmed back down, so that branch can probably

v7 gzip dump restore patches

2014-04-05 Thread David Bremner
Supercedes id:1396554083-3892-2-git-send-email-da...@tethera.net - adds new analogues of strerror - util_error_string - gz_error_string Interdiff: diff --git a/configure b/configure index 1d624f7..83b4af7 100755 --- a/configure +++ b/configure @@ -509,7 +509,7 @@ EOF echo

[Patch v7 5/6] notmuch-new: backup tags before database upgrade

2014-04-05 Thread David Bremner
All we do here is calculate the backup filename, and call the existing dump routine. Also take the opportity to add a message about being safe to interrupt. --- notmuch-new.c| 29 - test/T530-upgrade.sh | 4 +++- 2 files changed, 31 insertions(+), 2

[Patch v7 3/6] test: restore with missing final newline

2014-04-05 Thread David Bremner
Recent proposed patches for gzipped input had a bug with handling missing newlines that was not caught by the current test suite --- test/T240-dump-restore.sh | 9 + 1 file changed, 9 insertions(+) diff --git a/test/T240-dump-restore.sh b/test/T240-dump-restore.sh index d79aca8..b6d8602

[Patch v7 4/6] restore: transparently support gzipped input

2014-04-05 Thread David Bremner
We rely completely on zlib to do the right thing in detecting gzipped input. Since our dump format is chosen to be 7 bit ascii, this should be fine. --- doc/man1/notmuch-restore.rst | 8 notmuch-restore.c| 93 +---

[Patch v7 6/6] test: verify tag backup generated by database upgrade

2014-04-05 Thread David Bremner
'pre upgrade dump' is not much of a test, but at least this way we get somewhat sensible behaviour if it fails. --- test/T530-upgrade.sh | 6 ++ 1 file changed, 6 insertions(+) diff --git a/test/T530-upgrade.sh b/test/T530-upgrade.sh index d46e3d1..7d5d5aa 100755 --- a/test/T530-upgrade.sh

[Patch v7 1/6] dump: support gzipped and atomic output

2014-04-05 Thread David Bremner
The main goal is to support gzipped output for future internal calls (e.g. from notmuch-new) to notmuch_database_dump. The additional dependency is not very heavy since xapian already pulls in zlib. We want the dump to be atomic, in the sense that after running the dump file is either present

[Patch v7 2/6] util: add gz_readline

2014-04-05 Thread David Bremner
The idea is to provide a more or less drop in replacement for readline to read from zlib/gzip streams. Take the opportunity to replace malloc with talloc. --- util/Makefile.local | 3 +- util/util.c | 24 +++ util/util.h | 29 ++ util/zlib-extra.c |

Re: [PATCH v4 0/4] nmbug-status: Python-3-compatibility and general refactoring

2014-04-05 Thread David Bremner
W. Trevor King wk...@tremily.us writes: On Sun, Feb 16, 2014 at 07:46:29PM -0400, David Bremner wrote: pushed the last 4. It looks like there's still a nmbug-status branch on git://notmuchmail.org/git/notmuch. It's an ancestor of debian/0.17-4, and nmbug-status development seems to have

Re: [PATCH v5 1/2] lib: drop support for single-message mbox files

2014-04-05 Thread David Bremner
Jani Nikula j...@nikula.org writes: We've supported mbox files containing a single message for historical reasons, but the support has been deprecated, with a warning message while indexing, since Notmuch 0.15. Finally drop the support, and consider all mbox files non-email. series pushed.

Re: [PATCH] debian: ignore performance corpus when making source package

2014-04-05 Thread David Bremner
David Bremner da...@tethera.net writes: Currently make debian-snapshot will include the performance corpus tarball in the source package, which slows things down and wastes disk space. tar-ignore is needed twice to keep the default exclude rules (e.g. to exclude .git) Pushed this. I'm

Feature suggestion. Indexing encrypted mail?

2014-04-05 Thread john . wyzer
Hello! Would it be possible to add the configurable option to also decrypt encrypted messages on the fly while indexing to make them searchable, too? That would be really great for people that consider gnupg mainly an encryption for transport or have their complete hard drive encrypted...

Re: Feature suggestion. Indexing encrypted mail?

2014-04-05 Thread David Bremner
john.wy...@gmx.de writes: Would it be possible to add the configurable option to also decrypt encrypted messages on the fly while indexing to make them searchable, too? That would be really great for people that consider gnupg mainly an encryption for transport or have their complete hard

[PATCH 0/7] doc: Python 3 compat, rst2man.py support, etc.

2014-04-05 Thread W. Trevor King
I just bumped into this today while testing v2 of my content-description series: $ ./configure … $ make … python ./doc/mkdocdeps.py ./doc doc/_build doc/docdeps.mk Traceback (most recent call last): File ./doc/mkdocdeps.py, line 6, in module execfile(srcdir + '/conf.py')

[PATCH 1/7] doc/mkdocdeps.py: Convert execfile to import

2014-04-05 Thread W. Trevor King
excefile is gone in Python 3 [1]. Instead of exec-ing the configuration, it's easier to insert the source directory in Python's path [2], and just import the configuration. With this change, mkdocdeps.py is compatible with both Python 2 and 3. [1]:

[PATCH 4/7] doc/prerst2man.py: Fix 'os.system' - 'system' typo

2014-04-05 Thread W. Trevor King
Avoid: $ make HAVE_SPHINX=0 HAVE_RST2MAN=1 build-man python ./doc/prerst2man.py ./doc doc/_build/man Traceback (most recent call last): File ./doc/prerst2man.py, line 65, in module os.system('set -x; rst2man {0} {1}/{2}.{3}' NameError: name 'os' is not defined make: ***

[PATCH 2/7] doc/mkdocdeps.py: Use with statement for the output file

2014-04-05 Thread W. Trevor King
Before this patch, the open was unnecessarily early and relied on the process cleanup to close. Neither one of these was a real problem, but PEP 343's context managers (which landed in Python 2.5) make proper cleanup very easy. [1]: http://legacy.python.org/dev/peps/pep-0343/ ---

[PATCH 7/7] doc/INSTALL: Remove rst2man reference and other updates

2014-04-05 Thread W. Trevor King
The rst2man target was removed in 9d9a700 (doc: build man pages at build time; introduce HAVE_SPHINX, HAVE_RST2MAN, 2014-03-13), but a reference in the install docs slipped through. While I was removing that reference, I also: * Converted doc/INSTALL to reStructuredText, so I can link to Sphinx

[PATCH 6/7] doc/prerst2man.py: Convert execfile to import

2014-04-05 Thread W. Trevor King
excefile is gone in Python 3 [1]. Instead of exec-ing the configuration, it's easier to insert the source directory in Python's path [2], and just import the configuration. With this change, prerst2man.py is compatible with both Python 2 and 3. [1]:

[PATCH 3/7] doc/prerst2man.py: Use Python-3-compatible octal notation

2014-04-05 Thread W. Trevor King
Python 3 only supports the 0oXXX notation for octal literals [1,2], which have also been supported in 2.x since 2.6 [2]. [1]: https://docs.python.org/3.0/whatsnew/3.0.html#integers [2]: http://legacy.python.org/dev/peps/pep-3127/ --- doc/prerst2man.py | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH v5 1/2] lib: drop support for single-message mbox files

2014-04-05 Thread Tomi Ollila
On Sat, Apr 05 2014, David Bremner da...@tethera.net wrote: Jani Nikula j...@nikula.org writes: We've supported mbox files containing a single message for historical reasons, but the support has been deprecated, with a warning message while indexing, since Notmuch 0.15. Finally drop the

Re: Feature suggestion. Indexing encrypted mail?

2014-04-05 Thread Jeremy Nickurak
Off the top of my head, you could have an encrypted index too, which you can only search while able to decrypt. Certainly another level of complexity. On Sat, Apr 5, 2014 at 11:10 AM, David Bremner da...@tethera.net wrote: john.wy...@gmx.de writes: Would it be possible to add the

Re: Feature suggestion. Indexing encrypted mail?

2014-04-05 Thread john . wyzer
Jeremy Nickurak not-m...@trk.nickurak.ca writes: Off the top of my head, you could have an encrypted index too, which you can only search while able to decrypt. Certainly another level of complexity. But why add so much complexity? If a user decides that either transport security is enough

Re: Feature suggestion. Indexing encrypted mail?

2014-04-05 Thread Jameson Graef Rollins
On Sat, Apr 05 2014, David Bremner da...@tethera.net wrote: john.wy...@gmx.de writes: Would it be possible to add the configurable option to also decrypt encrypted messages on the fly while indexing to make them searchable, too? That would be really great for people that consider gnupg

Re: [PATCH 7/7] doc/INSTALL: Remove rst2man reference and other updates

2014-04-05 Thread David Bremner
W. Trevor King wk...@tremily.us writes: The rst2man target was removed in 9d9a700 (doc: build man pages at build time; introduce HAVE_SPHINX, HAVE_RST2MAN, 2014-03-13), but a reference in the install docs slipped through. While I was removing that reference, I also: * Converted doc/INSTALL

Re: [PATCH 7/7] doc/INSTALL: Remove rst2man reference and other updates

2014-04-05 Thread W. Trevor King
On Sat, Apr 05, 2014 at 05:35:49PM -0300, David Bremner wrote: W. Trevor King writes: -- You can build build and install man pages with 'make install-man' + make build-{man|info|html|pdf} most of those those targets now start with sphinx- Ah, looks like that happended in with the

[PATCH 0/5] emacs: hello: convert saved-searches to plists

2014-04-05 Thread Mark Walters
This series converts the saved-search format to plists. This should make it much easier to extend their functionality. The final patch illustrates this by adding a sort-order option to the saved searches. It also exposes the count-query functionality that is already present internally, and could

[PATCH 1/5] emacs: hello: add helper functions for saved-searches

2014-04-05 Thread Mark Walters
Add helper functions to for saved searches to ease the transition to the new plist form while maintaining backwards compatibility. They will be used in the next patch. --- emacs/notmuch-hello.el | 39 +++ 1 file changed, 39 insertions(+) diff --git

[PATCH 4/5] emacs: hello: switch notmuch-hello-insert-buttons to plists

2014-04-05 Thread Mark Walters
Switching notmuch-hello-insert-buttons to plists means we can easily pass extra options through to the buttons. --- emacs/notmuch-hello.el | 33 +++-- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el

[PATCH 2/5] emacs: hello: use the saved-search helper functions

2014-04-05 Thread Mark Walters
This uses the helper functions: the saved searches format has not changed yet but backwards compatibility means everything still works. --- emacs/notmuch-hello.el | 48 ++-- emacs/notmuch.el |6 +++--- 2 files changed, 25 insertions(+), 29

[PATCH 3/5] emacs: hello: add a customize for saved-searches

2014-04-05 Thread Mark Walters
Make the defcustom for notmuch-saved-searches use the new plist format. It should still work with oldstyle saved-searches but will write the newstyle form. --- emacs/notmuch-hello.el |2 +- emacs/notmuch-lib.el | 28 +--- 2 files changed, 26 insertions(+), 4

[PATCH 5/5] emacs: Add a sort-order option to saved-searches

2014-04-05 Thread Mark Walters
This adds a sort-order option to saved-searches, stores it in the saved-search buttons (widgets), and uses the stored value when the button is pressed. Storing the sort-order in the widget was suggested by Jani in id:4c3876274126985683e888641b29cf18142a5eb8.1391771337.git.j...@nikula.org. ---

Re: [PATCH 7/7] doc/INSTALL: Remove rst2man reference and other updates

2014-04-05 Thread David Bremner
W. Trevor King wk...@tremily.us writes: {build|install}-man, which is backend (Sphinx/Docutils) agnostic sphinx-{html|texinfo|info}, which doesn't have an install target Is that distinction intentional? Personally I prefer the consistency of: {build|install}-{man|html|texinfo|info}

Re: [PATCH 1/5] emacs: hello: add helper functions for saved-searches

2014-04-05 Thread Austin Clements
Quoth Mark Walters on Apr 05 at 10:24 pm: Add helper functions to for saved searches to ease the transition to the new plist form while maintaining backwards compatibility. They will be used in the next patch. --- emacs/notmuch-hello.el | 39 +++ 1 file

Re: [PATCH 2/5] emacs: hello: use the saved-search helper functions

2014-04-05 Thread Austin Clements
Quoth Mark Walters on Apr 05 at 10:24 pm: This uses the helper functions: the saved searches format has not changed yet but backwards compatibility means everything still works. --- emacs/notmuch-hello.el | 48 ++-- emacs/notmuch.el |

Re: [PATCH 4/5] emacs: hello: switch notmuch-hello-insert-buttons to plists

2014-04-05 Thread Austin Clements
Quoth Mark Walters on Apr 05 at 10:24 pm: Switching notmuch-hello-insert-buttons to plists means we can easily pass extra options through to the buttons. --- emacs/notmuch-hello.el | 33 +++-- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git

Re: [PATCH 5/5] emacs: Add a sort-order option to saved-searches

2014-04-05 Thread Austin Clements
Quoth Mark Walters on Apr 05 at 10:24 pm: This adds a sort-order option to saved-searches, stores it in the saved-search buttons (widgets), and uses the stored value when the button is pressed. Storing the sort-order in the widget was suggested by Jani in

Re: [PATCH 0/5] emacs: hello: convert saved-searches to plists

2014-04-05 Thread David Bremner
Mark Walters markwalters1...@gmail.com writes: This series converts the saved-search format to plists. This should make it much easier to extend their functionality. The final patch illustrates this by adding a sort-order option to the saved searches. It also exposes the count-query

build and install doxygen api docs

2014-04-05 Thread David Bremner
I'm not sure if we really want to install the API docs yet, but I was reviewing Tomi's patch and it occured to me that this was one more place where we could stop hardcoding the version number. ___ notmuch mailing list notmuch@notmuchmail.org

[PATCH 1/2] doc: move doxgen config from devel/ to doc/

2014-04-05 Thread David Bremner
a first step towards actually instally the API docs --- devel/doxygen.cfg | 304 -- doc/doxygen.cfg | 304 ++ 2 files changed, 304 insertions(+), 304 deletions(-) delete mode 100644

Re: [PATCH 4/5] emacs: hello: switch notmuch-hello-insert-buttons to plists

2014-04-05 Thread Mark Walters
Hello @@ -455,23 +457,26 @@ (defun notmuch-hello-query-counts (query-list rest options) #'identity (mapcar (lambda (elem) -(let ((name (notmuch-saved-search-get elem :name)) - (search-query (notmuch-saved-search-get elem :query)) - (message-count

Re: [PATCH 5/5] emacs: Add a sort-order option to saved-searches

2014-04-05 Thread Mark Walters
Hi On Sun, 06 Apr 2014, Austin Clements amdra...@mit.edu wrote: Quoth Mark Walters on Apr 05 at 10:24 pm: This adds a sort-order option to saved-searches, stores it in the saved-search buttons (widgets), and uses the stored value when the button is pressed. Storing the sort-order in the

Re: [PATCH 0/5] emacs: hello: convert saved-searches to plists

2014-04-05 Thread Mark Walters
On Sun, 06 Apr 2014, David Bremner da...@tethera.net wrote: Mark Walters markwalters1...@gmail.com writes: This series converts the saved-search format to plists. This should make it much easier to extend their functionality. The final patch illustrates this by adding a sort-order option to

[PATCH v2 0/5] emacs: hello: convert saved-searches to plists

2014-04-05 Thread Mark Walters
This is v2 of the series; v1 is at id:1396733065-32602-1-git-send-email-markwalters1...@gmail.com I have made all the changes suggested by Austin in his review of v1. I include the diff from v1 below. There is now one slight oddity in the patch ordering: the documentation for the plist form

[PATCH v2 3/5] emacs: hello: add a customize for saved-searches

2014-04-05 Thread Mark Walters
Make the defcustom for notmuch-saved-searches use the new plist format. It should still work with oldstyle saved-searches but will write the newstyle form. --- emacs/notmuch-hello.el |2 +- emacs/notmuch-lib.el | 46 ++ 2 files changed, 43

[PATCH v2 2/5] emacs: hello: use the saved-search helper functions

2014-04-05 Thread Mark Walters
This uses the helper functions: the saved searches format has not changed yet but backwards compatibility means everything still works. --- emacs/notmuch-hello.el | 48 ++-- emacs/notmuch.el |6 +++--- 2 files changed, 25 insertions(+), 29

[PATCH v2 1/5] emacs: hello: add helper functions for saved-searches

2014-04-05 Thread Mark Walters
Add helper functions to for saved searches to ease the transition to the new plist form while maintaining backwards compatibility. They will be used in the next patch. --- emacs/notmuch-hello.el | 38 ++ 1 file changed, 38 insertions(+) diff --git

[PATCH v2 5/5] emacs: Add a sort-order option to saved-searches

2014-04-05 Thread Mark Walters
This adds a sort-order option to saved-searches, stores it in the saved-search buttons (widgets), and uses the stored value when the button is pressed. Storing the sort-order in the widget was suggested by Jani in id:4c3876274126985683e888641b29cf18142a5eb8.1391771337.git.j...@nikula.org. ---