Re: [PATCH] emacs: Fix a notmuch-print.el compiler warning.

2012-01-25 Thread David Edmondson
On Wed, 25 Jan 2012 11:19:30 +0200, Tomi Ollila tomi.oll...@iki.fi wrote: On Wed, 25 Jan 2012 08:52:15 +, David Edmondson d...@dme.org wrote: `notmuch-show-get-prop' should be declared. --- How 'bout (require 'notmuch-lib) and put that declare-function there ? So that when

Re: Emacs: Crypto: How to get automatic encryption?

2012-01-25 Thread Jameson Graef Rollins
On Wed, 25 Jan 2012 06:23:01 +, David Edmondson d...@dme.org wrote: Can you explain the logic that will apply to determine whether or not a reply is encrypted? My plan was to modify notmuch-reply.c to include a flag in the JSON output if the message being replied to was encrypted. The

Re: [PATCH] emacs: Add `notmuch-show-stash-gmane' and `notmuch-show-stash-gmane-and-go'.

2012-01-25 Thread Tomi Ollila
On Wed, 25 Jan 2012 06:31:43 +, David Edmondson d...@dme.org wrote: Your point about Gmane not having everything applies equally to any service, suggesting that perhaps the user should also have an option to choose which service to use at stash time. Thoughts? Completing-read which has

[PATCH 2/3] emacs: Allow `notmuch-show-mode' to display only matching messages.

2012-01-25 Thread David Edmondson
The current behaviour (all messages shown, non-matching collapsed) is retained as the default. Type '!' to switch to showing only the matching messages - non-matching messages are not available. '!' will switch back to showing everything. --- emacs/notmuch-show.el | 18 +- 1

[PATCH 3/3] emacs: Allow the indentation of content to be toggled.

2012-01-25 Thread David Edmondson
Very deeply indented content is sometimes difficult to read (particular for something like patches). Allow the indentation of the content to be toggled with ''. Indentation of the header lines is not affected, so it remains possible to see the structure of the thread. --- emacs/notmuch-show.el |

[PATCH 1/3] emacs: Rework crypto switch toggle.

2012-01-25 Thread David Edmondson
Re-work the existing crypto switch toggle to be based on a persistant buffer-local variable. To allow this, modify `notmuch-show-refresh-view' to erase and re-draw in the current buffer rather than killing the current buffer and creating a new one. (This will also allow more per-buffer behaviour

Re: Emacs: Crypto: How to get automatic encryption?

2012-01-25 Thread David Edmondson
On Wed, 25 Jan 2012 01:26:19 -0800, Jameson Graef Rollins jroll...@finestructure.net wrote: On Wed, 25 Jan 2012 06:23:01 +, David Edmondson d...@dme.org wrote: Can you explain the logic that will apply to determine whether or not a reply is encrypted? My plan was to modify

Re: [PATCH] emacs: Add `notmuch-show-stash-gmane' and `notmuch-show-stash-gmane-and-go'.

2012-01-25 Thread David Edmondson
On Wed, 25 Jan 2012 12:18:22 +0200, Tomi Ollila tomi.oll...@iki.fi wrote: On Wed, 25 Jan 2012 06:31:43 +, David Edmondson d...@dme.org wrote: Your point about Gmane not having everything applies equally to any service, suggesting that perhaps the user should also have an option to

Re: [PATCH v3 3/8] emacs: break out thread navigation from notmuch-show-archive-thread

2012-01-25 Thread David Edmondson
On Tue, 24 Jan 2012 16:06:18 -0800, Jameson Graef Rollins jroll...@finestructure.net wrote: This function is now just for archiving the current thread. A new function is created to archive-then-next. The 'a' key binding is updated accordingly. This will allow people to bind to the simple

Re: [PATCH v3 4/8] emacs: add message archiving functions

2012-01-25 Thread David Edmondson
On Tue, 24 Jan 2012 16:06:19 -0800, Jameson Graef Rollins jroll...@finestructure.net wrote: This adds two new message archiving functions that parallel the thread archiving functions: notmuch-show-archive-message{,-then-next}. The former also takes a prefix argument to unarchive the message

Re: [PATCH v3 8/8] emacs: fix show-previous-message doc string

2012-01-25 Thread David Edmondson
Fine. pgpKbaKgOLkD5.pgp Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [PATCH v3 1/8] emacs: use search-next-thread to move to next thread in show mode

2012-01-25 Thread David Edmondson
Fine. pgpQD2IcvndvB.pgp Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [PATCH 1/3] emacs: s/buttonise/buttonize/g

2012-01-25 Thread David Bremner
On Thu, 12 Jan 2012 18:23:43 +0100, Pieter Praet pie...@praet.org wrote: Worldwide, -ize endings prevail in scientific writing and are commonly used by many international organizations, such as the ISO and the WHO. The European Union switched from -ize to -ise some years ago in its English

Re: [PATCH 0/4 v43] emacs test helpers

2012-01-25 Thread David Bremner
On Tue, 24 Jan 2012 16:14:03 +, David Edmondson d...@dme.org wrote: Small changes as per Dmitry's last comments. Pushed. d ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [PATCH] emacs: have notmuch-search-archive-thread use -next-thread function

2012-01-25 Thread David Bremner
On Tue, 17 Jan 2012 10:54:26 -0800, Jameson Graef Rollins jroll...@finestructure.net wrote: Use this standard function, to keep thread navigation in one place. pushed ___ notmuch mailing list notmuch@notmuchmail.org

[PATCH 0/2] improve `notmuch-show-clean-address'

2012-01-25 Thread David Edmondson
Avoids warnings due to unicode characters and improves display. David Edmondson (2): emacs: Avoid `mail-header-parse-address' in `notmuch-show-clean-address'. emacs: Another special case for `notmuch-show-clean-address'. emacs/notmuch-show.el | 54

Re: [PATCH] emacs: Add `notmuch-show-stash-gmane' and `notmuch-show-stash-gmane-and-go'.

2012-01-25 Thread Tomi Ollila
On Wed, 25 Jan 2012 10:41:26 +, David Edmondson d...@dme.org wrote: On Wed, 25 Jan 2012 12:18:22 +0200, Tomi Ollila tomi.oll...@iki.fi wrote: On Wed, 25 Jan 2012 06:31:43 +, David Edmondson d...@dme.org wrote: Your point about Gmane not having everything applies equally to any

Re: [PATCH] emacs: make `notmuch-show-open-or-close-all' toggle visibility

2012-01-25 Thread Tomi Ollila
On Wed, 25 Jan 2012 06:35:33 +, David Edmondson d...@dme.org wrote: On Wed, 25 Jan 2012 06:25:39 +0100, Pieter Praet pie...@praet.org wrote: * emacs/notmuch-show.el (notmuch-show-open-or-close-all): Rename to `notmuch-show-toggle-all-messages', and make it toggle visibility of all

[PATCH 0/3] minor cleanup and improvements

2012-01-25 Thread David Edmondson
Three minor cleanup or small improvement patches. David Edmondson (3): emacs: Stop the `truncate-string-to-width' madness. emacs: Don't mark messages as unsaved when printing. emacs: Prefer '[No Subject]' to blank subjects. emacs/notmuch-lib.el |5 + emacs/notmuch-print.el |

[PATCH 2/3] emacs: Don't mark messages as unsaved when printing.

2012-01-25 Thread David Edmondson
`ps-print-buffer' notes that a buffer is unsaved unless `buffer-modified-p' returns `nil', so ensure that it does. --- emacs/notmuch-print.el |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-print.el b/emacs/notmuch-print.el index f96ccbe..83eb525 100644 ---

[PATCH 1/3] emacs: Stop the `truncate-string-to-width' madness.

2012-01-25 Thread David Edmondson
There's no need to call `truncate-string-to-width' twice in this code path. --- emacs/notmuch.el | 14 ++ 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 3ec0816..3f6b977 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@

[PATCH 3/3] emacs: Prefer '[No Subject]' to blank subjects.

2012-01-25 Thread David Edmondson
--- emacs/notmuch-lib.el |6 ++ emacs/notmuch-print.el |8 ++-- emacs/notmuch-show.el |5 - emacs/notmuch.el |5 + 4 files changed, 17 insertions(+), 7 deletions(-) diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 241fe8c..5b8a41c 100644 ---

[PATCH 0/3 v2] minor cleanup and improvements

2012-01-25 Thread David Edmondson
Three minor cleanup or small improvement patches. v2: Fix the case where subject can be `nil' in patch 3. David Edmondson (3): emacs: Stop the `truncate-string-to-width' madness. emacs: Don't mark messages as unsaved when printing. emacs: Prefer '[No Subject]' to blank subjects.

[PATCH 3/3] emacs: Another special case for `notmuch-show-clean-address'.

2012-01-25 Thread David Edmondson
Remove backslashes. --- emacs/notmuch-show.el | 14 +- test/emacs-address-cleaning.el |6 -- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 1fd2524..c849e84 100644 --- a/emacs/notmuch-show.el +++

[PATCH 2/3] test: Updated expected output for new `notmuch-show-clean-address'.

2012-01-25 Thread David Edmondson
--- test/emacs |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/test/emacs b/test/emacs index f150d95..8ca4c8a 100755 --- a/test/emacs +++ b/test/emacs @@ -78,7 +78,7 @@ thread=$(notmuch search --output=threads subject:message-with-invalid-from) test_emacs (notmuch-show

Re: [PATCH 0/3 v2 ] improve `notmuch-show-clean-address'

2012-01-25 Thread Tomi Ollila
On Wed, 25 Jan 2012 13:53:57 +, David Edmondson d...@dme.org wrote: Avoids warnings due to unicode characters and improves display. v2: Update the existing test output accordingly. David Edmondson (3): emacs: Avoid `mail-header-parse-address' in `notmuch-show-clean-address'.

[PATCH 1/1] emacs: Take more care when hiding regions with buttons.

2012-01-25 Thread David Edmondson
If the region to be hidden with a button by `notmuch-wash-region-to-button' starts at the beginning of the buffer, the invisible region will include the inserted button. This is unfortunate, as it means that it is not possible to see the button to be pressed. Make a little space at the start of

Re: [PATCH 1/1] emacs: Take more care when hiding regions with buttons.

2012-01-25 Thread Dmitry Kurochkin
On Wed, 25 Jan 2012 15:05:08 +, David Edmondson d...@dme.org wrote: If the region to be hidden with a button by `notmuch-wash-region-to-button' starts at the beginning of the buffer, the invisible region will include the inserted button. This is unfortunate, as it means that it is not

Re: [PATCH 1/1] emacs: Take more care when hiding regions with buttons.

2012-01-25 Thread David Edmondson
On Wed, 25 Jan 2012 19:10:35 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: On Wed, 25 Jan 2012 15:05:08 +, David Edmondson d...@dme.org wrote: If the region to be hidden with a button by `notmuch-wash-region-to-button' starts at the beginning of the buffer, the invisible

[RFC PATCH] bikeshed uncrustify options

2012-01-25 Thread Tomi Ollila
Look or try. thoughts ? Questions: Is (generally) using *INDENT-(OFF|ON)* ok ? Would it be ok to have #define STRINGIFY(s) STRINGIFY_ (s) (now such expansion disabled by INDENT-OFF) When used, it is still thought as function call, and whitespace added. What about enum { } \n

[PATCH 0/4 v2] more care when hiding regions with buttons

2012-01-25 Thread David Edmondson
Added a test, which required some improvements to the test harness. The fix still seems awkward. David Edmondson (4): test: `visible-buffer-substring' should not return text properties. test: `notmuch-test-run' should protect against buffer switching. test: Add test for Original Message

[PATCH 3/4 v2] test: Add test for Original Message hiding at point-min.

2012-01-25 Thread David Edmondson
--- test/emacs-original-message-hiding.el | 15 +++ test/emacs-original-message-hiding.sh | 20 test/notmuch-test |1 + 3 files changed, 36 insertions(+), 0 deletions(-) create mode 100644 test/emacs-original-message-hiding.el create

Re: [RFC PATCH] bikeshed uncrustify options

2012-01-25 Thread Jani Nikula
Coding style bikeshedding, wonderful. :) On Wed, 25 Jan 2012 17:21:26 +0200, Tomi Ollila tomi.oll...@iki.fi wrote: Is (generally) using *INDENT-(OFF|ON)* ok ? Obviously I wish we could do without. You should cook up a wrapper for uncrustify that takes a patch, applies it, and checks if it

Re: Emacs: Crypto: How to get automatic encryption?

2012-01-25 Thread Jameson Graef Rollins
On Wed, 25 Jan 2012 10:20:26 +, David Edmondson d...@dme.org wrote: Isn't it still necessary to ensure that you have encryption keys appropriate to the recipient? I want to ensure that all replies to encrypted to be encrypted. I would rather have the reply fail outright than fall back to

Re: [PATCH 3/4 v2] test: Add test for Original Message hiding at point-min.

2012-01-25 Thread Dmitry Kurochkin
On Wed, 25 Jan 2012 15:45:27 +, David Edmondson d...@dme.org wrote: --- test/emacs-original-message-hiding.el | 15 +++ test/emacs-original-message-hiding.sh | 20 test/notmuch-test |1 + 3 files changed, 36 insertions(+), 0

Re: [PATCH 4/4 v2] emacs: Take more care when hiding regions with buttons.

2012-01-25 Thread Dmitry Kurochkin
On Wed, 25 Jan 2012 15:45:28 +, David Edmondson d...@dme.org wrote: If the region to be hidden with a button by `notmuch-wash-region-to-button' starts at the beginning of the buffer, the invisible region will include the inserted button. This is unfortunate, as it means that it is not

Re: [RFC PATCH] bikeshed uncrustify options

2012-01-25 Thread Tomi Ollila
On Wed, 25 Jan 2012 08:41:52 -0800, Jameson Graef Rollins jroll...@finestructure.net wrote: On Wed, 25 Jan 2012 17:21:26 +0200, Tomi Ollila tomi.oll...@iki.fi wrote: -type GMimeObject mime_node_t +type GMimeObject GMimeCryptoContext GMimeCipherContext +type mime_node_t notmuch_message_t

[PATCH] emacs: polish notmuch-hello help text

2012-01-25 Thread Dmitry Kurochkin
Make `=' binding description consistent with others. --- emacs/notmuch-hello.el |2 +- test/emacs.expected-output/notmuch-hello |2 +- .../notmuch-hello-no-saved-searches|2 +- .../emacs.expected-output/notmuch-hello-with-empty |

Re: [RFC PATCH] bikeshed uncrustify options

2012-01-25 Thread Jameson Graef Rollins
On Wed, 25 Jan 2012 20:24:19 +0200, Tomi Ollila tomi.oll...@iki.fi wrote: On Wed, 25 Jan 2012 08:41:52 -0800, Jameson Graef Rollins jroll...@finestructure.net wrote: On Wed, 25 Jan 2012 17:21:26 +0200, Tomi Ollila tomi.oll...@iki.fi wrote: -type GMimeObject mime_node_t +type GMimeObject

Re: Emacs: Crypto: How to get automatic encryption?

2012-01-25 Thread Daniel Kahn Gillmor
On 01/25/2012 12:45 PM, Jameson Graef Rollins wrote: Here's a behavior that I think would be reasonable: * notmuch reply outputs JSON encrypted flag * emacs does a quick check to see if the needed key is available * if key not available: give a nice mini-buffer prompt, something like:

Re: [PATCH] emacs: polish notmuch-hello help text

2012-01-25 Thread David Edmondson
Obviously good, +1. pgp9PO8Q9MCDD.pgp Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[PATCH] uncrustify.cfg: comments and more types

2012-01-25 Thread Tomi Ollila
Changes to devel/uncrustify.cfg: * Updated header comment to state this is config file for *notmuch*. * Mentioned in header commit that uncrustify version 0.59 required. * Use tabs to indent/align comments. * Added comment about the reason of 'type' keyword used. * Added some more custom types

[Emacs] Bug?: notmuch-search-show-thread shows several threads; only one containing matching messages

2012-01-25 Thread Gregor Zattler
[sorry for the long and meandering explanation, I do not know how to express the issue more concise] Dear notmuch developers, may someone please enlighten me regarding this behaviour: I experienced a situation where the Emacs interface shows three (3) different threads in one notmuch show

[PATCH] emacs: add completion to tag all operation (* binding)

2012-01-25 Thread Dmitry Kurochkin
The patch adds tab completion to tag all operation bound to * (`notmuch-search-operate-all' function). --- emacs/notmuch.el | 48 1 files changed, 36 insertions(+), 12 deletions(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index

Re: [Emacs] Bug?: notmuch-search-show-thread shows several threads; only one containing matching messages

2012-01-25 Thread Austin Clements
Quoth Gregor Zattler on Jan 26 at 1:40 am: [sorry for the long and meandering explanation, I do not know how to express the issue more concise] Dear notmuch developers, may someone please enlighten me regarding this behaviour: I experienced a situation where the Emacs interface shows

[PATCH v2] emacs: add completion to tag all operation (* binding)

2012-01-25 Thread Dmitry Kurochkin
The patch adds tab completion to tag all operation bound to * (`notmuch-search-operate-all' function). --- Changes in v2: * s/thistag/this_tag/ for consistency with that_tag, since we touch the line anyway Regards, Dmitry emacs/notmuch.el | 48

Re: [PATCH] emacs: add completion to tag all operation (* binding)

2012-01-25 Thread Austin Clements
Neat. As an aside, I would love to see a prompt like this for + and -, allowing multiple tags to be modified at once (and starting out with whichever of + or - got you in to the prompt). Quoth Dmitry Kurochkin on Jan 26 at 5:12 am: The patch adds tab completion to tag all operation bound to *

Re: [PATCH] emacs: add completion to tag all operation (* binding)

2012-01-25 Thread Dmitry Kurochkin
On Wed, 25 Jan 2012 20:37:27 -0500, Austin Clements amdra...@mit.edu wrote: Neat. As an aside, I would love to see a prompt like this for + and -, allowing multiple tags to be modified at once (and starting out with whichever of + or - got you in to the prompt). Yeah, I was thinking about

Re: [Emacs] Bug?: notmuch-search-show-thread shows several threads; only one containing matching messages

2012-01-25 Thread Jameson Graef Rollins
On Wed, 25 Jan 2012 20:19:03 -0500, Austin Clements amdra...@mit.edu wrote: One very common cause of this is someone using reply to get an initial set of recipients, but then replacing the entire message and subject (presumably without realizing that the mail is still tracking what it was a

[PATCH v3] emacs: add completion to tag all operation (* binding)

2012-01-25 Thread Dmitry Kurochkin
The patch adds tab completion to tag all operation bound to * (`notmuch-search-operate-all' function). --- Changes: v3: * fixed comments from Austin's review [1] v2: * s/thistag/this_tag/ for consistency with that_tag, since we touch the line anyway Regards, Dmitry [1]

[PATCH v4] emacs: add completion to tag all operation (* binding)

2012-01-25 Thread Dmitry Kurochkin
The patch adds tab completion to tag all operation bound to * (`notmuch-search-operate-all' function). --- On a second thought, `notmuch-select-tag-with-completion' should never need `prefixes' argument at all. So I reverted the API and related changes. Changes: v4: * do not change

Re: [RFC PATCH 5/5] show: Simplify new text formatter code

2012-01-25 Thread Austin Clements
Quoth Dmitry Kurochkin on Jan 24 at 5:49 am: On Wed, 11 Jan 2012 20:49:33 -0500, Austin Clements amdra...@mit.edu wrote: This makes the text formatter take advantage of the new code structure. The previously duplicated header logic is now unified, several things that we used to compute

[PATCH 0/2] Rewrite text show format

2012-01-25 Thread Austin Clements
And now the real fun begins. This series translates the text formatter into the new format style in two steps: the first patch is a big diff but just shuffles code and the second actually takes advantage of the new structure. This incorporates Dmitry's comments on the RFC patch series from

[PATCH 1/2] show: Convert text format to the new self-recursive style

2012-01-25 Thread Austin Clements
This is all code movement and a smidgen of glue. This moves the existing text formatter code into one self-recursive function, but doesn't change any of the logic. The next patch will actually take advantage of what the new structure has to offer. Note that this patch retains

[PATCH 2/2] show: Simplify new text formatter code

2012-01-25 Thread Austin Clements
This makes the text formatter take advantage of the new code structure. The previously duplicated header logic is now unified, several things that we used to compute repeatedly across different callbacks are now computed once, and the code is simpler overall and 32% shorter. Unifying the header

Re: [PATCH v4] emacs: add completion to tag all operation (* binding)

2012-01-25 Thread Austin Clements
Quoth Dmitry Kurochkin on Jan 26 at 9:06 am: The patch adds tab completion to tag all operation bound to * (`notmuch-search-operate-all' function). --- On a second thought, `notmuch-select-tag-with-completion' should never need `prefixes' argument at all. So I reverted the API and related

[PATCH 0/4 v3] more care when hiding regions with buttons

2012-01-25 Thread David Edmondson
Address Dmitry's comments. David Edmondson (4): test: `visible-buffer-substring' should not return text properties. test: `notmuch-test-run' should protect against buffer switching. test: Add test for Original Message hiding at point-min. emacs: Take more care when hiding regions with

[PATCH 1/4 v3] test: `visible-buffer-substring' should not return text properties.

2012-01-25 Thread David Edmondson
When using `visible-buffer-substring' to examine a buffer, the text properties are not useful, so don't include them. --- test/test-lib.el |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/test/test-lib.el b/test/test-lib.el index bc75f06..5b32e0a 100644 ---

[PATCH 2/4 v3] test: `notmuch-test-run' should protect against buffer switching.

2012-01-25 Thread David Edmondson
The body of the test may cause the current buffer to change. Ensure that the output goes to the correct buffer by switching back before inserting it. --- test/test-lib.el |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/test/test-lib.el b/test/test-lib.el index

[PATCH 3/4 v3] test: Add test for Original Message hiding at point-min.

2012-01-25 Thread David Edmondson
--- test/emacs-message-hiding.sh | 37 + test/notmuch-test|1 + 2 files changed, 38 insertions(+), 0 deletions(-) create mode 100755 test/emacs-message-hiding.sh diff --git a/test/emacs-message-hiding.sh b/test/emacs-message-hiding.sh new

Re: [PATCH 3/4 v2] test: Add test for Original Message hiding at point-min.

2012-01-25 Thread David Edmondson
I've applied changes in accordance with all of the feedback in this mail and the others, except for... On Wed, 25 Jan 2012 21:53:08 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: + (let ((notmuch-show-insert-text/plain-hook '(notmuch-wash-excerpt-citations)) Do we have to

gmime2.6 packaging for debian

2012-01-25 Thread Daniel Kahn Gillmor
hey notmuch folks-- those of you who run debian might be interested in the gmime2.6 packaging which i cobbled together for debian from the existing gmime2.4 packaging: http://bugs.debian.org/657426 Those of you developing notmuch with the gmime 2.6 patchsets might be interested in trying it

[PATCH v4 2/3] emacs: `notmuch-show-buttonize-links' only `notmuch-show's a message if it exists

2012-01-25 Thread Pieter Praet
On Sun, 22 Jan 2012 11:10:02 +, Mark Walters wrote: > > > * emacs/notmuch-show.el (notmuch-show-if-found): new function that only > > shows > > a message/thread if present in the database and otherwise returns an > > error. > > I like this in principle but it interacts awkwardly with

[PATCH 3/4] config: only set search.exclude_tags to "deleted; spam; " during setup

2012-01-25 Thread Pieter Praet
On Mon, 23 Jan 2012 08:31:23 +, Jani Nikula wrote: > On Mon, 23 Jan 2012 09:03:42 +0100, Pieter Praet wrote: > > On Mon, 23 Jan 2012 07:22:25 +, Jani Nikula wrote: > > > On Mon, 23 Jan 2012 06:05:27 +0100, Pieter Praet > > > wrote: > > > > On Sun, 22 Jan 2012 14:53:41 -0800, Jameson

[PATCH 3/4] config: only set search.exclude_tags to "deleted; spam; " during setup

2012-01-25 Thread Pieter Praet
On Mon, 23 Jan 2012 08:24:44 +, Jani Nikula wrote: > On Sun, 22 Jan 2012 23:38:40 -0800, Jameson Graef Rollins finestructure.net> wrote: > > On Mon, 23 Jan 2012 07:22:25 +, Jani Nikula wrote: > > > There really should be a definitive list of tags that are special to > > > lib/cli/emacs

[PATCH] emacs: have notmuch-search-archive-thread use -next-thread function

2012-01-25 Thread Pieter Praet
On Tue, 17 Jan 2012 10:54:26 -0800, Jameson Graef Rollins wrote: > Use this standard function, to keep thread navigation in one place. > --- +1 Peace -- Pieter

[PATCH 0/3] Configuration file option to exclude files/directories

2012-01-25 Thread Pieter Praet
On Thu, 08 Dec 2011 11:05:50 +0200, Tomi Ollila wrote: > On Wed, 07 Dec 2011 19:51:32 -0400, David Bremner > wrote: > > On Wed, 14 Sep 2011 00:32:01 +0300, tomi.ollila at iki.fi wrote: > > > This patch set adds a configuration option 'database.exclude'; a list of > > > files/directories to be

[PATCH 10/10] test: use emacsclient(1) for Emacs tests

2012-01-25 Thread Pieter Praet
On Mon, 23 Jan 2012 20:08:59 +0100, Xavier Maillard wrote: > On Tue, 28 Jun 2011 08:45:11 +0400, Dmitry Kurochkin gmail.com> wrote: > > Before the change, every Emacs test ran in a separate Emacs > > instance. Starting Emacs many times wastes considerable time and > > it gets worse as the test

[PATCH] emacs: Add `notmuch-show-stash-gmane' and `notmuch-show-stash-gmane-and-go'.

2012-01-25 Thread Pieter Praet
In a perfect world, everyone would be using Notmuch and have a local copy of every message ever sent to any ML. While we're waiting for Atlantis to resurface, we'll need an interim solution. +1 for the idea, but Gmane doesn't archive *all* MLs, so we should leave the user some legroom. Since

[PATCH v4 0/3] emacs: notmuch-hello search cleanup

2012-01-25 Thread Dmitry Kurochkin
Changes: v4: * do not add queries from saved search and tag buttons to the history v3: * rebased on current master v2: * expected results changes for tests moved from patch 2 to 1 where it belong Regards, Dmitry

[PATCH v4 1/3] emacs: bind "s" to `notmuch-search' in notmuch-hello buffer

2012-01-25 Thread Dmitry Kurochkin
Before the change, "s" in notmuch-hello buffer would jump to the search box. The patch changes the binding to `notmuch-search' which is consistent with all other notmuch buffers. --- emacs/notmuch-hello.el | 19 ++-

[PATCH v4 3/3] emacs: bind "s" to `notmuch-hello-search' in notmuch-hello buffer

2012-01-25 Thread Dmitry Kurochkin
`notmuch-hello-search' uses `notmuch-search' function but refreshes notmuch-hello buffer when the search buffer is closed. --- emacs/notmuch-hello.el |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 6970bc3..ab65e36

[PATCH v4 2/3] emacs: use a single history for all searches

2012-01-25 Thread Dmitry Kurochkin
There are two ways to do search in Emacs UI: search widget in notmuch-hello buffer and `notmuch-search' function bound to "s". Before the change, these search mechanisms used different history lists. The patch makes notmuch-hello search use the same history list as `notmuch-search' function. ---

[PATCH] emacs: make `notmuch-show-open-or-close-all' toggle visibility

2012-01-25 Thread Pieter Praet
* emacs/notmuch-show.el (notmuch-show-open-or-close-all): Rename to `notmuch-show-toggle-all-messages', and make it toggle visibility of all messages based on the visibility of the current message, instead of setting visibility based on whether or not a prefix arg was supplied. Same

[PATCH 1/3] emacs: Don't return the button from `notmuch-show-insert-part-header'.

2012-01-25 Thread David Edmondson
e for this? -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/8cfaa274/attachment-0001.pgp>

Emacs: Crypto: How to get automatic encryption?

2012-01-25 Thread David Edmondson
t;http://notmuchmail.org/pipermail/notmuch/attachments/20120125/cd6cc8c4/attachment.pgp>

[PATCH 0/3] Configuration file option to exclude files/directories

2012-01-25 Thread David Edmondson
changes (I'd like to ignore .git). It would help if a test case or two was include. -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/da2724c8/attachment.pgp>

[PATCH] emacs: Add `notmuch-show-stash-gmane' and `notmuch-show-stash-gmane-and-go'.

2012-01-25 Thread David Edmondson
s > +++ b/test/emacs > @@ -382,7 +382,7 @@ test_emacs '(notmuch-show "id:\"bought\"") > (notmuch-show-stash-message-id-stripped) > (notmuch-show-stash-tags) > (notmuch-show-stash-filename) > - (notmuch-show-stash-gmane) > + (notmuch-show-stash-mlarchive-link) > (switch-to-buffer > (generate-new-buffer "*test-stashing*")) > (dotimes (i 10) > -- > 1.7.8.1 > -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/a8d9cc55/attachment.pgp>

[PATCH] emacs: make `notmuch-show-open-or-close-all' toggle visibility

2012-01-25 Thread David Edmondson
> notmuch mailing list > notmuch at notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/87cba7da/attachment.pgp>

[PATCH] emacs: Fix a notmuch-print.el compiler warning.

2012-01-25 Thread David Edmondson
`notmuch-show-get-prop' should be declared. --- emacs/notmuch-print.el |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-print.el b/emacs/notmuch-print.el index f96ccbe..fd86288 100644 --- a/emacs/notmuch-print.el +++ b/emacs/notmuch-print.el @@ -19,6 +19,8

[PATCH] emacs: Fix a notmuch-print.el compiler warning.

2012-01-25 Thread Tomi Ollila
On Wed, 25 Jan 2012 08:52:15 +, David Edmondson wrote: > `notmuch-show-get-prop' should be declared. > --- How 'bout (require 'notmuch-lib) and put that declare-function there ? So that when declaration gets checked when notmuch-show defuns it Tomi

[PATCH] emacs: Fix a notmuch-print.el compiler warning.

2012-01-25 Thread David Edmondson
pe: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/7732edfb/attachment-0001.pgp>

Emacs: Crypto: How to get automatic encryption?

2012-01-25 Thread Jameson Graef Rollins
hmail.org/pipermail/notmuch/attachments/20120125/1336519f/attachment.pgp>

[PATCH] emacs: Add `notmuch-show-stash-gmane' and `notmuch-show-stash-gmane-and-go'.

2012-01-25 Thread Tomi Ollila
On Wed, 25 Jan 2012 06:31:43 +, David Edmondson wrote: > > Your point about Gmane not having everything applies equally to any > service, suggesting that perhaps the user should also have an option to > choose which service to use at stash time. Thoughts? Completing-read which has all

[PATCH 2/3] emacs: Allow `notmuch-show-mode' to display only matching messages.

2012-01-25 Thread David Edmondson
The current behaviour (all messages shown, non-matching collapsed) is retained as the default. Type '!' to switch to showing only the matching messages - non-matching messages are not available. '!' will switch back to showing everything. --- emacs/notmuch-show.el | 18 +- 1

[PATCH 3/3] emacs: Allow the indentation of content to be toggled.

2012-01-25 Thread David Edmondson
Very deeply indented content is sometimes difficult to read (particular for something like patches). Allow the indentation of the content to be toggled with '<'. Indentation of the header lines is not affected, so it remains possible to see the structure of the thread. --- emacs/notmuch-show.el

[PATCH 0/3] reworked crypto toggle, plus a couple of other toggles

2012-01-25 Thread David Edmondson
The crypto toggle previously worked using an argument to `notmuch-show' and various other functions and relied on killing and re-creating the notmuch-show-mode buffer. Various other pseudo-buffer-local variables were present based on an ad-hoc scheme. Replace the ad-hoc scheme with real

[PATCH 1/3] emacs: Rework crypto switch toggle.

2012-01-25 Thread David Edmondson
Re-work the existing crypto switch toggle to be based on a persistant buffer-local variable. To allow this, modify `notmuch-show-refresh-view' to erase and re-draw in the current buffer rather than killing the current buffer and creating a new one. (This will also allow more per-buffer behaviour

Emacs: Crypto: How to get automatic encryption?

2012-01-25 Thread David Edmondson
ient? -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/f6e19de6/attachment.pgp>

[PATCH] emacs: Add `notmuch-show-stash-gmane' and `notmuch-show-stash-gmane-and-go'.

2012-01-25 Thread David Edmondson
- to -1- if the don't have cover letter ;) Should a single patch need a cover letter? -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/piper

[PATCH v3 2/8] emacs: break up notmuch-show-archive-thread-internal into two more generally useful functions

2012-01-25 Thread David Edmondson
message to kill-ring." > -- > 1.7.8.3 > > ___ > notmuch mailing list > notmuch at notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/2ab4f34b/attachment.pgp>

[PATCH v3 3/8] emacs: break out thread navigation from notmuch-show-archive-thread

2012-01-25 Thread David Edmondson
thread-then-exit () >"Archive each message in thread, then exit back to search results." >(interactive) > - (notmuch-show-remove-tag-thread "inbox") > + (notmuch-show-archive-thread) >(notmuch-show-next-thread)) > > (defun notmuch-show-stash-cc () > -- > 1.7.8.3 > > ___ > notmuch mailing list > notmuch at notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/41f6e70f/attachment.pgp>

[PATCH v3 4/8] emacs: add message archiving functions

2012-01-25 Thread David Edmondson
.org > http://notmuchmail.org/mailman/listinfo/notmuch ------ next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/1d3a3549/attachment.pgp>

[PATCH v3 5/8] emacs: add option to show-next-{, open-}message functions to pop out to parent buffer if at end

2012-01-25 Thread David Edmondson
Fine. -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/84d0ac7e/attachment-0001.pgp>

[PATCH v3 7/8] emacs: modify the default show-mode key bindings for archiving

2012-01-25 Thread David Edmondson
Fine. -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/cee23b2e/attachment.pgp>

[PATCH v3 8/8] emacs: fix show-previous-message doc string

2012-01-25 Thread David Edmondson
Fine. -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/79245318/attachment.pgp>

[PATCH v3 1/8] emacs: use search-next-thread to move to next thread in show mode

2012-01-25 Thread David Edmondson
Fine. -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/f9baaa5e/attachment.pgp>

[PATCH 1/3] emacs: s/buttonise/buttonize/g

2012-01-25 Thread David Bremner
On Thu, 12 Jan 2012 18:23:43 +0100, Pieter Praet wrote: > "Worldwide, -ize endings prevail in scientific writing and are commonly > used by many international organizations, such as the ISO and the > WHO. The European Union switched from -ize to -ise some years ago in its > English language

[PATCH 0/4 v43] emacs test helpers

2012-01-25 Thread David Bremner
On Tue, 24 Jan 2012 16:14:03 +, David Edmondson wrote: > Small changes as per Dmitry's last comments. Pushed. d

[PATCH v5 0/2] Second step of 'show' rewrite

2012-01-25 Thread David Bremner
On Mon, 23 Jan 2012 18:33:08 -0500, Austin Clements wrote: > Arrg, sorry for the spam. I grabbed the wrong commit ID when sending > v4. > > ___ > notmuch mailing list > notmuch at notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch v5

  1   2   >