[PATCH] emacs: Fix `notmuch-show-rewind' in the presence of invisible text

2010-04-26 Thread d...@dme.org
From: David Edmondson <d...@dme.org> When determining whether or not to re-align the head of the current message with the top of the window, use `count-screen-lines' rather than `count-lines' to allow for invisible text in the preceding message. When comparing that number of lines against

[PATCH] emacs: `notmuch' should display the `notmuch-hello' interface

2010-04-26 Thread d...@dme.org
From: David Edmondson <d...@dme.org> --- emacs/notmuch-hello.el |1 - emacs/notmuch-lib.el |5 + emacs/notmuch.el |7 +++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 30b3a5e..bd882b8

[PATCH] emacs: Remove duplicate declaration of `notmuch-folders'

2010-04-26 Thread d...@dme.org
From: David Edmondson <d...@dme.org> --- emacs/notmuch.el |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 428ae6c..e207180 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -659,11 +659,6 @@ characters a

[PATCH] emacs: Tell the user how many addresses matched when completing

2010-04-26 Thread d...@dme.org
From: David Edmondson <d...@dme.org> When completing an address, tell the user how many addresses in the database matched the query. --- emacs/notmuch-address.el |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-address.el b/emacs/notmuch-addr

[PATCH] emacs: Fix column alignment in `notmuch-hello-insert-tags'

2010-04-27 Thread d...@dme.org
From: David Edmondson <d...@dme.org> Re-working the saved search/tag insertion to buttonize only the name of the saved search/tag plus one space broke the calculation of how much filler is required to complete the column, resulting in lines wider than the window. --- emacs/notmuch-he

[PATCH 1/2] emacs: If 'all tags' is not shown, don't use it when calculating widths.

2010-04-27 Thread d...@dme.org
From: David Edmondson <d...@dme.org> If the 'all tags' section of the hello buffer will not be shown, don't consider those tags when determining the number of saved searches that can be displayed on a single line. --- emacs/notmuch-hello.el | 38 -- 1

[PATCH 2/2] emacs: Fix `notmuch-hello-insert-tags' to correctly draw the tags.

2010-04-27 Thread d...@dme.org
From: David Edmondson <d...@dme.org> The fix in 1e1871154341cdd3413fe3f32e3aae477826d815 broke end-of-row wrapping when drawing the table of tags/saved searches. Fix that and improve the readability of the matrix reflection code to hasten future debugging. --- Carl, this is

[PATCH] emacs/notmuch-wash.el: Add `notmuch-wash-convert-inline-patch-to-part'.

2010-04-27 Thread d...@dme.org
From: David Edmondson <d...@dme.org> Detect inline patches and convert them to fake attachments, in order that `diff-mode' highlighting can be applied to the patch. This can be enabled by customising `notmuch-show-insert-text/plain-hook'. --- emacs/notmuch-show.el |3 ++- emacs/n

[PATCH] emacs: Allow tuning of the tag/saved search layout.

2010-04-27 Thread d...@dme.org
From: David Edmondson <d...@dme.org> Add `notmuch-hello-tag-width', which has three potential sets of values: - t: automatically calculate the number of tags per line possible based on the tags to be shown and the window width, - an integer: a lower bound on the number of char

[PATCH] notmuch: Fix off-by-one errors if a header is >200 characters long.

2010-04-28 Thread d...@dme.org
From: David Edmondson <d...@dme.org> If a single header is more than 200 characters long a set of 'off by one' errors cause memory corruption. When allocating memory with: a = malloc (len); the last usable byte of the memory is 'a + len - 1' rather than 'a + len'. Fix the same bu

[PATCH] emacs: In hello mode, bind `C-tab' to move backwards through widgets.

2010-04-29 Thread d...@dme.org
From: David Edmondson <d...@dme.org> `C-tab' is now the inverse operation to `tab'. --- emacs/notmuch-hello.el |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 538785f..bf49bb1 100644 --- a/emacs/notmuch-hello.el