[PATCH] emacs: polish notmuch-hello help text

2012-01-25 Thread Tomi Ollila
+1

[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

[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 |

[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 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 possible to

[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 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

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

2012-01-25 Thread Dmitry Kurochkin
On Wed, 25 Jan 2012 15:45:26 +, David Edmondson wrote: > 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. LGTM Regards, Dmitry > --- > test/test-lib.el |4 +++- > 1 files

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

2012-01-25 Thread Dmitry Kurochkin
On Wed, 25 Jan 2012 15:45:25 +, David Edmondson wrote: > When using `visible-buffer-substring' to examine a buffer, the text > properties are not useful, so don't include them. > --- > test/test-lib.el |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git

[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 completion to "tag all" operation bound to

[RFC PATCH] bikeshed uncrustify options

2012-01-25 Thread Tomi Ollila
On Wed, 25 Jan 2012 08:41:52 -0800, Jameson Graef Rollins wrote: > On Wed, 25 Jan 2012 17:21:26 +0200, Tomi Ollila wrote: > > -type GMimeObject mime_node_t > > +type GMimeObject GMimeCryptoContext GMimeCipherContext > > +type mime_node_t notmuch_message_t > > This must be a mistake. Presumably

[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

[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 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 possible to

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

2012-01-25 Thread Jameson Graef Rollins
ie. -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/33cf049a/attachment.pgp>

[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 format_sel

[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 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'. >

[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 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 introduces new

[PATCH 4/4 v2] 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

[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

[PATCH 2/4 v2] 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 1/4 v2] 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 |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/test/test-lib.el b/test/test-lib.el index bc75f06..36e793a 100644 ---

[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 1/1] emacs: Take more care when hiding regions with buttons.

2012-01-25 Thread David Edmondson
t-button (notmuch-wash-button-label overlay) > > + 'invisibility-spec invis-spec > > + 'overlay overlay > > + :type button-type)) > > + > > + (when scene-of-crime > > + (goto-char scene-of-crime) > > + (delete-char 1) > > > > (defun notmuch-wash-excerpt-citations (msg depth) > >"Excerpt citations and up to one signature." > > -- > > 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/72b61674/attachment.pgp>

[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

[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 wrote: > On Wed, 25 Jan 2012 06:25:39 +0100, Pieter Praet 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 messages based on the

[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 wrote: > On Wed, 25 Jan 2012 12:18:22 +0200, Tomi Ollila wrote: > > 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

Emacs: Crypto: How to get automatic encryption?

2012-01-25 Thread Daniel Kahn Gillmor
n-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 1030 bytes Desc: OpenPGP digital signature URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/768db4e6/attachment.pgp>

[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

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

2012-01-25 Thread David Edmondson
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'. test: Updated expected output for new `notmuch-show-clean-address'. emacs:

[PATCH 1/2] emacs: Avoid `mail-header-parse-address' in `notmuch-show-clean-address'.

2012-01-25 Thread Thomas Jost
5 12:50:00.310786410 + +++ emacs.10.output 2012-01-25 12:50:00.310786410 + @@ -1,4 +1,4 @@ -"Invalid " From" (2001-01-05) (inbox) +Invalid " From (2001-01-05) (inbox) Subject: message-with-invalid-from To: Notmuch Test Suite Date: Fri, 05 Jan 2001 15:43:57 + nil Thanks for this patch anyway :) Regards, -- Thomas/Schnouki -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 489 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/91a0f5a3/attachment.pgp>

[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 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 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: Prefer '[No Subject]' to blank subjects.

2012-01-25 Thread David Edmondson
ttp://notmuchmail.org/pipermail/notmuch/attachments/20120125/5e89ca2c/attachment.pgp>

[PATCH 1/2] emacs: Avoid `mail-header-parse-address' in `notmuch-show-clean-address'.

2012-01-25 Thread David Edmondson
7 + > nil Bah, I forgot to cherry pick that part of the fix. Will re-submit. -- 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/0dfb2c36/attachment.pgp>

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

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

[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 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] emacs: Fix a notmuch-print.el compiler warning.

2012-01-25 Thread Tomi Ollila
On Wed, 25 Jan 2012 09:24:46 +, David Edmondson wrote: > On Wed, 25 Jan 2012 11:19:30 +0200, Tomi Ollila wrote: > > On Wed, 25 Jan 2012 08:52:15 +, David Edmondson wrote: > > > `notmuch-show-get-prop' should be declared. > > > --- > > > > How 'bout > > > > (require 'notmuch-lib) > >

[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/2] 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 1/2] emacs: Avoid `mail-header-parse-address' in `notmuch-show-clean-address'.

2012-01-25 Thread David Edmondson
`mail-header-parse-address' expects un-decoded mailbox parts, which is not what we have at this point. Replace it with simple string deconstruction. Mark the corresponding test as no longer broken. Minor whitespace cleanup. --- emacs/notmuch-show.el | 50

[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

[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 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 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 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 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 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 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 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] 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

[RFC PATCH] bikeshed uncrustify options

2012-01-25 Thread Jameson Graef Rollins
e: not available Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/57f113dd/attachment-0001.pgp>

[RFC PATCH] bikeshed uncrustify options

2012-01-25 Thread Jameson Graef Rollins
able Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/2f8c8018/attachment.pgp>

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 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 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 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

[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

Emacs: Crypto: How to get automatic encryption?

2012-01-25 Thread Jameson Graef Rollins
- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/63df27d3/attachment-0001.pgp>

[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>

[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 v4 1/3] emacs: bind "s" to `notmuch-search' in notmuch-hello buffer

2012-01-25 Thread David Bremner
On Wed, 25 Jan 2012 05:10:52 +0400, Dmitry Kurochkin wrote: > 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. Pushed all three. d

[RFC PATCH] bikeshed uncrustify options

2012-01-25 Thread Jameson Graef Rollins
includes Austin's part 2 show rewrite. jamie. -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120125/83aa3daa/attachment.pgp>

[PATCH] uncrustify.cfg: label indent, some known types, not, # and ##

2012-01-25 Thread David Bremner
On Tue, 24 Jan 2012 22:55:59 +0200, Tomi Ollila wrote: > Adjusted some uncrustify variables to get closer to prevailing style: > pushed. d

[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 wrote: > Use this standard function, to keep thread navigation in one place. pushed

[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

[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 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] 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: 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 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: 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

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 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>

[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 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 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] 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 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 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] 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 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 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 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

Emacs: Crypto: How to get automatic encryption?

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

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

  1   2   >