Re: [notmuch] [PATCH] notmuch-reply: Display reply message part using UTF-8.

2009-11-28 Thread Kan-Ru Chen
Same problem as notmuch-show before. Noticed this when I intend to reply a Chinese mail... Cheers, Kanru ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[notmuch] [PATCH] emacs: Don't eat last newline character of citations

2009-12-13 Thread Kan-Ru Chen
, consectetur adipisicin The indentation was wrong. Signed-off-by: Kan-Ru Chen ka...@kanru.info --- notmuch.el |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/notmuch.el b/notmuch.el index 97914f2..aa6bc60 100644 --- a/notmuch.el +++ b/notmuch.el @@ -606,6 +606,7 @@ which

[notmuch] [PATCH 2/4] emacs: Connect two hunk of citations if only blank separated

2009-12-13 Thread Kan-Ru Chen
Also eats extra blanks between citations and content, which may not be desired behavior. Signed-off-by: Kan-Ru Chen ka...@kanru.info --- notmuch.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch.el b/notmuch.el index 5823094..1722474 100644 --- a/notmuch.el

[notmuch] [PATCH 4/4] emacs: Use font-lock-comment-face to highlight citation button

2009-12-13 Thread Kan-Ru Chen
Signed-off-by: Kan-Ru Chen ka...@kanru.info --- notmuch.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch.el b/notmuch.el index db8f899..ed96dfa 100644 --- a/notmuch.el +++ b/notmuch.el @@ -581,7 +581,7 @@ which this thread was originally shown. (define-button

[notmuch] [PATCH 3/4] emacs: Some cleanup.

2009-12-13 Thread Kan-Ru Chen
Signed-off-by: Kan-Ru Chen ka...@kanru.info --- notmuch.el |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/notmuch.el b/notmuch.el index 1722474..db8f899 100644 --- a/notmuch.el +++ b/notmuch.el @@ -611,11 +611,10 @@ which this thread was originally shown

[notmuch] [PATCH 1/4] emacs: Don't eat last newline character of citations

2009-12-13 Thread Kan-Ru Chen
, consectetur adipisicin The indentation was wrong. Signed-off-by: Kan-Ru Chen ka...@kanru.info --- notmuch.el |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/notmuch.el b/notmuch.el index 97914f2..5823094 100644 --- a/notmuch.el +++ b/notmuch.el @@ -606,7 +606,8 @@ which

Re: [notmuch] [PATCH] notmuch.el: Refactor citation markup. Variables for minimum size, button text.

2009-12-24 Thread Kan-Ru Chen
notmuch-show-part-begin-regexp nil t) -- 1.6.5.7 ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch -- Kan-Ru Chen | http://kanru.info Q: Why are my replies five sentences or less? A: http

[PATCH 2/2] emacs: notmuch-hello: Add n and p to mod map

2010-07-26 Thread Kan-Ru Chen
Bind n to widget-forward and p to widget-backward to unify the interface since other notmuch major mode also accept n and p to navigation. --- emacs/notmuch-hello.el |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index

[PATCH 0/2] Usability improvements to notmuch-hello

2010-07-26 Thread Kan-Ru Chen
Hello! Haven't come here for a long time. I'm bring you some patches that are useful to me, hope they are useful to you too! - Kanru Kan-Ru Chen (2): emacs: notmuch-hello: Avoid going to end-of-line in search box emacs: notmuch-hello: Add n and p to mod map emacs/notmuch-hello.el |6

Re: [notmuch] Some Xapian tips and thoughts on rebuilding

2010-07-27 Thread Kan-Ru Chen
On Tue, 12 Jan 2010 12:48:27 -0800, Carl Worth cwo...@cworth.org wrote: On Tue, 12 Jan 2010 09:46:14 +0800, Kan-Ru Chen ka...@kanru.info wrote: After compacting my database, the size shrunk significantly, but the number of messages also changed. Beware that you might lose messages after

Re: Unicode Paths

2011-09-13 Thread Kan-Ru Chen
Martin Owens docto...@gmail.com writes: Hello Again, I notice in the lib code notmuch_database_open(), notmuch_database_create() these functions use const char *path for the directory path input. Is this unicode safe? The python bindings (and ctype docs) seem to suggest using something

[notmuch] [PATCH] Fix invalid face reference.

2009-11-22 Thread Kan-Ru Chen
To avoid the "Invalid face reference: cons [18 times]" kind of message goes on and on in the *Messages*. Signed-off-by: Kan-Ru Chen --- notmuch.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch.el b/notmuch.el index 0144b61..a547415 100644 --- a/

[notmuch] [PATCH] notmuch-show: Show message part using UTF-8.

2009-11-22 Thread Kan-Ru Chen
Pass the message through the charset filter so that we can view messages wrote in different charset encoding. Signed-off-by: Kan-Ru Chen --- notmuch-show.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/notmuch-show.c b/notmuch-show.c index d727f30..c7f1320

[notmuch] Snippet to jump to message in Gnus from notmuch-show buffer

2009-11-28 Thread Kan-Ru Chen
On Fri, 27 Nov 2009 04:54:17 -0800, Carl Worth wrote: > Do you happen to know some good documentation for how to get started > with gnus for reading mail? I'd be happy even with the bare minimum to > just get gnus to view one single message from out of my mail > store. (Which is something I tried

[notmuch] [PATCH] notmuch-reply: Display reply message part using UTF-8.

2009-11-28 Thread Kan-Ru Chen
Pass the message through the charset filter so that we can view messages wrote in different charset encoding. Signed-off-by: Kan-Ru Chen --- notmuch-reply.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/notmuch-reply.c b/notmuch-reply.c index 9ca1236..0cda72d

[notmuch] [PATCH] notmuch-reply: Display reply message part using UTF-8.

2009-11-28 Thread Kan-Ru Chen
Same problem as notmuch-show before. Noticed this when I intend to reply a Chinese mail... Cheers, Kanru

[notmuch] [PATCH] notmuch.el: Add face support to message summary and subject lines.

2009-11-30 Thread Kan-Ru Chen
Remove the underline of both message summary and subject lines. Message summary still defaults to reverse-video, use customize to change it to whatever you like. Signed-off-by: Kan-Ru Chen --- notmuch.el | 20 1 files changed, 16 insertions(+), 4 deletions(-) diff --git

[notmuch] [PATCH] notmuch.el: Add face support to message summary and subject lines.

2009-12-01 Thread Kan-Ru Chen
ically, and the button face is needed to remove the default button face (:underline t) -- Kan-Ru Chen | http://kanru.info

[notmuch] [PATCH 1/3] notmuch.el: Add keybinding to toggle display of message body and headers.

2009-12-01 Thread Kan-Ru Chen
I really missed this feature. Added notmuch-show-toggle-current-body and notmuch-show-toggle-current-header and bind them to 'b' and 'h'. Signed-off-by: Kan-Ru Chen --- notmuch.el | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/notmuch.el b

[notmuch] [PATCH 2/3] notmuch.el: Add collapse all and expand all to notmuch-show

2009-12-01 Thread Kan-Ru Chen
These two functions behave like gmail's collapse all and expand all commands. notmuch-show-collapse-all is bound to 'B' but notmuch-show-expand-all has no keybindig because I thought it is not often used. Signed-off-by: Kan-Ru Chen --- notmuch.el | 25 + 1 files

[notmuch] Patch for xapian defect #250

2009-12-10 Thread Kan-Ru Chen
it_end = term.positionlist_end(); - if (it != it_end) { - position_table.set_positionlist( - did, tname, it, it_end); - } else { - position_table.delete_positionlist(did, tname); - } - }

[notmuch] [PATCH] emacs: Don't eat last newline character of citations

2009-12-14 Thread Kan-Ru Chen
met, consectetur adipisicin The indentation was wrong. Signed-off-by: Kan-Ru Chen --- notmuch.el |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/notmuch.el b/notmuch.el index 97914f2..aa6bc60 100644 --- a/notmuch.el +++ b/notmuch.el @@ -606,6 +606,7 @@ which this thr

[notmuch] [PATCH 2/4] emacs: Connect two hunk of citations if only blank separated

2009-12-14 Thread Kan-Ru Chen
Also eats extra blanks between citations and content, which may not be desired behavior. Signed-off-by: Kan-Ru Chen --- notmuch.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch.el b/notmuch.el index 5823094..1722474 100644 --- a/notmuch.el +++ b/notmuch.el

[notmuch] [PATCH 4/4] emacs: Use font-lock-comment-face to highlight citation button

2009-12-14 Thread Kan-Ru Chen
Signed-off-by: Kan-Ru Chen --- notmuch.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch.el b/notmuch.el index db8f899..ed96dfa 100644 --- a/notmuch.el +++ b/notmuch.el @@ -581,7 +581,7 @@ which this thread was originally shown." (define-button-type 'no

[notmuch] [PATCH 3/4] emacs: Some cleanup.

2009-12-14 Thread Kan-Ru Chen
Signed-off-by: Kan-Ru Chen --- notmuch.el |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/notmuch.el b/notmuch.el index 1722474..db8f899 100644 --- a/notmuch.el +++ b/notmuch.el @@ -611,11 +611,10 @@ which this thread was originally shown

[notmuch] [PATCH-v2] Don't eat last newline character of citations

2009-12-14 Thread Kan-Ru Chen
This patch series fixed the indentation problem of git HEAD and did some minor cleanup of (- (..) 1) usage. The second patch connects two citations block if them are blank line separated, for example: > block 1 > block 1 > block 2 Will be treat as one citation block. The side

[notmuch] [PATCH 1/4] emacs: Don't eat last newline character of citations

2009-12-14 Thread Kan-Ru Chen
met, consectetur adipisicin The indentation was wrong. Signed-off-by: Kan-Ru Chen --- notmuch.el |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/notmuch.el b/notmuch.el index 97914f2..5823094 100644 --- a/notmuch.el +++ b/notmuch.el @@ -606,7 +606,8 @@ which this thr

[notmuch] [PATCH] notmuch.el: Refactor citation markup. Variables for minimum size, button text.

2009-12-25 Thread Kan-Ru Chen
cite-end))) > + (if (>= cite-lines notmuch-show-citation-lines-min) > + (notmuch-show-region-to-button > + cite-start cite-end > + "citation" > + indent > + (format notmuch-show-citation-button-format cite-lines) &

[notmuch] First attempt to add smart completion in notmuch-search

2009-12-27 Thread Kan-Ru Chen
is still great. Thanks for this patch :) Kanru -- Kan-Ru Chen | http://kanru.info Q: Why are my replies five sentences or less? A: http://five.sentenc.es/ -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature

[notmuch] Update Patch Series. Only collapse part of citations.

2009-12-27 Thread Kan-Ru Chen
On Fri, 25 Dec 2009 16:09:06 -0400, david at tethera.net wrote: > On Fri, 25 Dec 2009 09:47:02 +0800, Kan-Ru Chen wrote: > > > I like this idea, but this patch hides all citations larger than the > > threshold. I'd like to see limited lines of citations been displayed. > &

[notmuch] Some Xapian tips and thoughts on rebuilding

2010-01-12 Thread Kan-Ru Chen
> test, and then discard the original .notmuch/xapian if you're happy with > the result. > > For me, this compaction took my 5.0GB down to 3.1GB. So my database is > now less than half the size of what I started with with flint, (and can > conceivable be cached entirely within memory on my

[PATCH 2/2] emacs: notmuch-hello: Add "n" and "p" to mod map

2010-07-27 Thread Kan-Ru Chen
Bind "n" to widget-forward and "p" to widget-backward to unify the interface since other notmuch major mode also accept "n" and "p" to navigation. --- emacs/notmuch-hello.el |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el

[PATCH 1/2] emacs: notmuch-hello: Avoid going to end-of-line in search box

2010-07-27 Thread Kan-Ru Chen
widget-end-of-line checks eolp to decide whether C-e in a fixed size field should go to the end of the text in the field or the end of the field itself. So put a trailing white space to pad the search field. Previous behavior: Search: [text_] Now: Search: [text_

[PATCH 0/2] Usability improvements to notmuch-hello

2010-07-27 Thread Kan-Ru Chen
Hello! Haven't come here for a long time. I'm bring you some patches that are useful to me, hope they are useful to you too! - Kanru Kan-Ru Chen (2): emacs: notmuch-hello: Avoid going to end-of-line in search box emacs: notmuch-hello: Add "n" and "p" to mod map em

[notmuch] Some Xapian tips and thoughts on rebuilding

2010-07-28 Thread Kan-Ru Chen
On Tue, 12 Jan 2010 12:48:27 -0800, Carl Worth wrote: > On Tue, 12 Jan 2010 09:46:14 +0800, Kan-Ru Chen wrote: > > After compacting my database, the size shrunk significantly, but the > > number of messages also changed. Beware that you might lose messages > > after compact

Some Xapian tips and thoughts on rebuilding

2010-07-28 Thread Kan-Ru Chen
On Wed, 28 Jul 2010 12:23:35 + (UTC), Olly Betts wrote: > Bear in mind Xapian 1.1.x were development versions, and it sounds like you > are using a revision somewhere between 1.1.3 and 1.1.4. > > If you can reproduce this with 1.2.x (or 1.0.x), I'm happy to investigate. > I'm not sure it's