[PATCH] emacs: Accommodate message-mode updates.

2010-11-19 Thread Aneesh Kumar K. V
On Fri, 19 Nov 2010 16:06:40 +, David Edmondson wrote: > On Fri, 19 Nov 2010 21:31:36 +0530, "Aneesh Kumar K. V" linux.vnet.ibm.com> wrote: > > On Tue, 16 Nov 2010 17:51:38 +, David Edmondson wrote: > > > Message mode uses a different name for composition buffers in newer > > > versions

[PATCH] emacs: Accommodate message-mode updates.

2010-11-19 Thread Aneesh Kumar K. V
On Tue, 16 Nov 2010 17:51:38 +, David Edmondson wrote: > Message mode uses a different name for composition buffers in newer > versions of emacs. Allow for this when causing the composition window > to overlay the viewing window. > --- > > I don't understand why Aneesh chose to use `add-hook'

[PATCH] Support function values in notmuch-saved-searches so that searches can be generated dynamically

2010-11-19 Thread Jed Brown
This permits saved searches like "today". --- This is similar functionality to David's patch, but uses an accessor so that queries are always evaluated dynamically. emacs/notmuch-hello.el |4 ++-- emacs/notmuch-lib.el | 11 ++- emacs/notmuch.el |2 +- 3 files changed, 1

[PATCH] Support function values in notmuch-saved-searches so that searches can be generated dynamically

2010-11-19 Thread David Edmondson
. -- David Edmondson, http://dme.org -- 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/20101119/d5a84f86/attachment.pgp>

[PATCH] emacs: Allow saved search queries to be dynamically generated.

2010-11-19 Thread David Edmondson
>From an idea by Jed Brown: Allow the query string passed to notmuch by `notmuch-hello' to be the result of a function as well as a string. The function is passed no arguments and should return the search string. A sample function `notmuch-hello-search-today' is provided. Update the customisation

[PATCH] emacs: Accommodate message-mode updates.

2010-11-19 Thread David Edmondson
exps' in `notmuch-mua-reply' rather than overriding it? dme. -- David Edmondson, http://dme.org -- 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/20101119/4382ba3c/attachment.pgp>

[PATCH] Including 'unread' tag to mails without maildir flags

2010-11-19 Thread mes...@sindominio.net
From: Ruben Pollan Some mail fetchers, like fetchmail, leaves the email without ':2,' at the end of the filename. Notmuch didn't detect this emails as maildir, it didn't add the maildir flags to them. Now it detects if a mail is in a maildir by the directory structure, and add its maildir flags

[PATCH] emacs: Accommodate message-mode updates.

2010-11-19 Thread David Edmondson
fix it by a .emacs > update rather than notmuch code update. What would you add to .emacs? dme. -- David Edmondson, http://dme.org -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not av

Re: [PATCH] Support function values in notmuch-saved-searches so that searches can be generated dynamically

2010-11-19 Thread David Edmondson
On Fri, 19 Nov 2010 19:42:49 +0100, Jed Brown wrote: > This permits saved searches like "today". > --- > This is similar functionality to David's patch, but uses an accessor > so that queries are always evaluated dynamically. This version looks better to me. dme. -- David Edmondson, http://dme.

[PATCH] Support function values in notmuch-saved-searches so that searches can be generated dynamically

2010-11-19 Thread Jed Brown
This permits saved searches like "today". --- This is similar functionality to David's patch, but uses an accessor so that queries are always evaluated dynamically. emacs/notmuch-hello.el |4 ++-- emacs/notmuch-lib.el | 11 ++- emacs/notmuch.el |2 +- 3 files changed, 1

Bug in remote use of notmuch

2010-11-19 Thread Michal Sojka
On Fri, 19 Nov 2010, Austin Clements wrote: > Unfortunately, expansion *is* performed by the remote shell, which is why > your shell quoting approach works (and is necessary). There's really no way > around this, since the ssh client simply joins all of its trailing arguments > with spaces and sen

[PATCH] emacs: Allow saved search queries to be dynamically generated.

2010-11-19 Thread David Edmondson
>From an idea by Jed Brown: Allow the query string passed to notmuch by `notmuch-hello' to be the result of a function as well as a string. The function is passed no arguments and should return the search string. A sample function `notmuch-hello-search-today' is provided. Update the customisation

Re: [PATCH] emacs: Accommodate message-mode updates.

2010-11-19 Thread David Edmondson
On Fri, 19 Nov 2010 22:05:25 +0530, "Aneesh Kumar K. V" wrote: > > > > I don't understand why Aneesh chose to use `add-hook' and `purecopy'. > > > > > > So what when i have unset mail added via .emacs even the older version > > > will work. making sure if the name change again i can fix it by a

Re: [PATCH] emacs: Accommodate message-mode updates.

2010-11-19 Thread Aneesh Kumar K. V
On Fri, 19 Nov 2010 16:06:40 +, David Edmondson wrote: > On Fri, 19 Nov 2010 21:31:36 +0530, "Aneesh Kumar K. V" > wrote: > > On Tue, 16 Nov 2010 17:51:38 +, David Edmondson wrote: > > > Message mode uses a different name for composition buffers in newer > > > versions of emacs. Allow f

"empty" tag

2010-11-19 Thread Sebastian Spaeth
Just some observation with respect to the mysterious "empty" tag. In notmuch-show, if I press +, you can see the tag line changing, so it has been adding something (a newline?). You can remove it again with -. IMHO we should protect against adding this from the emacs UI. I sometimes press accident

[PATCH] emacs: Avoid attempts to add invalid tags.

2010-11-19 Thread David Edmondson
Add a (probably incomplete) function to validate a tag specified by the user. Use the function to avoid adding invalid tags. --- emacs/notmuch.el | 17 - 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 3d82f0d..b003cd6 100

Re: [PATCH] emacs: Accommodate message-mode updates.

2010-11-19 Thread David Edmondson
On Fri, 19 Nov 2010 21:31:36 +0530, "Aneesh Kumar K. V" wrote: > On Tue, 16 Nov 2010 17:51:38 +, David Edmondson wrote: > > Message mode uses a different name for composition buffers in newer > > versions of emacs. Allow for this when causing the composition window > > to overlay the viewing

Re: [PATCH] emacs: Accommodate message-mode updates.

2010-11-19 Thread Aneesh Kumar K. V
On Tue, 16 Nov 2010 17:51:38 +, David Edmondson wrote: > Message mode uses a different name for composition buffers in newer > versions of emacs. Allow for this when causing the composition window > to overlay the viewing window. > --- > > I don't understand why Aneesh chose to use `add-hook'

[PATCH] Including 'unread' tag to mails without maildir flags

2010-11-19 Thread meskio
From: Ruben Pollan Some mail fetchers, like fetchmail, leaves the email without ':2,' at the end of the filename. Notmuch didn't detect this emails as maildir, it didn't add the maildir flags to them. Now it detects if a mail is in a maildir by the directory structure, and add its maildir flags

Re: Bug in remote use of notmuch

2010-11-19 Thread Michal Sojka
On Fri, 19 Nov 2010, Austin Clements wrote: > Unfortunately, expansion *is* performed by the remote shell, which is why > your shell quoting approach works (and is necessary). There's really no way > around this, since the ssh client simply joins all of its trailing arguments > with spaces and sen

[PATCH] emacs: Avoid attempts to add invalid tags.

2010-11-19 Thread David Edmondson
Add a (probably incomplete) function to validate a tag specified by the user. Use the function to avoid adding invalid tags. --- emacs/notmuch.el | 17 - 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 3d82f0d..b003cd6 100