[RFC] [PATCH] emacs: Add support for saved search accelerators.

2014-05-06 Thread David Edmondson
Extended the saved search definition to allow the inclusion of an accelerator key for the search. Bind 'j' in the common mode map as a leader for such accelerator keys. --- This arose out a conversation in #notmuch and Mark's patch to extend the saved search custom specification based on requireme

Re: [PATCH] emacs: Correct the documentation for `notmuch-search-line-faces'.

2014-05-06 Thread David Edmondson
Sorry for the duplicates - MTA troubles. The two versions are the same. signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: precedence in `notmuch-search-line-faces'

2014-05-06 Thread David Edmondson
On Sun, May 04 2014, Mark Walters wrote: > I have a slight preference for making it do the comment (ie reverse the > list). My reason is that we have some other cases such as > notmuch-tag-format that apply the first match, so users might be used to > having the specific first and the more general

Re: [PATCH] emacs: put current query as default value in notmuch-read-query

2014-05-06 Thread David Edmondson
On Tue, May 06 2014, Mark Walters wrote: > Hi > > On Tue, 06 May 2014, David Edmondson wrote: >> On Sat, May 03 2014, Mark Walters wrote: >>> An alternative to putting the logic in notmuch-read-query would be to >>> store the query in a consistently named buf

Re: [PATCH] emacs: put current query as default value in notmuch-read-query

2014-05-05 Thread David Edmondson
On Sat, May 03 2014, Mark Walters wrote: > An alternative to putting the logic in notmuch-read-query would be to > store the query in a consistently named buffer local variable in all > the modes. If we want to show the actually run query in notmuch-show > above then this is probably the neatest so

[PATCH] NEWS: make it explicit that wildcard matching is no longer supported

2014-05-02 Thread David Edmondson
Good for me, thank you. -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 310 bytes Desc: not available URL:

Add support for specifying tags during "notmuch new"

2014-05-02 Thread David Edmondson
On Fri, May 02 2014, Austin Clements wrote: >> 2) A periodic mail processing script wants to add new messages to >>the database, then process those newly added messages to add >>convenience tags, etc. without worrying about the user or other >>instances of the script man

[PATCH] NEWS: folder:, path:, and database upgrade

2014-05-02 Thread David Edmondson
, etc (maybe case sensitivity is different?) I'm not too upset about exactly what it says. I wonder how many users care about "the removal of stemming" as opposed to "wildcards no longer work", though :-) > On Thu, 01 May 2014, David Edmondson wrote: >> On Sun, Apr 27

[PATCH 5/5] Test: Add tests for "notmuch new" command line tags

2014-05-02 Thread David Edmondson
Add a simple set of tests for adding, removing and both adding and removing tags when running "notmuch new". --- test/T540-new-tags.sh | 28 1 file changed, 28 insertions(+) create mode 100755 test/T540-new-tags.sh diff --git a/test/T540-new-tags.sh b/test/T540-new-t

[PATCH 4/5] NEWS: Add information about "notmuch new" command line tags.

2014-05-02 Thread David Edmondson
--- NEWS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/NEWS b/NEWS index bcd311d..13ae593 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,12 @@ Command-Line Interface This option suppresses the progress and summary reports. +`notmuch new` allows tag addition/removal to be specified + +

[PATCH 3/5] notmuch-new: Manual: Add command line tags.

2014-05-02 Thread David Edmondson
Describe the addition of command line tags for "notmuch new". --- doc/man1/notmuch-new.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/man1/notmuch-new.rst b/doc/man1/notmuch-new.rst index 787ed78..84203de 100644 --- a/doc/man1/notmuch-new.rst +++ b/doc/man1/notmuch

[PATCH 2/5] notmuch-new: Allow the tags of new messages to be manipulated.

2014-05-02 Thread David Edmondson
Add support for specifying a set of tags to be added/removed from messages added to the database by 'notmuch new'. These tags are addition to those specified in .notmuch-config. They can be used to override the pre-configured tags (e.g. -inbox). --- notmuch-new.c | 5 + tag-util.c| 20 +++

[PATCH 1/5] notmuch-new: Use tag_op_list_apply() rather than hand-coding the same.

2014-05-02 Thread David Edmondson
Rather than hand-coding the application of tags to new messages, use the existing tag_op_list_apply(). fixup. --- notmuch-new.c | 31 --- tag-util.c| 8 tag-util.h| 10 +++--- 3 files changed, 31 insertions(+), 18 deletions(-) diff --git a/notmuch

[PATCH v2 0/5] Add support for specifying tags during "notmuch new"

2014-05-02 Thread David Edmondson
v1: This patch set allows a user to specify a list of tags to be added/removed to messages discovered during "notmuch new". Two use-cases are envisaged: 1) A chunk of messages was just dumped into the configured directory by hand, and the user doesn't want the 'inbox' tag applie

precedence in `notmuch-search-line-faces'

2014-05-02 Thread David Edmondson
The documentation for `notmuch-search-line-faces' says: > The attributes defined for matching tags are merged, with later > attributes overriding earlier. A comment in `notmuch-search-color-line', which implements this, says: > ;; Reverse the list so earlier entries take precedence Clearly thes

Re: [PATCH] NEWS: make it explicit that wildcard matching is no longer supported

2014-05-02 Thread David Edmondson
Good for me, thank you. signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[PATCH 5/5] Test: Add tests for "notmuch new" command line tags

2014-05-02 Thread David Edmondson
Add a simple set of tests for adding, removing and both adding and removing tags when running "notmuch new". --- test/T540-new-tags.sh | 28 1 file changed, 28 insertions(+) create mode 100755 test/T540-new-tags.sh diff --git a/test/T540-new-tags.sh b/test/T540-new-t

[PATCH 4/5] NEWS: Add information about "notmuch new" command line tags.

2014-05-02 Thread David Edmondson
--- NEWS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/NEWS b/NEWS index bcd311d..13ae593 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,12 @@ Command-Line Interface This option suppresses the progress and summary reports. +`notmuch new` allows tag addition/removal to be specified + +

[PATCH 3/5] notmuch-new: Manual: Add command line tags.

2014-05-02 Thread David Edmondson
Describe the addition of command line tags for "notmuch new". --- doc/man1/notmuch-new.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/man1/notmuch-new.rst b/doc/man1/notmuch-new.rst index 787ed78..84203de 100644 --- a/doc/man1/notmuch-new.rst +++ b/doc/man1/notmuch

[PATCH 2/5] notmuch-new: Allow the tags of new messages to be manipulated.

2014-05-02 Thread David Edmondson
Add support for specifying a set of tags to be added/removed from messages added to the database by 'notmuch new'. These tags are addition to those specified in .notmuch-config. They can be used to override the pre-configured tags (e.g. -inbox). --- notmuch-new.c | 5 + tag-util.c| 20 +++

[PATCH 1/5] notmuch-new: Use tag_op_list_apply() rather than hand-coding the same.

2014-05-02 Thread David Edmondson
Rather than hand-coding the application of tags to new messages, use the existing tag_op_list_apply(). --- notmuch-new.c | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/notmuch-new.c b/notmuch-new.c index d269c7c..b53401a 100644 --- a/notmuch-n

Add support for specifying tags during "notmuch new"

2014-05-02 Thread David Edmondson
This patch set allows a user to specify a list of tags to be added/removed to messages discovered during "notmuch new". Two use-cases are envisaged: 1) A chunk of messages was just dumped into the configured directory by hand, and the user doesn't want the 'inbox' tag applied to

Re: Add support for specifying tags during "notmuch new"

2014-05-02 Thread David Edmondson
On Fri, May 02 2014, Austin Clements wrote: >> 2) A periodic mail processing script wants to add new messages to >>the database, then process those newly added messages to add >>convenience tags, etc. without worrying about the user or other >>instances of the script man

Re: [PATCH] NEWS: folder:, path:, and database upgrade

2014-05-02 Thread David Edmondson
, etc (maybe case sensitivity is different?) I'm not too upset about exactly what it says. I wonder how many users care about "the removal of stemming" as opposed to "wildcards no longer work", though :-) > On Thu, 01 May 2014, David Edmondson wrote: >> On Sun, Apr 27

[PATCH 5/5] Test: Add tests for "notmuch new" command line tags

2014-05-02 Thread David Edmondson
Add a simple set of tests for adding, removing and both adding and removing tags when running "notmuch new". --- test/T540-new-tags.sh | 28 1 file changed, 28 insertions(+) create mode 100755 test/T540-new-tags.sh diff --git a/test/T540-new-tags.sh b/test/T540-new-t

[PATCH 3/5] notmuch-new: Manual: Add command line tags.

2014-05-02 Thread David Edmondson
Describe the addition of command line tags for "notmuch new". --- doc/man1/notmuch-new.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/man1/notmuch-new.rst b/doc/man1/notmuch-new.rst index 787ed78..84203de 100644 --- a/doc/man1/notmuch-new.rst +++ b/doc/man1/notmuch

[PATCH 1/5] notmuch-new: Use tag_op_list_apply() rather than hand-coding the same.

2014-05-02 Thread David Edmondson
Rather than hand-coding the application of tags to new messages, use the existing tag_op_list_apply(). fixup. --- notmuch-new.c | 31 --- tag-util.c| 8 tag-util.h| 10 +++--- 3 files changed, 31 insertions(+), 18 deletions(-) diff --git a/notmuch

[PATCH 2/5] notmuch-new: Allow the tags of new messages to be manipulated.

2014-05-02 Thread David Edmondson
Add support for specifying a set of tags to be added/removed from messages added to the database by 'notmuch new'. These tags are addition to those specified in .notmuch-config. They can be used to override the pre-configured tags (e.g. -inbox). --- notmuch-new.c | 5 + tag-util.c| 20 +++

[PATCH 4/5] NEWS: Add information about "notmuch new" command line tags.

2014-05-02 Thread David Edmondson
--- NEWS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/NEWS b/NEWS index bcd311d..13ae593 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,12 @@ Command-Line Interface This option suppresses the progress and summary reports. +`notmuch new` allows tag addition/removal to be specified +

[PATCH v2 0/5] Add support for specifying tags during "notmuch new"

2014-05-02 Thread David Edmondson
v1: This patch set allows a user to specify a list of tags to be added/removed to messages discovered during "notmuch new". Two use-cases are envisaged: 1) A chunk of messages was just dumped into the configured directory by hand, and the user doesn't want the 'inbox' tag applie

precedence in `notmuch-search-line-faces'

2014-05-02 Thread David Edmondson
The documentation for `notmuch-search-line-faces' says: > The attributes defined for matching tags are merged, with later > attributes overriding earlier. A comment in `notmuch-search-color-line', which implements this, says: > ;; Reverse the list so earlier entries take precedence Clearly thes

[PATCH 4/5] NEWS: Add information about "notmuch new" command line tags.

2014-05-02 Thread David Edmondson
--- NEWS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/NEWS b/NEWS index bcd311d..13ae593 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,12 @@ Command-Line Interface This option suppresses the progress and summary reports. +`notmuch new` allows tag addition/removal to be specified +

[PATCH 1/5] notmuch-new: Use tag_op_list_apply() rather than hand-coding the same.

2014-05-02 Thread David Edmondson
Rather than hand-coding the application of tags to new messages, use the existing tag_op_list_apply(). --- notmuch-new.c | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/notmuch-new.c b/notmuch-new.c index d269c7c..b53401a 100644 --- a/notmuch-n

[PATCH 3/5] notmuch-new: Manual: Add command line tags.

2014-05-02 Thread David Edmondson
Describe the addition of command line tags for "notmuch new". --- doc/man1/notmuch-new.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/man1/notmuch-new.rst b/doc/man1/notmuch-new.rst index 787ed78..84203de 100644 --- a/doc/man1/notmuch-new.rst +++ b/doc/man1/notmuch

[PATCH 5/5] Test: Add tests for "notmuch new" command line tags

2014-05-02 Thread David Edmondson
Add a simple set of tests for adding, removing and both adding and removing tags when running "notmuch new". --- test/T540-new-tags.sh | 28 1 file changed, 28 insertions(+) create mode 100755 test/T540-new-tags.sh diff --git a/test/T540-new-tags.sh b/test/T540-new-t

Add support for specifying tags during "notmuch new"

2014-05-02 Thread David Edmondson
This patch set allows a user to specify a list of tags to be added/removed to messages discovered during "notmuch new". Two use-cases are envisaged: 1) A chunk of messages was just dumped into the configured directory by hand, and the user doesn't want the 'inbox' tag applied to

[PATCH 2/5] notmuch-new: Allow the tags of new messages to be manipulated.

2014-05-02 Thread David Edmondson
Add support for specifying a set of tags to be added/removed from messages added to the database by 'notmuch new'. These tags are addition to those specified in .notmuch-config. They can be used to override the pre-configured tags (e.g. -inbox). --- notmuch-new.c | 5 + tag-util.c| 20 +++

[PATCH] NEWS: folder:, path:, and database upgrade

2014-05-01 Thread David Edmondson
On Sun, Apr 27 2014, Jani Nikula wrote: > +The `folder:` search prefix now requires an exact match I think that it would be clearer to say: The `folder:` search prefix no longer supports wildcard matching (Or something like that.)

Re: [PATCH] NEWS: folder:, path:, and database upgrade

2014-05-01 Thread David Edmondson
On Sun, Apr 27 2014, Jani Nikula wrote: > +The `folder:` search prefix now requires an exact match I think that it would be clearer to say: The `folder:` search prefix no longer supports wildcard matching (Or something like that.) ___ notmuch mailing

[PATCH 11/11] emacs: Support cid: references with shr renderer

2014-05-01 Thread David Edmondson
On Mon, Apr 21 2014, Austin Clements wrote: > +(defun notmuch-show--insert-part-text/html-shr (msg part) > + ;; Make sure shr is loaded before we start let-binding its globals > + (require 'shr) > + (let ((dom (let (process-crypto notmuch-show-process-crypto) Missing brackets? (You let-bind bot

Re: [PATCH 11/11] emacs: Support cid: references with shr renderer

2014-05-01 Thread David Edmondson
On Mon, Apr 21 2014, Austin Clements wrote: > +(defun notmuch-show--insert-part-text/html-shr (msg part) > + ;; Make sure shr is loaded before we start let-binding its globals > + (require 'shr) > + (let ((dom (let (process-crypto notmuch-show-process-crypto) Missing brackets? (You let-bind bot

[PATCH] emacs: Add configurable wrapping width for notmuch-wash-wrap-long-lines

2012-02-17 Thread David Edmondson
* daniel at schoepe.org [2012-02-17 Fri 18:34] > This introduces a variable to control after how many characters a line > is wrapped by notmuch-wash-wrap-long-lines (still wrapping at the > window width if it is lower). What do you use this for? -- next part -- A non-text a

Re: [PATCH] emacs: Add configurable wrapping width for notmuch-wash-wrap-long-lines

2012-02-17 Thread David Edmondson
* dan...@schoepe.org [2012-02-17 Fri 18:34] > This introduces a variable to control after how many characters a line > is wrapped by notmuch-wash-wrap-long-lines (still wrapping at the > window width if it is lower). What do you use this for? pgps2H1ob2IRX.pgp Description: PGP signature

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

2012-02-14 Thread David Edmondson
* david at tethera.net [2012-02-14 Tue 12:30] > On Mon, 6 Feb 2012 15:39:05 +0000, David Edmondson wrote: >> Wrap headers to the width of the window and indent continuations. > > Hi David; > > Not sure what this patch is doing in the middle of this thread? > Is it meant t

Re: [PATCH v2] emacs: Add more processing of displayed headers.

2012-02-14 Thread David Edmondson
* da...@tethera.net [2012-02-14 Tue 12:30] > On Mon, 6 Feb 2012 15:39:05 +0000, David Edmondson wrote: >> Wrap headers to the width of the window and indent continuations. > > Hi David; > > Not sure what this patch is doing in the middle of this thread? > Is it meant t

[PATCH] emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively

2012-02-13 Thread David Edmondson
* amdragon at MIT.EDU [2012-02-13 Mon 15:29] > Quoth Dmitry Kurochkin on Feb 13 at 3:09 pm: >> The notmuch-show view refresh function (`notmuch-show-refresh-view', >> bound to "=") accepts an optional RETAIN-STATE argument. The patch >> allows to set this argument interactively by using "C-u =".

Re: [PATCH] emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively

2012-02-13 Thread David Edmondson
* amdra...@mit.edu [2012-02-13 Mon 15:29] > Quoth Dmitry Kurochkin on Feb 13 at 3:09 pm: >> The notmuch-show view refresh function (`notmuch-show-refresh-view', >> bound to "=") accepts an optional RETAIN-STATE argument. The patch >> allows to set this argument interactively by using "C-u =". > >

[PATCH v2 2/2] emacs: support text/calendar mime type

2012-02-10 Thread David Edmondson
Looks good. -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL:

[PATCH v2 1/2] emacs: support defining a list of alternative parts to show

2012-02-10 Thread David Edmondson
On Thu, 9 Feb 2012 14:46:02 +, Jani Nikula wrote: > Make notmuch-show-all-multipart/alternative-parts accept a list of > regexps to match the part types to determine which parts to show in > addition to the preferred types. This allows the user to force display > some alternative part types w

Re: [PATCH v2 2/2] emacs: support text/calendar mime type

2012-02-10 Thread David Edmondson
Looks good. pgpTxJOJe1ggB.pgp Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [PATCH v2 1/2] emacs: support defining a list of alternative parts to show

2012-02-10 Thread David Edmondson
On Thu, 9 Feb 2012 14:46:02 +, Jani Nikula wrote: > Make notmuch-show-all-multipart/alternative-parts accept a list of > regexps to match the part types to determine which parts to show in > addition to the preferred types. This allows the user to force display > some alternative part types w

[PATCH] emacs: cleanup and simplify `notmuch-show-archive-thread' and related functions

2012-02-09 Thread David Edmondson
Looks good. -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL:

Re: [PATCH] emacs: cleanup and simplify `notmuch-show-archive-thread' and related functions

2012-02-09 Thread David Edmondson
Looks good. pgp7PuoeYBhaR.pgp Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[PATCH v8 0/8] reworked crypto toggle, plus a few other toggles

2012-02-08 Thread David Edmondson
v8 rebased onto master after Dmitry's changes without any manual intervention. -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL:

[PATCH 2/2] emacs: regard text/calendar as text/x-vcalendar

2012-02-08 Thread David Edmondson
On Wed, 8 Feb 2012 16:55:16 +, Jani Nikula wrote: > Treat text/calendar as text/x-vcalendar. At least the following > produce text/calendar that parse as text/x-vcalendar: > > PRODID:-//Google Inc//Google Calendar 70.9054//EN > PRODID:Microsoft Exchange Server 2010 >

[PATCH 1/2] emacs: support defining a list of alternative parts to show

2012-02-08 Thread David Edmondson
On Wed, 8 Feb 2012 16:55:15 +, Jani Nikula wrote: > Make notmuch-show-all-multipart/alternative-parts accept a list of > multipart/alternative types to show in addition to the preferred > types. This allows the user to force display some alternative part > types while normally showing just th

[PATCH v4] emacs: Call "notmuch tag" once when applying tag changes to a thread.

2012-02-08 Thread David Edmondson
Optimize thread tagging by combining all the tagging operations to a single "notmuch tag" call. For threads in the order of tens or a hundred inbox tagged messages, this gives a noticeable speedup. On two different machines, archiving a thread of about 50 inbox tagged messages goes down from 10+ s

Re: [PATCH v8 0/8] reworked crypto toggle, plus a few other toggles

2012-02-08 Thread David Edmondson
v8 rebased onto master after Dmitry's changes without any manual intervention. pgp2VthBp3OMy.pgp Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [PATCH 2/2] emacs: regard text/calendar as text/x-vcalendar

2012-02-08 Thread David Edmondson
On Wed, 8 Feb 2012 16:55:16 +, Jani Nikula wrote: > Treat text/calendar as text/x-vcalendar. At least the following > produce text/calendar that parse as text/x-vcalendar: > > PRODID:-//Google Inc//Google Calendar 70.9054//EN > PRODID:Microsoft Exchange Server 2010 >

Re: [PATCH 1/2] emacs: support defining a list of alternative parts to show

2012-02-08 Thread David Edmondson
On Wed, 8 Feb 2012 16:55:15 +, Jani Nikula wrote: > Make notmuch-show-all-multipart/alternative-parts accept a list of > multipart/alternative types to show in addition to the preferred > types. This allows the user to force display some alternative part > types while normally showing just th

[PATCH v4] emacs: Call "notmuch tag" once when applying tag changes to a thread.

2012-02-08 Thread David Edmondson
Optimize thread tagging by combining all the tagging operations to a single "notmuch tag" call. For threads in the order of tens or a hundred inbox tagged messages, this gives a noticeable speedup. On two different machines, archiving a thread of about 50 inbox tagged messages goes down from 10+ s

[PATCH v3] emacs: Call "notmuch tag" once when applying tag changes to a thread.

2012-02-08 Thread David Edmondson
Optimize thread tagging by combining all the tagging operations to a single "notmuch tag" call. For threads in the order of tens or a hundred inbox tagged messages, this gives a noticeable speedup. On two different machines, archiving a thread of about 50 inbox tagged messages goes down from 10+ s

[PATCH v8 8/8] emacs: A prefix argument to `notmuch-show' should invert the matching message behaviour.

2012-02-08 Thread David Edmondson
Allow the user to open a thread with inverted `notmuch-show-only-matching-messages' behaviour using a prefix argument. --- emacs/notmuch-show.el |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index d077ae0..fc36524 100644

[PATCH v8 7/8] emacs: Add `notmuch-show-only-matching-messages'.

2012-02-08 Thread David Edmondson
Allow the user to choose that only matching messages are shown by default. --- emacs/notmuch-show.el |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index bb46523..d077ae0 100644 --- a/emacs/notmuch-show.el +++ b/emacs/n

[PATCH v8 6/8] emacs: Check that the parent buffer is alive before using it.

2012-02-08 Thread David Edmondson
--- emacs/notmuch-show.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index a668625..bb46523 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1686,7 +1686,7 @@ added." (interactive "P") (let ((paren

[PATCH v8 5/8] emacs: Optionally retain the state of the buffer during `notmuch-show-refresh-view'.

2012-02-08 Thread David Edmondson
With an argument, record and reply the state of the buffer during `notmuch-show-refresh-view'. In this context, "state" is defined as: - the open/closed state of each message, - the current message. Traditional use of refresh with the = key does not retain the state. The recently introduced tog

[PATCH v8 4/8] emacs: Add a binding (t) to toggle the truncation of long lines.

2012-02-08 Thread David Edmondson
--- emacs/notmuch-show.el |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 8a792e9..6c79511 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1134,6 +1134,7 @@ Refreshes the current view, observing changes

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

2012-02-08 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 v3 2/2] test: Update test to match previous patch.

2012-02-08 Thread David Edmondson
Indentation now uses tabs where possible. --- ...hread-maildir-storage-with-fourfold-indentation |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/emacs.expected-output/notmuch-show-thread-maildir-storage-with-fourfold-indentation b/test/emacs.expected-output/

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

2012-02-08 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 file

[PATCH v3 1/2] emacs: Use text properties rather than overlays in `notmuch-show-mode'.

2012-02-08 Thread David Edmondson
Except for where invisibility is involved, replace the use of overlays in `notmuch-show-mode' with text properties, which are more efficient and can be merged together more effectively. --- emacs/notmuch-show.el | 62 +++- emacs/notmuch-wash.el |8

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

2012-02-08 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 i

[PATCH v8 0/8] reworked crypto toggle, plus a few other toggles

2012-02-08 Thread David Edmondson
v8: - Code review comments from Austin: - Correctly decrypt parts when saving, etc. them. (revert to original behaviour). David Edmondson (8): emacs: Rework crypto switch toggle. emacs: Allow `notmuch-show-mode' to display only matching messages. emacs: Allow the indentati

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

2012-02-08 Thread David Edmondson
On Wed, 8 Feb 2012 00:10:16 -0500, Austin Clements wrote: > Seems reasonable. I'm definitely in favor of erasing buffers instead > of killing and recreating them. Two questions below. Thanks for the review. > Quoth David Edmondson on Feb 06 at 9:21 am: > > Re-work the ex

[PATCH v3] emacs: Call "notmuch tag" once when applying tag changes to a thread.

2012-02-08 Thread David Edmondson
Optimize thread tagging by combining all the tagging operations to a single "notmuch tag" call. For threads in the order of tens or a hundred inbox tagged messages, this gives a noticeable speedup. On two different machines, archiving a thread of about 50 inbox tagged messages goes down from 10+ s

[PATCH v8 8/8] emacs: A prefix argument to `notmuch-show' should invert the matching message behaviour.

2012-02-08 Thread David Edmondson
Allow the user to open a thread with inverted `notmuch-show-only-matching-messages' behaviour using a prefix argument. --- emacs/notmuch-show.el |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index d077ae0..fc36524 100644

[PATCH v8 6/8] emacs: Check that the parent buffer is alive before using it.

2012-02-08 Thread David Edmondson
--- emacs/notmuch-show.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index a668625..bb46523 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1686,7 +1686,7 @@ added." (interactive "P") (let ((paren

[PATCH v8 5/8] emacs: Optionally retain the state of the buffer during `notmuch-show-refresh-view'.

2012-02-08 Thread David Edmondson
With an argument, record and reply the state of the buffer during `notmuch-show-refresh-view'. In this context, "state" is defined as: - the open/closed state of each message, - the current message. Traditional use of refresh with the = key does not retain the state. The recently introduced tog

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

2012-02-08 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 v3 2/2] test: Update test to match previous patch.

2012-02-08 Thread David Edmondson
Indentation now uses tabs where possible. --- ...hread-maildir-storage-with-fourfold-indentation |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/emacs.expected-output/notmuch-show-thread-maildir-storage-with-fourfold-indentation b/test/emacs.expected-output/

[PATCH v8 7/8] emacs: Add `notmuch-show-only-matching-messages'.

2012-02-08 Thread David Edmondson
Allow the user to choose that only matching messages are shown by default. --- emacs/notmuch-show.el |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index bb46523..d077ae0 100644 --- a/emacs/notmuch-show.el +++ b/emacs/n

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

2012-02-08 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 file

[PATCH v3 1/2] emacs: Use text properties rather than overlays in `notmuch-show-mode'.

2012-02-08 Thread David Edmondson
Except for where invisibility is involved, replace the use of overlays in `notmuch-show-mode' with text properties, which are more efficient and can be merged together more effectively. --- emacs/notmuch-show.el | 62 +++- emacs/notmuch-wash.el |8

[PATCH v8 4/8] emacs: Add a binding (t) to toggle the truncation of long lines.

2012-02-08 Thread David Edmondson
--- emacs/notmuch-show.el |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 8a792e9..6c79511 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1134,6 +1134,7 @@ Refreshes the current view, observing changes

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

2012-02-08 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 i

[PATCH v8 0/8] reworked crypto toggle, plus a few other toggles

2012-02-08 Thread David Edmondson
v8: - Code review comments from Austin: - Correctly decrypt parts when saving, etc. them. (revert to original behaviour). David Edmondson (8): emacs: Rework crypto switch toggle. emacs: Allow `notmuch-show-mode' to display only matching messages. emacs: Allow the indentati

Re: [PATCH v7 1/8] emacs: Rework crypto switch toggle.

2012-02-07 Thread David Edmondson
On Wed, 8 Feb 2012 00:10:16 -0500, Austin Clements wrote: > Seems reasonable. I'm definitely in favor of erasing buffers instead > of killing and recreating them. Two questions below. Thanks for the review. > Quoth David Edmondson on Feb 06 at 9:21 am: > > Re-work the ex

[PATCH] emacs: Ensure that gnupg output goes at the end of the buffer.

2012-02-07 Thread David Edmondson
When showing the user some details of gnupg output, ensure that those details are shown at the end of the gnupg status buffer ("*notmuch-crypto-gpg-out*"), otherwise it can end up mixed up with earlier output. --- emacs/notmuch-crypto.el |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)

[PATCH] emacs: Ensure that gnupg output goes at the end of the buffer.

2012-02-07 Thread David Edmondson
When showing the user some details of gnupg output, ensure that those details are shown at the end of the gnupg status buffer ("*notmuch-crypto-gpg-out*"), otherwise it can end up mixed up with earlier output. --- emacs/notmuch-crypto.el |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)

[PATCH v3 2/2] test: Update test to match previous patch.

2012-02-07 Thread David Edmondson
Indentation now uses tabs where possible. --- ...hread-maildir-storage-with-fourfold-indentation |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/emacs.expected-output/notmuch-show-thread-maildir-storage-with-fourfold-indentation b/test/emacs.expected-output/

[PATCH v3 1/2] emacs: Use text properties rather than overlays in `notmuch-show-mode'.

2012-02-07 Thread David Edmondson
Except for where invisibility is involved, replace the use of overlays in `notmuch-show-mode' with text properties, which are more efficient and can be merged together more effectively. --- emacs/notmuch-show.el | 62 +++- emacs/notmuch-wash.el |8

[PATCH v3 0/2] use text properties rather than overlays

2012-02-07 Thread David Edmondson
v3: - Undo mistaken minor edit - no functional change. David Edmondson (2): emacs: Use text properties rather than overlays in `notmuch-show-mode'. test: Update test to match previous patch. emacs/notmuch-show.el | 62 +--- emacs/no

[PATCH v3 2/2] test: Update test to match previous patch.

2012-02-07 Thread David Edmondson
Indentation now uses tabs where possible. --- ...hread-maildir-storage-with-fourfold-indentation |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/emacs.expected-output/notmuch-show-thread-maildir-storage-with-fourfold-indentation b/test/emacs.expected-output/

[PATCH v3 1/2] emacs: Use text properties rather than overlays in `notmuch-show-mode'.

2012-02-07 Thread David Edmondson
Except for where invisibility is involved, replace the use of overlays in `notmuch-show-mode' with text properties, which are more efficient and can be merged together more effectively. --- emacs/notmuch-show.el | 62 +++- emacs/notmuch-wash.el |8

[PATCH v3 0/2] use text properties rather than overlays

2012-02-07 Thread David Edmondson
v3: - Undo mistaken minor edit - no functional change. David Edmondson (2): emacs: Use text properties rather than overlays in `notmuch-show-mode'. test: Update test to match previous patch. emacs/notmuch-show.el | 62 +--- emacs/no

[PATCH v2] emacs: Leave blank subjects alone by default.

2012-02-06 Thread David Edmondson
Add `notmuch-blank-subject' to control how empty or whitespace only subjects are treated. The default behaviour is to leave them alone. The user can choose a string to use as a replacement. Modify code that cannot handle blank subjects to use a fixed string. --- Fix the non-string subject case (a

[PATCH] emacs: Leave blank subjects alone by default.

2012-02-06 Thread David Edmondson
Add `notmuch-blank-subject' to control how empty or whitespace only subjects are treated. The default behaviour is to leave them alone. The user can choose a string to use as a replacement. Modify code that cannot handle blank subjects to use a fixed string. --- emacs/notmuch-lib.el | 20

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

2012-02-06 Thread David Edmondson
On Mon, 06 Feb 2012 11:19:46 -0800, Jameson Graef Rollins wrote: > On Mon, 06 Feb 2012 08:56:34 +0000, David Edmondson wrote: > > With blank subjects the printing code generated an error (because > > `rename-buffer' doesn't like an empty string as the first argument)

[PATCH v2 1/2] emacs: Use text properties rather than overlays in `notmuch-show-mode'.

2012-02-06 Thread David Edmondson
On Mon, 6 Feb 2012 16:08:21 +, David Edmondson wrote: > Except for where invisibility is involved, replace the use of overlays > in `notmuch-show-mode' with text properties, which are more efficient > and can be merged together more effectively. Austin reviewed this (id:&

[PATCH v2 2/2] test: Update test to match previous patch.

2012-02-06 Thread David Edmondson
Indentation now uses tabs where possible. --- ...hread-maildir-storage-with-fourfold-indentation |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/emacs.expected-output/notmuch-show-thread-maildir-storage-with-fourfold-indentation b/test/emacs.expected-output/

<    2   3   4   5   6   7   8   9   10   11   >