[PATCH 1/2] emacs: Re-enable line wrapping in `notmuch-show-mode'.

2012-01-26 Thread David Edmondson
Turn on `visual-line-mode' via a hook, so that those who so choose can avoid it. --- emacs/notmuch-show.el |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index e6a5b31..effd2fd 100644 --- a/emacs/notmuch-show.el +++

[PATCH 2/2] emacs: Add more processing of displayed headers.

2012-01-26 Thread David Edmondson
Wrap headers to the width of the window and indent continuations. --- emacs/notmuch-show.el | 43 --- 1 files changed, 36 insertions(+), 7 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index effd2fd..ad286d1 100644 ---

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

2012-01-26 Thread David Edmondson
On Wed, 25 Jan 2012 09:45:01 -0800, Jameson Graef Rollins jroll...@finestructure.net wrote: 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

[PATCH 2/2] added support for user-specified directories to exclude

2012-01-26 Thread Tomi Ollila
A new configuration key 'database.exclude' is used to determine which directories user wants not to be scanned for new mails. --- Notes (from 2011-09-13): 1) Currently the comments for newly created configuration file are not updated, so for not this is 'undocumented feature'. Should there be

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

2012-01-26 Thread David Bremner
On Wed, 25 Jan 2012 08:52:15 +, David Edmondson d...@dme.org wrote: `notmuch-show-get-prop' should be declared. pushed. d ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [PATCH] emacs: Make the part content available to `mm-inlinable-p'.

2012-01-26 Thread David Bremner
On Thu, 19 Jan 2012 09:34:07 +, David Edmondson d...@dme.org wrote: The `mm-inlinable-p' function works better if it has access to the data of the relevant part, so load that content before calling it. pushed d ___ notmuch mailing list

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

2012-01-26 Thread David Bremner
On Thu, 26 Jan 2012 07:19:36 +, David Edmondson d...@dme.org wrote: 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. pushed the first two. test:

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

2012-01-26 Thread Gregor Zattler
Hi Jamie, Austin, * Jameson Graef Rollins jroll...@finestructure.net [25. Jan. 2012]: 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

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

2012-01-26 Thread Pieter Praet
On Wed, 25 Jan 2012 07:16:13 -0400, David Bremner da...@tethera.net wrote: 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.

Re: [PATCH 1/2] moved _notmuch_get_list () and _notmuch_set_list () up in file

2012-01-26 Thread Jani Nikula
On Thu, 26 Jan 2012 12:11:57 +0200, Tomi Ollila tomi.oll...@iki.fi wrote: Moved _notmuch_get_list () and _notmuch_set_list () to a location in notmuch-config.c so that new functions that will be located before the old location of those functions can also use these. Parse error. ;) You mean

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

2012-01-26 Thread Pieter Praet
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

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

2012-01-26 Thread Pieter Praet
On Wed, 25 Jan 2012 15:00:22 +0200, Tomi Ollila tomi.oll...@iki.fi wrote: [...] So, 'completing-read' -- or something that does the same thing better (ymmv). Thanks for the suggestion, but `completing-read' will do just fine... ;D Tomi Peace -- Pieter

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

2012-01-26 Thread Pieter Praet
On Wed, 25 Jan 2012 06:31:43 +, David Edmondson d...@dme.org wrote: On Wed, 25 Jan 2012 01:50:08 +0100, Pieter Praet pie...@praet.org wrote: 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

Re: [PATCH 2/2] added support for user-specified directories to exclude

2012-01-26 Thread Jani Nikula
On Thu, 26 Jan 2012 12:11:58 +0200, Tomi Ollila tomi.oll...@iki.fi wrote: A new configuration key 'database.exclude' is used to determine which directories user wants not to be scanned for new mails. --- Notes (from 2011-09-13): 1) Currently the comments for newly created configuration

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

2012-01-26 Thread Pieter Praet
--- Depends on id:1327397873-20596-1-git-send-email-...@dme.org emacs/notmuch-show.el | 55 ++-- test/emacs|2 +- 2 files changed, 40 insertions(+), 17 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index

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

2012-01-26 Thread Jani Nikula
On Thu, 26 Jan 2012 13:44:50 +0100, Gregor Zattler telegr...@gmx.net wrote: Hi Jamie, Austin, * Jameson Graef Rollins jroll...@finestructure.net [25. Jan. 2012]: On Wed, 25 Jan 2012 20:19:03 -0500, Austin Clements amdra...@mit.edu wrote: One very common cause of this is someone using

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

2012-01-26 Thread Pieter Praet
On Thu, 26 Jan 2012 13:44:50 +0100, Gregor Zattler telegr...@gmx.net wrote: Hi Jamie, Austin, * Jameson Graef Rollins jroll...@finestructure.net [25. Jan. 2012]: On Wed, 25 Jan 2012 20:19:03 -0500, Austin Clements amdra...@mit.edu wrote: One very common cause of this is someone using

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

2012-01-26 Thread Pieter Praet
On Tue, 17 Jan 2012 23:22:30 +0200, Jani Nikula j...@nikula.org wrote: [...] After this, what would the user have to do to bind some key to put the point in the search box? If someone wants to restore old behaviour for themselves. This should work: #+begin_src emacs-lisp (add-hook

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

2012-01-26 Thread Jani Nikula
On Thu, 26 Jan 2012 14:48:44 +0100, Pieter Praet pie...@praet.org wrote: On Tue, 17 Jan 2012 23:22:30 +0200, Jani Nikula j...@nikula.org wrote: [...] After this, what would the user have to do to bind some key to put the point in the search box? If someone wants to restore old behaviour

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

2012-01-26 Thread David Edmondson
In general, I like this. - I think that the stash function(s) should take an optional argument specifying the archive to use. That will make testing simpler and also allow people to produce preferred bindings more easily. - Message archive: feels better than ML Archive: , but I don't

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

2012-01-26 Thread David Edmondson
On Thu, 26 Jan 2012 14:02:15 +0100, Pieter Praet pie...@praet.org wrote: I may be missing something, but wouldn't both issues be solved by simply pressing M-RET a second time? I've been using this for a little while now, and IMO it makes navigating through long and diverging threads a lot

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

2012-01-26 Thread Tomi Ollila
+1 Tomi ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[PATCH v5 0/2] emacs: add completion to tag all operation

2012-01-26 Thread Dmitry Kurochkin
Changes: v5: * fixed comments from Austin's review [2] * add a second patch with `notmuch-search-operate-all' code cleanup suggested by Austin [1] v4: * do not change `notmuch-select-tag-with-completion' API, revert related changes v3: * fixed comments from Austin's review [1] v2: *

[PATCH v5 2/2] emacs: `notmuch-search-operate-all' code cleanup, no functional changes

2012-01-26 Thread Dmitry Kurochkin
--- emacs/notmuch.el | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 291eca2..72f78ed 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -891,12 +891,11 @@ characters as well as `_.+-'. Operations

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

2012-01-26 Thread Dmitry Kurochkin
On Thu, 26 Jan 2012 08:46:00 +, David Edmondson d...@dme.org wrote: On Thu, 26 Jan 2012 05:47:07 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: + ;; Perform some validation + (let ((words action)) +(when (null words) (error No operation given)) +(while

Re: [PATCH v5 0/2] emacs: add completion to tag all operation

2012-01-26 Thread David Edmondson
The series look good to me. pgpRUMqYWERAi.pgp Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [PATCH] emacs: add default value to notmuch-search-line-faces

2012-01-26 Thread Jani Nikula
On Thu, 26 Jan 2012 14:41:46 -0500, Austin Clements amdra...@mit.edu wrote: Quoth Jani Nikula on Jan 26 at 9:21 pm: Add default value to notmuch-search-line-faces to show unread messages in bold, and flagged messages in red, to have some visual indication of important messages in search

Re: [PATCH] emacs: add default value to notmuch-search-line-faces

2012-01-26 Thread Jeremy Nickurak
On Thu, Jan 26, 2012 at 12:41, Austin Clements amdra...@mit.edu wrote: As much as I would like this, many terminals don't visually distinguish between the default face and the default face in bold. I've taken a shot at this under xterm, gnome-terminal, and a basic linux VT. I figure that if

Re: [PATCH] emacs: add default value to notmuch-search-line-faces

2012-01-26 Thread Austin Clements
Quoth Jeremy Nickurak on Jan 26 at 2:59 pm: On Thu, Jan 26, 2012 at 12:41, Austin Clements amdra...@mit.edu wrote: As much as I would like this, many terminals don't visually distinguish between the default face and the default face in bold. I've taken a shot at this under xterm,

Re: [PATCH 0/2] re-enable line wrapping and add some header bling

2012-01-26 Thread David Edmondson
On Thu, 26 Jan 2012 20:17:49 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: I did not review the code, but here is a general comment for both patches (but especially for the first one). It would be nice to have a more detailed documentation for hooks. Docstring like Enable Visual

Re: gmime2.6 packaging for debian

2012-01-26 Thread Jameson Graef Rollins
On Thu, 26 Jan 2012 02:47:57 -0500, Daniel Kahn Gillmor d...@fifthhorseman.net wrote: 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

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

2012-01-26 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-26 Thread Dmitry Kurochkin
The patch adds 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

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

2012-01-26 Thread Dmitry Kurochkin
The patch adds 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

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

2012-01-26 Thread Dmitry Kurochkin
On Wed, 25 Jan 2012 20:37:27 -0500, Austin Clements 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 making "+"

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

2012-01-26 Thread Dmitry Kurochkin
The patch adds 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-26 Thread Dmitry Kurochkin
The patch adds 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

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

2012-01-26 Thread Austin Clements
Quoth Dmitry Kurochkin on Jan 24 at 5:49 am: > On Wed, 11 Jan 2012 20:49:33 -0500, Austin Clements > 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-26 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-26 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-26 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

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

2012-01-26 Thread Austin Clements
Quoth Dmitry Kurochkin on Jan 26 at 9:06 am: > The patch adds 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

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

2012-01-26 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 4/4 v3] emacs: Take more care when hiding regions with buttons.

2012-01-26 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 1/4 v3] test: `visible-buffer-substring' should not return text properties.

2012-01-26 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-26 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-26 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

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

2012-01-26 Thread David Edmondson
-- 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/20120126/105cee90/attachment.pgp>

gmime2.6 packaging for debian

2012-01-26 Thread Daniel Kahn Gillmor
Type: application/pgp-signature Size: 965 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120126/068fb50e/attachment.pgp>

[PATCH 0/2] re-enable line wrapping and add some header bling

2012-01-26 Thread David Edmondson
By default, re-enable `visual-line-mode' in `notmuch-show-mode'. Do it via a hook so that purists (ahem) can turn it off. Add some more processing of headers to make them look nice. Do it via hooks so that unbelievers can turn it off. David Edmondson (2): emacs: Re-enable line wrapping in

[PATCH 1/2] emacs: Re-enable line wrapping in `notmuch-show-mode'.

2012-01-26 Thread David Edmondson
Turn on `visual-line-mode' via a hook, so that those who so choose can avoid it. --- emacs/notmuch-show.el |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index e6a5b31..effd2fd 100644 --- a/emacs/notmuch-show.el +++

[PATCH 2/2] emacs: Add more processing of displayed headers.

2012-01-26 Thread David Edmondson
Wrap headers to the width of the window and indent continuations. --- emacs/notmuch-show.el | 43 --- 1 files changed, 36 insertions(+), 7 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index effd2fd..ad286d1 100644 ---

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

2012-01-26 Thread David Edmondson
ext attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120126/51f5f706/attachment.pgp>

Emacs: Crypto: How to get automatic encryption?

2012-01-26 Thread David Edmondson
s. -- 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/20120126/f6f95fb9/attachment.pgp>

[PATCH 2/2] added support for user-specified directories to exclude

2012-01-26 Thread Tomi Ollila
A new configuration key 'database.exclude' is used to determine which directories user wants not to be scanned for new mails. --- Notes (from 2011-09-13): 1) Currently the comments for newly created configuration file are not updated, so for not this is 'undocumented feature'. Should there be

[PATCH 1/2] moved _notmuch_get_list () and _notmuch_set_list () up in file

2012-01-26 Thread Tomi Ollila
Moved _notmuch_get_list () and _notmuch_set_list () to a location in notmuch-config.c so that new functions that will be located before the old location of those functions can also use these. --- This patch is independent of the next one (just required by it) and can (should) be pushed early.

[PATCH] emacs: polish notmuch-hello help text

2012-01-26 Thread David Bremner
On Wed, 25 Jan 2012 22:24:56 +0400, Dmitry Kurochkin wrote: > Make `=' binding description consistent with others. pushed. d

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

2012-01-26 Thread David Bremner
On Wed, 25 Jan 2012 08:52:15 +, David Edmondson wrote: > `notmuch-show-get-prop' should be declared. pushed. d

[PATCH] emacs: Make the part content available to `mm-inlinable-p'.

2012-01-26 Thread David Bremner
On Thu, 19 Jan 2012 09:34:07 +, David Edmondson wrote: > The `mm-inlinable-p' function works better if it has access to the > data of the relevant part, so load that content before calling it. pushed d

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

2012-01-26 Thread David Bremner
On Thu, 26 Jan 2012 07:19:36 +, David Edmondson wrote: > 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. pushed the first two. > test: Add test

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

2012-01-26 Thread Gregor Zattler
Hi Jamie, Austin, * Jameson Graef Rollins [25. Jan. 2012]: > On Wed, 25 Jan 2012 20:19:03 -0500, Austin Clements > 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

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

2012-01-26 Thread Pieter Praet
On Wed, 25 Jan 2012 07:16:13 -0400, David Bremner wrote: > 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

[PATCH 1/2] moved _notmuch_get_list () and _notmuch_set_list () up in file

2012-01-26 Thread Jani Nikula
On Thu, 26 Jan 2012 12:11:57 +0200, Tomi Ollila wrote: > Moved _notmuch_get_list () and _notmuch_set_list () to a location > in notmuch-config.c so that new functions that will be located > before the old location of those functions can also use these. Parse error. ;) You mean something along

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

2012-01-26 Thread Pieter Praet
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-26 Thread Pieter Praet
On Wed, 25 Jan 2012 15:00:22 +0200, Tomi Ollila wrote: > [...] > So, 'completing-read' -- or something that does the same thing better (ymmv). > Thanks for the suggestion, but `completing-read' will do just fine... ;D > Tomi Peace -- Pieter

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

2012-01-26 Thread Pieter Praet
On Wed, 25 Jan 2012 06:31:43 +, David Edmondson wrote: > On Wed, 25 Jan 2012 01:50:08 +0100, Pieter Praet wrote: > > 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

[PATCH 2/2] added support for user-specified directories to exclude

2012-01-26 Thread Jani Nikula
On Thu, 26 Jan 2012 12:11:58 +0200, Tomi Ollila wrote: > A new configuration key 'database.exclude' is used to determine > which directories user wants not to be scanned for new mails. > > --- > > Notes (from 2011-09-13): > > 1) Currently the comments for newly created configuration file are

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

2012-01-26 Thread Pieter Praet
--- Depends on id:"1327397873-20596-1-git-send-email-dme at dme.org" emacs/notmuch-show.el | 55 ++-- test/emacs|2 +- 2 files changed, 40 insertions(+), 17 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el

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

2012-01-26 Thread Jani Nikula
On Thu, 26 Jan 2012 13:44:50 +0100, Gregor Zattler wrote: > Hi Jamie, Austin, > * Jameson Graef Rollins [25. Jan. 2012]: > > On Wed, 25 Jan 2012 20:19:03 -0500, Austin Clements > > wrote: > >> One very common cause of this is someone using "reply" to get an > >> initial set of recipients, but

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

2012-01-26 Thread Pieter Praet
On Thu, 26 Jan 2012 13:44:50 +0100, Gregor Zattler wrote: > Hi Jamie, Austin, > * Jameson Graef Rollins [25. Jan. 2012]: > > On Wed, 25 Jan 2012 20:19:03 -0500, Austin Clements > > wrote: > >> One very common cause of this is someone using "reply" to get an > >> initial set of recipients, but

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

2012-01-26 Thread Pieter Praet
On Tue, 17 Jan 2012 23:22:30 +0200, Jani Nikula wrote: > [...] > > After this, what would the user have to do to bind some key to put the > point in the search box? If someone wants to restore old behaviour for > themselves. > This should work: #+begin_src emacs-lisp (add-hook

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

2012-01-26 Thread Jani Nikula
On Thu, 26 Jan 2012 14:48:44 +0100, Pieter Praet wrote: > On Tue, 17 Jan 2012 23:22:30 +0200, Jani Nikula wrote: > > [...] > > > > After this, what would the user have to do to bind some key to put the > > point in the search box? If someone wants to restore old behaviour for > > themselves. >

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

2012-01-26 Thread Tomi Ollila
I personally like -ise (easier to my mind, 'z' is so "hard" in finnish language), but -ize is just prevalent in emacs (customiSe, propertiSe) Tomi

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

2012-01-26 Thread David Edmondson
Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120126/05712156/attachment.pgp>

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

2012-01-26 Thread David Edmondson
Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120126/3d153aaf/attachment.pgp>

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

2012-01-26 Thread Tomi Ollila
+1 Tomi

[PATCH 0/2] re-enable line wrapping and add some header bling

2012-01-26 Thread Dmitry Kurochkin
Hi David. On Thu, 26 Jan 2012 08:17:49 +, David Edmondson wrote: > By default, re-enable `visual-line-mode' in `notmuch-show-mode'. Do it > via a hook so that purists (ahem) can turn it off. > > Add some more processing of headers to make them look nice. Do it via > hooks so that

[PATCH v5 0/2] emacs: add completion to "tag all" operation

2012-01-26 Thread Dmitry Kurochkin
Changes: v5: * fixed comments from Austin's review [2] * add a second patch with `notmuch-search-operate-all' code cleanup suggested by Austin [1] v4: * do not change `notmuch-select-tag-with-completion' API, revert related changes v3: * fixed comments from Austin's review [1] v2: *

[PATCH v5 2/2] emacs: `notmuch-search-operate-all' code cleanup, no functional changes

2012-01-26 Thread Dmitry Kurochkin
--- emacs/notmuch.el | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 291eca2..72f78ed 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -891,12 +891,11 @@ characters as well as `_.+-'. "Operations

[PATCH v5 1/2] emacs: add completion to "tag all" operation ("*" binding)

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

[PATCH 0/2] re-enable line wrapping and add some header bling

2012-01-26 Thread Jani Nikula
On Thu, 26 Jan 2012 08:17:49 +, David Edmondson wrote: > By default, re-enable `visual-line-mode' in `notmuch-show-mode'. Do it > via a hook so that purists (ahem) can turn it off. > > Add some more processing of headers to make them look nice. Do it via > hooks so that unbelievers can turn

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

2012-01-26 Thread Dmitry Kurochkin
On Thu, 26 Jan 2012 02:04:39 -0500, Austin Clements wrote: > Quoth Dmitry Kurochkin on Jan 26 at 9:06 am: > > The patch adds completion to "tag all" operation bound to "*" > > (`notmuch-search-operate-all' function). > > --- > > > > On a second thought, `notmuch-select-tag-with-completion'

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

2012-01-26 Thread Dmitry Kurochkin
On Thu, 26 Jan 2012 08:46:00 +, David Edmondson wrote: > On Thu, 26 Jan 2012 05:47:07 +0400, Dmitry Kurochkin gmail.com> wrote: > > > > + ;; Perform some validation > > > > + (let ((words action)) > > > > +(when (null words) (error "No operation given")) > > > > +(while words > > >

[PATCH 0/2] Add a fake 'Tags' header

2012-01-26 Thread David Edmondson
>From a discussion in #notmuch, add a fake 'Tags' header when displaying messages and ensure that it's kept up to date. David Edmondson (2): emacs: Add a fake Tags: header during display. test: Update tests for new 'Tags' header. emacs/notmuch-show.el | 24

[PATCH 1/2] emacs: Add a fake Tags: header during display.

2012-01-26 Thread David Edmondson
If `truncate-lines' is `nil' in `notmuch-show-mode' the tags can be lost from the right edge of the window. Create a fake 'Tags' header to display them with the other headers. Enable it by default by adding it to `notmuch-message-headers' and keep it up to date during tagging operations. ---

[PATCH 2/2] test: Update tests for new 'Tags' header.

2012-01-26 Thread David Edmondson
--- test/emacs |3 +++ .../notmuch-show-thread-maildir-storage|7 +++ ...hread-maildir-storage-with-fourfold-indentation |7 +++ ...show-thread-maildir-storage-without-indentation |7 +++ 4 files changed, 24

[PATCH v5 0/2] emacs: add completion to "tag all" operation

2012-01-26 Thread David Edmondson
The series look good to me. -- 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/20120126/6775806c/attachment.pgp>

[PATCH v5 0/2] emacs: add completion to "tag all" operation

2012-01-26 Thread Austin Clements
Quoth Dmitry Kurochkin on Jan 26 at 9:34 pm: > Changes: > > v5: > > * fixed comments from Austin's review [2] > > * add a second patch with `notmuch-search-operate-all' code cleanup > suggested by Austin [1] LGTM.

[PATCH] emacs: Quote MML tags in replies

2012-01-26 Thread Austin Clements
Quoth Aaron Ecay on Jan 19 at 5:56 pm: > On Thu, 19 Jan 2012 17:48:42 -0500, Austin Clements > wrote: > > > > > > (defun notmuch-mua-forward-message () > > >(message-forward) > > > > Speaking of future-proofing, it would be good to have a test. > > It would. ;) I?ll work on one.

[PATCH] emacs: add default value to notmuch-search-line-faces

2012-01-26 Thread Jani Nikula
Add default value to notmuch-search-line-faces to show "unread" messages in bold, and "flagged" messages in red, to have some visual indication of important messages in search results. This should be helpful for new users. "unread" tag is quite obvious, and handled specially both in the lib and

[PATCH] emacs: add default value to notmuch-search-line-faces

2012-01-26 Thread Austin Clements
Quoth Jani Nikula on Jan 26 at 9:21 pm: > Add default value to notmuch-search-line-faces to show "unread" > messages in bold, and "flagged" messages in red, to have some visual > indication of important messages in search results. This should be > helpful for new users. > > "unread" tag is quite

[PATCH 1/2] emacs: Re-enable line wrapping in `notmuch-show-mode'.

2012-01-26 Thread Tomi Ollila
On Thu, 26 Jan 2012 08:17:50 +, David Edmondson wrote: > Turn on `visual-line-mode' via a hook, so that those who so choose can > avoid it. > --- +1 I think the docstring is good (or it could be nonexistent like in 'turn-on-font-lock). Tomi

[PATCH] emacs: add default value to notmuch-search-line-faces

2012-01-26 Thread Jani Nikula
On Thu, 26 Jan 2012 14:41:46 -0500, Austin Clements wrote: > Quoth Jani Nikula on Jan 26 at 9:21 pm: > > Add default value to notmuch-search-line-faces to show "unread" > > messages in bold, and "flagged" messages in red, to have some visual > > indication of important messages in search

[PATCH] emacs: add default value to notmuch-search-line-faces

2012-01-26 Thread Jeremy Nickurak
On Thu, Jan 26, 2012 at 12:41, Austin Clements wrote: > As much as I would like this, many terminals don't visually > distinguish between the default face and the default face in bold. I've taken a shot at this under xterm, gnome-terminal, and a basic linux VT. I figure that if something is

[PATCH] emacs: add default value to notmuch-search-line-faces

2012-01-26 Thread Austin Clements
Quoth Jeremy Nickurak on Jan 26 at 2:59 pm: > On Thu, Jan 26, 2012 at 12:41, Austin Clements wrote: > > As much as I would like this, many terminals don't visually > > distinguish between the default face and the default face in bold. > > I've taken a shot at this under xterm, gnome-terminal,

gmime2.6 packaging for debian

2012-01-26 Thread Jameson Graef Rollins
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120126/4f6561d1/attachment.pgp>