[PATCH] configure: add workaround for systems without zlib.pc

2014-05-11 Thread Felipe Contreras
Some systems (e.g. FreeBSD) might not have installed the appropriate pkg-config file as they should. We can workaround the issue by creating the .pc file they should have distributed. Signed-off-by: Felipe Contreras --- compat/.gitignore| 1 + compat/gen_zlib_pc.c | 18 ++

[PATCH] build: fix order of rpath

2014-05-11 Thread Felipe Contreras
In my system `pkg-config --libs talloc` returns 'Wl,-rpath,/usr/lib -ltalloc' (probably wrongly) which causes the final LDFLAGS to be something like '-Wl,-rpath,/usr/lib -Wl,-rpath,/opt/notmuch/lib', which causes the RUNPATH to be '/usr/lib:/opt/notmuch/lib', so basically defeating the whole

Fix notmuchmail.org/emacstips/

2014-05-11 Thread Felipe Contreras
Hi, It's a bit confusing when reading that page because '.emacs rc' looks a lot like '.emacsrc', specially with the fonts in my system. I think it should be changed to '.emacs config'. That would have saved me a bunch of time I spent trying to figure out why it wasn't working :( Cheers. --

[PATCH 0/5] nmbug-status fixups from notmuch-to-html

2014-05-11 Thread W. Trevor King
: application/pgp-signature Size: 836 bytes Desc: OpenPGP digital signature URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20140511/6f2d345c/attachment.pgp>

[RFC PATCH] configure: Create sh.config based on Makefile.config data

2014-05-11 Thread Tomi Ollila
Read Makefile.config and when line matches var = val assignment create _var='val' from it. var must match [a-zA-Z_][a-zA-Z0-9_]* and val [^'\]* ('\' usually meaning multiline assignments). Write these lines to sh.config. sh.config can then be used e.g. in test scripts. --- configure | 5 +

[PATCH 7/7] emacs: hello: add option to omit count for a search

2014-05-11 Thread Mark Walters
This omits the count for the specific search. This makes notmuch-hello faster, particularly for large complex saved searches. --- emacs/notmuch-hello.el |7 +++ 1 file changed, 7 insertions(+) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 265b879..b3b539d 100644 ---

[PATCH 6/7] emacs: hello: add highlight newly arrived messages option

2014-05-11 Thread Mark Walters
This adds a function that highlights searches which have newly arrived messages (ones which arrived since the previous refresh of notmuch-hello). It does that by getting a full list of matching message ids and checking whether any new messages have appeared. Thus it will be slow on large saved

[PATCH 4/7] emacs: hello: add a threads-and-messages function

2014-05-11 Thread Mark Walters
This is an example of a possible display function. It displays the count for a search as messages/threads. This will be slow on a large search but could be useful for a small search. It also extends and renames the existing (unused) notmuch-saved-search-count function to count threads if wanted.

[PATCH 1/7] emacs: hello: separate out the saved-search display function

2014-05-11 Thread Mark Walters
Separate the code that prints a saved-search and count into its own function. --- emacs/notmuch-hello.el | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 3de5238..0a7004c 100644 ---

[PATCH 0/7] emacs: hello: custom display of saved searches

2014-05-11 Thread Mark Walters
This series allows the user to customize the display of individual saved searches, including showing thread counts, changed counts, omitting counts (for speed), a read/unread count etc. The series is not as large as it looks. Patch 1 is just code movement, and patches 4-7 implement some of the

[PATCH 1/2] configure: add a fallback check for zlib

2014-05-11 Thread Tomi Ollila
On Sun, May 11 2014, Felipe Contreras wrote: > X?c? wrote: >> Since zlib is part of the base system, FreeBSD chose not to register it >> in pkg-config through zlib.pc. As a fallback test, configure will build >> and run a zlib version check and make sure the header and library >> versions are

[PATCH] emacs install: make sure all components to be installed are there

2014-05-11 Thread Tomi Ollila
`make install-emacs` will copy $(emacs_sources), $(emacs_images) and $(emacs_bytecode) to their target directories. $(emacs_bytecode) was already a prerequisite of make install-emacs as these obviously needed to be build. Until a while ago all of $(emacs_sources) was available in the repository,

[PATCH 3/7] emacs: hello: store previous saved-search results

2014-05-11 Thread Mark Walters
This adds a variable which keeps track of the previous saved search results. It is stored as a plist with keys being the saved searches. The result the saved search display function gave last time is passed to the display-function as the the keyword :old argument. This is useful for display

[PATCH 0/7] emacs: hello: custom display of saved searches

2014-05-11 Thread Mark Walters
This series allows the user to customize the display of individual saved searches, including showing thread counts, changed counts, omitting counts (for speed), a read/unread count etc. The series is not as large as it looks. Patch 1 is just code movement, and patches 4-7 implement some of the

[PATCH 2/7] emacs: hello: allow saved search display functions

2014-05-11 Thread Mark Walters
Extend the saved search plist to include a :display-function property that can customise the display of the saved search. It can change the count string displayed and the name string. Thus the user can customise so that a particular search: does not show a count (and is thus hello is faster),

[PATCH 1/7] emacs: hello: separate out the saved-search display function

2014-05-11 Thread Mark Walters
Separate the code that prints a saved-search and count into its own function. --- emacs/notmuch-hello.el | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 3de5238..0a7004c 100644 ---

[PATCH 4/7] emacs: hello: add a threads-and-messages function

2014-05-11 Thread Mark Walters
This is an example of a possible display function. It displays the count for a search as messages/threads. This will be slow on a large search but could be useful for a small search. It also extends and renames the existing (unused) notmuch-saved-search-count function to count threads if wanted.

[PATCH 5/7] emacs: hello: require cl

2014-05-11 Thread Mark Walters
We will use cl at runtime in the next patch so require cl (rather than just having it eval-when-compile). We require it in notmuch-lib anyway so this is no loss in requiring it here too. --- emacs/notmuch-hello.el |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[PATCH 7/7] emacs: hello: add option to omit count for a search

2014-05-11 Thread Mark Walters
This omits the count for the specific search. This makes notmuch-hello faster, particularly for large complex saved searches. --- emacs/notmuch-hello.el |7 +++ 1 file changed, 7 insertions(+) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 265b879..b3b539d 100644 ---

[PATCH 6/7] emacs: hello: add highlight newly arrived messages option

2014-05-11 Thread Mark Walters
This adds a function that highlights searches which have newly arrived messages (ones which arrived since the previous refresh of notmuch-hello). It does that by getting a full list of matching message ids and checking whether any new messages have appeared. Thus it will be slow on large saved

[RFC PATCH] configure: Create sh.config based on Makefile.config data

2014-05-11 Thread Tomi Ollila
Read Makefile.config and when line matches var = val assignment create _var='val' from it. var must match [a-zA-Z_][a-zA-Z0-9_]* and val [^'\]* ('\' usually meaning multiline assignments). Write these lines to sh.config. sh.config can then be used e.g. in test scripts. --- configure | 5 +

Re: [PATCH 0/5] nmbug-status fixups from notmuch-to-html

2014-05-11 Thread Carl Worth
W. Trevor King wk...@tremily.us writes: I've cherry-picked the three patches I liked from Carl's master [1,2] and added two cleanup commits of my own. I've left Carl's commit messages unchanged. I'm fine squashing my fixups into Carl's originals (leaving Carl as the author) if that's ok with

Re: [PATCH] nmbug-status: Make the footer's hr gray

2014-05-11 Thread Carl Worth
W. Trevor King wk...@tremily.us writes: On Sun, May 11, 2014 at 12:08:10AM +0300, Tomi Ollila wrote: The rendered hr/ irritates me a bit, though. Maybe it could be colored light gray ? I can't reroll that one myself, unless Carl gives the ok. But here's some light-gray styling as an

Re: [PATCH 0/5] nmbug-status fixups from notmuch-to-html

2014-05-11 Thread W. Trevor King
On Sun, May 11, 2014 at 12:04:12PM -0700, Carl Worth wrote: W. Trevor King wk...@tremily.us writes: I've cherry-picked the three patches I liked from Carl's master [1,2] and added two cleanup commits of my own. I've left Carl's commit messages unchanged. I'm fine squashing my fixups into

Fix notmuchmail.org/emacstips/

2014-05-11 Thread Felipe Contreras
Hi, It's a bit confusing when reading that page because '.emacs rc' looks a lot like '.emacsrc', specially with the fonts in my system. I think it should be changed to '.emacs config'. That would have saved me a bunch of time I spent trying to figure out why it wasn't working :( Cheers. --

[PATCH] build: fix order of rpath

2014-05-11 Thread Felipe Contreras
In my system `pkg-config --libs talloc` returns 'Wl,-rpath,/usr/lib -ltalloc' (probably wrongly) which causes the final LDFLAGS to be something like '-Wl,-rpath,/usr/lib -Wl,-rpath,/opt/notmuch/lib', which causes the RUNPATH to be '/usr/lib:/opt/notmuch/lib', so basically defeating the whole

Re: Fix notmuchmail.org/emacstips/

2014-05-11 Thread David Bremner
Felipe Contreras felipe.contre...@gmail.com writes: Hi, It's a bit confusing when reading that page because '.emacs rc' looks a lot like '.emacsrc', specially with the fonts in my system. I think it should be changed to '.emacs config'. That would have saved me a bunch of time I spent

[PATCH] configure: add workaround for systems without zlib.pc

2014-05-11 Thread Felipe Contreras
Some systems (e.g. FreeBSD) might not have installed the appropriate pkg-config file as they should. We can workaround the issue by creating the .pc file they should have distributed. Signed-off-by: Felipe Contreras felipe.contre...@gmail.com --- compat/.gitignore| 1 + compat/gen_zlib_pc.c

Re: [PATCH] configure: add workaround for systems without zlib.pc

2014-05-11 Thread David Bremner
Felipe Contreras felipe.contre...@gmail.com writes: Some systems (e.g. FreeBSD) might not have installed the appropriate pkg-config file as they should. We can workaround the issue by creating the .pc file they should have distributed. I think I agree with Felipe here, this version seems a