[notmuch] hello, 'automated' tagging, synchronisation

2010-02-10 Thread David Edmondson
of conflict resolution should I update the tags on both a and b. What does everyone else do about this? Footnotes: [1] http://dme.org/tmp/run-notmuch dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http

[notmuch] [PATCH] notmuch.el: Decorate 'Date:' headers with the message-header-other face when visible.

2010-02-10 Thread David Edmondson
--- notmuch.el |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/notmuch.el b/notmuch.el index c0bb552..bd721a0 100644 --- a/notmuch.el +++ b/notmuch.el @@ -816,7 +816,13 @@ before the delimiter marking the beginning of the body. (overlay-put

Re: [notmuch] [PATCH] notmuch.el: Decorate 'Date:' headers with the message-header-other face when visible.

2010-02-10 Thread David Edmondson
On Wed, 10 Feb 2010 12:55:49 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: On Wed, 10 Feb 2010 11:38:54 +, David Edmondson d...@dme.org wrote: [Patch to fontify date] You do realize that your patch is identical to the one in id:874omet1su@servo.finestructure.net (Jan 22

Re: [notmuch] emacs: On getting support for inline images

2010-02-11 Thread David Edmondson
PS. I know that attaching the output of git format-patch to a message like this isn't the git way. (That is, you won't get the right result by simply piping this message to git am.) But I really wish it were. It seems I often write code in response to an email message and I often want to

[notmuch] [PATCH] notmuch.el: 'F' in search mode takes us to a list of folders.

2010-02-11 Thread David Edmondson
--- notmuch.el |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/notmuch.el b/notmuch.el index 040997e..8f50abe 100644 --- a/notmuch.el +++ b/notmuch.el @@ -1104,6 +1104,7 @@ matching this search term are shown if non-nil. (define-key map - 'notmuch-search-remove-tag)

[notmuch] [PATCH] notmuch.el: Prefix arg inverts the sort order of notmuch-search.

2010-02-11 Thread David Edmondson
--- notmuch.el |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/notmuch.el b/notmuch.el index 8f50abe..de9ddf8 100644 --- a/notmuch.el +++ b/notmuch.el @@ -1398,7 +1398,8 @@ characters as well as `_.+-'. (defun notmuch-search (query optional oldest-first) Run

Re: [notmuch] notmuch.el: Prefix arg inverts the sort order of notmuch-search.

2010-02-11 Thread David Edmondson
On Thu, 11 Feb 2010 14:42:40 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: On Thu, 11 Feb 2010 12:19:12 +, David Edmondson d...@dme.org wrote: ... I think the correct thing here would be to let notmuch return search is inverse sort order rather than reverting this later

Re: [notmuch] Backport of Xapian term update optimisation

2010-02-12 Thread David Edmondson
list later today. I'm using the version from the experimental repository and it's working well for me so far. dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[notmuch] [RFC] improved display of message/rfc822 parts

2010-02-12 Thread David Edmondson
7fd7ad00f4b8f8a2610eb1598a1c0bb4351e Mon Sep 17 00:00:00 2001 From: David Edmondson d...@dme.org Date: Fri, 12 Feb 2010 15:01:06 + Subject: [PATCH] show: Make message/rfc822 parts explicit in show output. show: Display header information for message/rfc822 parts. --- notmuch-show.c | 32

[notmuch] [PATCH] notmuch.el: Colour cited regions and signatures with message-cited-text-face.

2010-02-15 Thread David Edmondson
--- notmuch.el |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/notmuch.el b/notmuch.el index 8090b2f..3e8e50d 100644 --- a/notmuch.el +++ b/notmuch.el @@ -703,6 +703,7 @@ is what to put on the button. (let* ((cite-start (match-beginning 0)) (cite-end

[notmuch] [RFC] labelling parts

2010-02-15 Thread David Edmondson
not text/plain by default), - have the inserted buttons actually do something useful (toggle visibility and/or save). From fcdbb8b3452911ce4c836547fc12519b1881e515 Mon Sep 17 00:00:00 2001 From: David Edmondson d...@dme.org Date: Mon, 15 Feb 2010 14:13:45 + Subject

[notmuch] [rfc] improved wrapping of long lines

2010-02-16 Thread David Edmondson
be interested in your feedback, particularly if it doesn't work or doesn't look the way that you expect. Footnotes: [1] It's a long-line wrapper... From d49ff05ef86b652ec4883d7075df4fb65c846342 Mon Sep 17 00:00:00 2001 From: David Edmondson d...@dme.org Date: Tue, 16 Feb 2010 09:03:18 +

Re: [notmuch] [PATCH] notmuch.el: Colour cited regions and signatures with message-cited-text-face.

2010-02-16 Thread David Edmondson
On Tue, 16 Feb 2010 11:22:01 +0100, Michal Sojka sojk...@fel.cvut.cz wrote: Nice, it works for me. On Mon, 15 Feb 2010 10:03:32 +, David Edmondson d...@dme.org wrote: This version is over-eager in marking (non-)signatures. The second call to 'overlay-put' needs to move inside

Re: [notmuch] [rfc] improved wrapping of long lines

2010-02-16 Thread David Edmondson
On Tue, 16 Feb 2010 09:10:23 +, David Edmondson d...@dme.org wrote: It's annoying that the wrapping of long lines doesn't respect the indentation of the message. Here's an attempt to improve that. The wrapping code is in a separate file and has a silly name[1], but all of that is subject

Re: [notmuch] [PATCH] Look for text/html content types ignoring case

2010-02-16 Thread David Edmondson
. Shouldn't they all be fixed? (I see TEXT/PLAIN frequently.) dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[notmuch] [PATCH] notmuch.el: Allow citation suffixes to be shown as well as prefixes.

2010-02-17 Thread David Edmondson
In many conversations the last few lines of a citation are more interesting than the first few lines, hence allow those to be shown if desired. Modify the face used for the citation button to distinguish it from the surrounding citation. --- notmuch.el | 37

[notmuch] [PATCH 1/2] build: Ensure that '.' is in the emacs load-path when compiling files.

2010-02-17 Thread David Edmondson
--- Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 64b9d4a..9fcb2b9 100644 --- a/Makefile +++ b/Makefile @@ -60,7 +60,7 @@ quiet ?= $($1) $(call quiet,CC,$(CFLAGS)) -c $(FINAL_CFLAGS) $ -o $@ %.elc: %.el - $(call

[notmuch] [PATCH 2/2] notmuch.el: Replace inline function calls for body cleaning with a hook mechanism.

2010-02-17 Thread David Edmondson
Public License +; along with Notmuch. If not, see http://www.gnu.org/licenses/. +; +; Authors: David Edmondson d...@dme.org + +(require 'coolj) + +;; Add these functions to `notmuch-show-markup-body-hook' using +;; `add-hook'. Something like: + +;; (eval-after-load notmuch +;; '(progn

Re: [notmuch] [PATCH 2/2] notmuch.el: Replace inline function calls for body cleaning with a hook mechanism.

2010-02-18 Thread David Edmondson
On Wed, 17 Feb 2010 14:04:12 +, David Edmondson d...@dme.org wrote: In-lining every possible body cleaning function is difficult to maintain and doesn't allow users any flexibility. Rather, use a hook mechanism so that users can choose what cleaning takes place. Improved version attached

Re: [notmuch] [PATCH 2/2] notmuch.el: Replace inline function calls for body cleaning with a hook mechanism.

2010-02-18 Thread David Edmondson
This, and any other patches that I'm using, are now in a repository at git://gitorious.org/notmuch/notmuch.git dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo

Re: [notmuch] [PATCH] Look for text/html content types ignoring case

2010-02-19 Thread David Edmondson
On Thu, 18 Feb 2010 17:29:15 +, James Westby jw+deb...@jameswestby.net wrote: On Tue, 16 Feb 2010 19:11:24 +, David Edmondson d...@dme.org wrote: On Tue, 16 Feb 2010 18:51:00 +, James Westby jw+deb...@jameswestby.net wrote: Some people send html parts as text/HTML or similar

Re: [notmuch] noneatall - a silly web interface for notmuch

2010-03-01 Thread David Edmondson
DraX on IRC asked, so here's a git repository: git://github.com/dme/noneatall.git dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[notmuch] [PATCH] Add the emacs directory to the load-path when byte compiling.

2010-03-12 Thread David Edmondson
--- Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 46f001c..f0b96e0 100644 --- a/Makefile +++ b/Makefile @@ -68,7 +68,7 @@ quiet ?= $($1) $(call quiet,CC,$(CFLAGS)) -c $(FINAL_CFLAGS) $ -o $@ %.elc: %.el - $(call

Re: [notmuch] [PATCH] Add the emacs directory to the load-path when byte compiling.

2010-03-12 Thread David Edmondson
Sorry, I just (re?)read the submission guidelines. I'll send another version that attempts to comply. dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[notmuch] [PATCH] Add the emacs directory to the load-path when byte compiling

2010-03-12 Thread David Edmondson
When the emacs UI is split into multiple files they are likely to be interdependent. Adding the emacs directory to the load-path means that one file will be able to `require' another. Signed-off-by: David Edmondson d...@dme.org --- Makefile |2 +- 1 files changed, 1 insertions(+), 1

[notmuch] JSON based emacs UI

2010-03-22 Thread David Edmondson
to suggestions. Finally, if anyone else is working on something like this, please let me know - I'd be interested in collaborating. ps. Thanks to aep in #notmuch for encouraging me to just get on with it. dme. -- David Edmondson, http://dme.org

Re: [notmuch] JSON based emacs UI

2010-03-22 Thread David Edmondson
On Mon, 22 Mar 2010 14:47:39 +, David Edmondson d...@dme.org wrote: This is lightly tested, but if anyone else wants to give it a try I would be interested in feedback. There were a couple of places in the current code where I wasn't completely sure of the intention, so I may have

Re: [notmuch] JSON based emacs UI

2010-03-24 Thread David Edmondson
On Mon, 22 Mar 2010 14:47:39 +, David Edmondson d...@dme.org wrote: I've pushed the first stage of a JSON based emacs UI to the repository at http://github.com/dme/notmuch (it's in the master branch). This is intended to be functionally equivalent to the current UI, though HTML display

Re: [notmuch] JSON based emacs UI

2010-03-25 Thread David Edmondson
-hook '(notmuch-wash-wrap-long-lines notmuch-wash-tidy-citations notmuch-wash-compress-blanks notmuch-wash-inline-patch notmuch-wash-markup-citations)) The order is important! dme. -- David Edmondson, http://dme.org

Re: [notmuch] JSON based emacs UI

2010-03-26 Thread David Edmondson
can get the tag updated tag details by using = key. right now it is difficult to find out whether i unread tag is removed from a message or not. The best fix would be to show the updated tag dynamically This is now fixed. dme. -- David Edmondson, http://dme.org

Re: [notmuch] JSON based emacs UI

2010-03-26 Thread David Edmondson
. dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [notmuch] JSON based emacs UI

2010-03-26 Thread David Edmondson
On Fri, 26 Mar 2010 20:21:46 +0530, Aneesh Kumar K. V aneesh.ku...@linux.vnet.ibm.com wrote: On Mon, 22 Mar 2010 14:47:39 +, David Edmondson d...@dme.org wrote: I found another issue. In the notmuch-show-mode RET key on from and subject doesn't seem to work. For ex: for the last

Re: [notmuch] JSON based emacs UI

2010-03-29 Thread David Edmondson
On Sun, 28 Mar 2010 14:03:44 -0300, Fernando Carrijo fcarr...@yahoo.com.br wrote: David Edmondson d...@dme.org wrote: 'RET' anywhere in the message is supposed to toggle visibility of the message. That was not working perfectly - a little forced redisplay helped (just pushed

Re: [notmuch] [PATCH] format_part_json: part_content-data is not null terminated

2010-04-01 Thread David Edmondson
outside our allocated memory could cause problems; at minimum it makes a false positive for a memory checker like valgrind. Agreed. It looks as though this should copy only part_content-len bytes. dme. -- David Edmondson, http://dme.org ___ notmuch

Re: [notmuch] pull request

2010-04-02 Thread David Edmondson
On Thu, 01 Apr 2010 14:09:57 -0700, Carl Worth cwo...@cworth.org wrote: On Thu, 01 Apr 2010 15:41:03 +0100, David Edmondson d...@dme.org wrote: Carl, a couple of patches that I'd like you to consider. They are the first two on the `dme' branch of git://github.com/dme/notmuch.git. The updated

[notmuch] pull request [was Re: pull request]

2010-04-03 Thread David Edmondson
On Fri, 02 Apr 2010 15:53:34 -0700, Carl Worth cwo...@cworth.org wrote: On Fri, 02 Apr 2010 09:53:04 +0100, David Edmondson d...@dme.org wrote: The updated changes are on the 'dme-for-cworth' branch now. Thanks for the quick update, David! I've pushed this now. Thanks. Here's another set

Re: [notmuch] pull request [was Re: pull request]

2010-04-04 Thread David Edmondson
). Carl: is a single changeset that creates notmuch-lib.el and moves the show implementation into notmuch-show.el okay? dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo

Re: [notmuch] pull request [was Re: pull request]

2010-04-04 Thread David Edmondson
On Sun, 04 Apr 2010 08:33:00 +0100, David Edmondson d...@dme.org wrote: I'll declare common variables and 'exported' functions in 'notmuch-lib.el'. It may take a few days (I'm supposed to be on holiday). It was quicker than expected. Using 'declare-function' in a file that is required didn't

Re: [notmuch] [PATCH] format_part_json: part_content-data is not null terminated

2010-04-05 Thread David Edmondson
is quite expensive, isn't it? Agreed. How about this patch: http://github.com/dme/notmuch/commit/5f23ae341788d28e455e53488d184d8caaa618c5 ? dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org

[PATCH] json: Avoid calling strlen(NULL)

2010-04-06 Thread David Edmondson
commit b65817262b3a275ecd0ef1898d92ec5508a9f810 Author: David Edmondson d...@dme.org Date: Tue Apr 6 08:24:00 2010 +0100 json: Avoid calling strlen(NULL) MIME parts may have no filename, which previously resulted in calling strlen(NULL). Modified json.c diff --git

finding the emacs lisp after install

2010-04-07 Thread David Edmondson
more polite this way. ...how is emacs supposed to find these files? .../site-lisp/notmuch is not in my load-path by default (Debian GNU Emacs 23.1.1). dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http

Re: Plans for the 0.2 release (this week)

2010-04-08 Thread David Edmondson
it from git HEAD before dropping it on an unsuspecting public. dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [PATCH] notmuch.el: 'F' in search mode takes us to a list of folders.

2010-04-08 Thread David Edmondson
On Wed, 07 Apr 2010 16:12:36 -0700, Carl Worth cwo...@cworth.org wrote: I'm actually currently using super-n (a personal customization I have) to get to notmuch-folder view from *any* buffer in emacs. This is also my current approach, though I don't use it very much (or 'F'). dme. -- David

[PATCH] git: Ignore packaging intermediate files

2010-04-10 Thread David Edmondson
commit c9ff373f8bdcc6b55c6df8e0d4582d459ef87c31 Author: David Edmondson d...@dme.org Date: Sat Apr 10 09:02:32 2010 +0100 git: Ignore packaging intermediate files Modified .gitignore diff --git a/.gitignore b/.gitignore index 217440d..c685340 100644 --- a/.gitignore +++ b

pull request

2010-04-11 Thread David Edmondson
Carl, please consider the following (from the 'for-cworth' branch of git://github.com/dme/notmuch.git) for 0.2. I hope to have some more UI changes merged next week. commit 651f8ca16beadd658c412075a585e4ec90e31456 Author: David Edmondson d...@dme.org Date: Mon Mar 22 14:50:20 2010 +

Re: RFC: User-Agent header

2010-04-11 Thread David Edmondson
On Mon, 12 Apr 2010 00:12:15 +0200, Sebastian Spaeth sebast...@sspaeth.de wrote: After some research, this is what I found/propose: ... Please make the insertion of User-Agent optional. Some might not want it. dme. -- David Edmondson, http://dme.org

Re: sup-like label listings (elisp)

2010-04-12 Thread David Edmondson
How about this approach: commit 0f591b5ac149179540327f1d39b593c043ec Author: David Edmondson d...@dme.org Date: Mon Apr 12 09:13:15 2010 +0100 emacs: More flexible folder mode construction Allow callers to `notmuch-folder' to optionally specify the alist of folders

Re: sup-like label listings (elisp)

2010-04-12 Thread David Edmondson
Oops. That one wasn't complete. Try: commit 0c55967141e7685b0ba23b45a74c1e48a5964f6c Author: David Edmondson d...@dme.org Date: Mon Apr 12 09:24:44 2010 +0100 emacs: More flexible folder mode construction Allow callers to `notmuch-folder' to optionally specify the alist

Re: [PATCH] emacs: Add notmuch-hello.el, a friendly frontend to notmuch

2010-04-13 Thread David Edmondson
On Tue, 13 Apr 2010 12:25:43 +0200, Michal Sojka sojk...@fel.cvut.cz wrote: For next time, could you plese use 'git format-patch' for generating patches for sending in email? If I pipe your message to 'git am', all the above text becomes a part of commit message. Will do. dme. -- David

Re: [PATCH 13/13] notmuch.el: Add a function to insert a notmuch user-agent header

2010-04-14 Thread David Edmondson
the possibility to turn it off, a task left as a homework for others. This really should be done with `define-mail-user-agent' and associated paraphernalia. dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http

[PATCH] emacs: Re-arrange message sending code

2010-04-15 Thread David Edmondson
/notmuch-mua.el b/emacs/notmuch-mua.el new file mode 100644 index 000..c8a8743 --- /dev/null +++ b/emacs/notmuch-mua.el @@ -0,0 +1,94 @@ +;; notmuch-mua.el --- emacs style mail-user-agent +;; +;; Copyright © David Edmondson +;; +;; This file is part of Notmuch. +;; +;; Notmuch is free software: you

Re: [PATCH] emacs: Re-arrange message sending code

2010-04-15 Thread David Edmondson
On Thu, 15 Apr 2010 16:50:27 +0100, David Edmondson d...@dme.org wrote: Define a new `mail-user-agent' (`notmuch-user-agent') and use it by default. Re-arrange various routines that send mail to use this (compose, reply, forward). Insert a `User-Agent:' header by default. I meant to add

Re: pull request

2010-04-19 Thread David Edmondson
On Sun, 11 Apr 2010 11:29:29 +0100, David Edmondson d...@dme.org wrote: Carl, please consider the following (from the 'for-cworth' branch of git://github.com/dme/notmuch.git) for 0.2. I hope to have some more UI changes merged next week. This is the same set rebased onto 0.2. commit

Re: [notmuch] Bulk message tagging

2010-04-19 Thread David Edmondson
dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [PATCH 1/2] Add 'cat' subcommand

2010-04-20 Thread David Edmondson
. It strikes me that notmuch is not well suited to this in general. For example, how would you find the filenames for the two messages with the same message id? dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http

Re: [PATCH 1/2] Add 'cat' subcommand

2010-04-20 Thread David Edmondson
On Tue, 20 Apr 2010 13:13:36 +0200, Michal Sojka sojk...@fel.cvut.cz wrote: On Tue, 20 Apr 2010, David Edmondson wrote: On Tue, 20 Apr 2010 12:14:56 +0200, Michal Sojka sojk...@fel.cvut.cz wrote: I'm puzzled why you chose to pass a filename as the argument to 'cat' rather than

Re: pull request

2010-04-21 Thread David Edmondson
On Tue, 20 Apr 2010 09:25:36 -0700, Carl Worth cwo...@cworth.org wrote: I'm currently working on the make-emacs-use-JSON patch, (it's got some confusion about body visible vs. message visible that I want to fix before pushing). Could you describe the confusion? dme. -- David Edmondson, http

Re: pull request

2010-04-22 Thread David Edmondson
about it going away. dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: pull request

2010-04-22 Thread David Edmondson
, you should give it a try. (And we should add some hint somewhere to make it easier to find. Perhaps a keybinding to get to the customization buffer.) A button in `notmuch-hello' ? Footnotes: [1] Debian names - presumably similar on other systems. dme. -- David Edmondson, http://dme.org

Re: problem with notmuch-search-authors-width in JSON emacs implementation

2010-04-22 Thread David Edmondson
if you modify `notmuch-search-result-format' without also updating `notmuch-search-authors-width'. Some more thought required... dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo

[PATCH] emacs/notmuch-show.el: Add `notmuch-show-toggle-all' bound to M-RET

2010-04-22 Thread David Edmondson
`notmuch-show-toggle-all' changes the visibility all of the messages in the current thread. By default it makes all of the messages visible. With a prefix argument, it makes them all not visible. --- emacs/notmuch-show.el | 13 + 1 files changed, 13 insertions(+), 0 deletions(-)

[PATCH] json: Replace `date_unix' with `timestamp' in show output

2010-04-22 Thread David Edmondson
Search output was already using `timestamp' for a very similar field, so follow that. --- notmuch-show.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch-show.c b/notmuch-show.c index 76873a1..26449fa 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -145,7

[PATCH] emacs: Re-arrange message sending code

2010-04-22 Thread David Edmondson
+1,133 @@ +;; notmuch-mua.el --- emacs style mail-user-agent +;; +;; Copyright © David Edmondson +;; +;; This file is part of Notmuch. +;; +;; Notmuch is free software: you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software

[PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-22 Thread David Edmondson
/notmuch-address.el b/emacs/notmuch-address.el new file mode 100644 index 000..69a52a2 --- /dev/null +++ b/emacs/notmuch-address.el @@ -0,0 +1,91 @@ +;; notmuch-address.el --- address completion with notmuch +;; +;; Copyright © David Edmondson +;; +;; This file is part of Notmuch

[PATCH] emacs: Add more functions to clean up text/plain parts

2010-04-22 Thread David Edmondson
Software Foundation, Inc. + +;; Authors:Kai Grossjohann kai.grossjoh...@cs.uni-dortmund.de +;; Alex Schroeder a...@gnu.org +;; Chong Yidong c...@stupidchicken.com +;; Maintainer: David Edmondson d...@dme.org +;; Keywords: convenience, wp + +;; This file is not part of GNU

Re: pull request

2010-04-22 Thread David Edmondson
On Thu, 22 Apr 2010 04:58:16 -0400, Servilio Afre Puentes servi...@gmail.com wrote: On 21 April 2010 17:03, Carl Worth cwo...@cworth.org wrote: On Mon, 19 Apr 2010 09:27:39 +0100, David Edmondson d...@dme.org wrote: [...] Meanwhile, another issue with the result of this series is that I now

Re: problem with notmuch-search-authors-width in JSON emacs implementation

2010-04-22 Thread David Edmondson
email on tracking down the issue. Ah, when you set `notmuch-search-authors-width' the expression which creates `notmuch-search-result-format' is not re-evaluated. Do things get better if you restart emacs (sorry for suggesting that)? If so then I have an idea how to fix it. dme. -- David

Re: problem with notmuch-search-authors-width in JSON emacs implementation

2010-04-22 Thread David Edmondson
On Thu, 22 Apr 2010 10:12:59 -0400, Jameson Rollins jroll...@finestructure.net wrote: On Thu, 22 Apr 2010 15:04:45 +0100, David Edmondson d...@dme.org wrote: Ah, when you set `notmuch-search-authors-width' the expression which creates `notmuch-search-result-format' is not re-evaluated

Re: pull request

2010-04-22 Thread David Edmondson
between collapsing all messages and expanding the ones that were originally expanded. I'll give this some thought. dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: problem with notmuch-search-authors-width in JSON emacs implementation

2010-04-22 Thread David Edmondson
On Thu, 22 Apr 2010 11:20:33 -0400, Jameson Rollins jroll...@finestructure.net wrote: On Thu, 22 Apr 2010 15:38:55 +0100, David Edmondson d...@dme.org wrote: The `defcustom' does nothing if the variable already has a value. But the defcustom is always going to be called before any

[PATCH] emacs: Remove `notmuch-search-authors-width' and fix the use of `notmuch-search-result-format' accordingly

2010-04-23 Thread David Edmondson
The width of the authors field in search output was previously specified in two places: - `notmuch-search-authors-width': the limit beyond which the authors names are truncated, - `notmuch-search-result-format': the layout of the search results. Changing the configuration of one of these may

Re: pull request

2010-04-23 Thread David Edmondson
-...@dme.org. dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [PATCH] emacs: Allow headers to be shown by default in show mode

2010-04-23 Thread David Edmondson
I like the current behaviour, but changing the default would be fine. On Friday, April 23, 2010, Carl Worth cwo...@cworth.org wrote: On Fri, 23 Apr 2010 12:54:21 +0100, David Edmondson d...@dme.org wrote: Add `notmuch-show-headers-visible' which, when set `t', causes headers to be shown

Re: [PATCH] emacs: Re-arrange message sending code

2010-04-24 Thread David Edmondson
: I have: (setq message-hidden-headers '(^References: ^Face: ^X-Face: ^X-Draft-From: ^User-Agent:)) so the User-Agent is not even visible. dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http

Re: Wrapping up the 0.3 release

2010-04-24 Thread David Edmondson
mode would be quite welcome. I might take a whack at some of these. Hopefully early next week for me. dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [SCM] notmuch - thread-based email index, search and tagging. branch, master, updated. 0.2-180-gc87d17f

2010-04-25 Thread David Edmondson
of the search entry area. dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[PATCH 1/3] emacs: Adapt the logo background colour to that of the frame

2010-04-26 Thread David Edmondson
The notmuch logo uses transparency. That can display poorly when inserting the image into an emacs buffer (black logo on a black background), so force the background colour of the image. We use a face (`notmuch-hello-logo-background') to represent the colour so that `defface' can be used to

[PATCH 3/3] emacs: Add a search to the 'recent searches' list once only

2010-04-26 Thread David Edmondson
Avoiding adding the same search string to the 'recent searches' list more than once by testing whether the string was already used with `member' rather than `memq'. --- emacs/notmuch-hello.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch-hello.el

[PATCH 2/3] emacs: Remove the accelerator keys from the hello buffer

2010-04-26 Thread David Edmondson
Carl though that the recent search accelerator keys are not useful, so remove them. --- emacs/notmuch-hello.el | 44 ++-- 1 files changed, 18 insertions(+), 26 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index

Re: [PATCH] emacs: Add notmuch-hello.el, a friendly frontend to notmuch

2010-04-26 Thread David Edmondson
about that. It seems straightforward, I'll produce a patch. dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[PATCH] emacs: Correct message/header/citation/signature hiding

2010-04-26 Thread David Edmondson
Set `buffer-invisibility-spec' to `nil' (a list) if it is just `t' before inserting any body parts, otherwise removing items from `buffer-invisibility-spec' (which is what `notmuch-show-headers-visible' and `notmuch-show-message-visible' do) is a no-op and has no effect. This caused threads with

Re: [PATCH] RFC: Add From guessing when forwarding email

2010-04-26 Thread David Edmondson
(shell-command-to-string (concat notmuch-command guess-from (notmuch-show-get-message-id) (with-current-notmuch-show-message (notmuch-mua-forward-message is more idiomatic. dme. -- David

[PATCH] emacs: Automatically load notmuch-address

2010-04-26 Thread David Edmondson
notmuch-address.el tries to be careful to insinuate itself into message mode only if it will do something useful, so it's safe to load it all of the time. --- emacs/notmuch-mua.el |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el

Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-26 Thread David Edmondson
, though, I haven't figured out how to get more than a single match from this. If the first match isn't what I want, how do I see and choose later matches? M-n to move forward in the list, M-p to move backwards (including into any history you have accrued). dme. -- David Edmondson, http://dme.org

Re: [PATCH] emacs: Allow headers to be shown by default in show mode

2010-04-26 Thread David Edmondson
On Sat, 24 Apr 2010 05:42:54 -0700, Carl Worth cwo...@cworth.org wrote: On Fri, 23 Apr 2010 21:08:48 +0100, David Edmondson d...@dme.org wrote: I like the current behaviour, but changing the default would be fine. Which parts of it do you like? Being able to toggle the header back and forth

Re: [PATCH] notmuch.pod: pod version of documentation, converted by rman, massaged by hand.

2010-04-26 Thread David Edmondson
think it would be nice to avoid maintaining two copies of the documentation. Should I rebase/rebuild this against the current docs, or not bother? I like the idea, but I have no experience with pod. dme. -- David Edmondson, http://dme.org ___ notmuch

Re: Unhandled Xapian exception

2010-04-26 Thread David Edmondson
would like to do (and thought that I was!) in notsync. dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[PATCH] emacs: Suppress window creation when replying

2010-04-26 Thread David Edmondson
The buffer used to edit a reply should overlay the original message. Encourage this by setting `same-window-regexps' locally. --- emacs/notmuch-mua.el | 16 ++-- 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index

[PATCH] emacs: Sort headers when composing

2010-04-26 Thread David Edmondson
Always sort the headers in the message composition window. --- emacs/notmuch-mua.el |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index b69e31c..004b50a 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -112,6

Re: Wrapping up the 0.3 release

2010-04-26 Thread David Edmondson
of splitting here? Patch sent. * Composing a new message with 'm' brings up headers in a scrambled order. A minor point, but it would be nice to fix this. Patch sent. dme. -- David Edmondson, http://dme.org ___ notmuch mailing list notmuch

[PATCH] emacs: Hide the User-Agent: when composing messages

2010-04-26 Thread David Edmondson
Add a list of headers to those hidden by `message-mode' when composing. By default the list includes only User-Agent:. --- emacs/notmuch-mua.el | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index

[PATCH] emacs: Add more functions to clean up text/plain parts

2010-04-26 Thread David Edmondson
...@stupidchicken.com +;; Maintainer: David Edmondson d...@dme.org +;; Keywords: convenience, wp + +;; This file is not part of GNU Emacs. + +;; GNU Emacs is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software

[PATCH] emacs: More DWIM when editing messages

2010-04-26 Thread David Edmondson
For composing new messages and forwarding, leave the cursor on the 'To:' field. For replies, leave the cursor at the start of the body. In all cases, mark the buffer as not modified so that the user is not prompted if she decides to immediately kill the buffer. --- emacs/notmuch-mua.el | 32

Re: Kudos! Also: +1 PGP!

2010-04-26 Thread David Edmondson
to kludge something together with the current output, but it will be awkward. dme. -- David Edmondson, http://dme.org pgpvwcNEYx8Wa.pgp Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo

Re: [SCM] notmuch - thread-based email index, search and tagging. branch, master, updated. 0.2-191-g38c35f8

2010-04-26 Thread David Edmondson
On Mon, 26 Apr 2010 07:17:47 -0700 (PDT), notmuch-commits-sen...@notmuchmail.org (Carl Worth) wrote: commit 97570954cb583cacac35b0235cbe449a07630ae3 Author: David Edmondson d...@dme.org Date: Thu Apr 22 13:26:06 2010 +0100 emacs: Add more functions to clean up text/plain parts

Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-26 Thread David Edmondson
To: David Edmondson d...@dme.org, notmuch@notmuchmail.org, d...@yoom.home.cworth.org Cc: c...@ut.hh.sledj.net Date: Mon, 26 Apr 2010 08:21:51 -0700 Something interesting is happening here :-) dme. -- David Edmondson, http://dme.org pgpgH6xAit11l.pgp Description: PGP signature

Re: [PATCH] emacs: `notmuch' should display the `notmuch-hello' interface

2010-04-26 Thread David Edmondson
On Mon, 26 Apr 2010 09:11:07 -0700, Dirk Hohndel hohn...@infradead.org wrote: This is lacking a committ message... I wasn't sure what else to say. On Mon, 26 Apr 2010 16:07:04 +0100, d...@dme.org wrote: From: David Edmondson d...@dme.org --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch

Re: Kudos! Also: +1 PGP!

2010-04-26 Thread David Edmondson
On Mon, 26 Apr 2010 12:19:26 -0400, Jameson Rollins jroll...@finestructure.net wrote: On Mon, 26 Apr 2010 17:11:33 +0100, David Edmondson d...@dme.org wrote: multipart/signed really needs the re-worked JSON output so that the UI can know what is going on. It might be possible to kludge

Re: [PATCH] emacs: More DWIM when editing messages

2010-04-26 Thread David Edmondson
On Mon, 26 Apr 2010 15:28:02 -0700, Dirk Hohndel hohn...@infradead.org wrote: +(if (re-search-backward -- nil t) Maybe `message-signature-separator' rather than the literal -- here. dme. -- David Edmondson, http://dme.org pgpGVKmR23JJQ.pgp Description: PGP signature

[PATCH] emacs: Usability improvements for `notmuch-hello'.

2010-04-28 Thread David Edmondson
- If no saved searches exist or are displayed, don't signal an error, - If no saved searches exist or are displayed, leave the cursor in the search bar, - Minor layout improvements. --- emacs/notmuch-hello.el | 36 +++- 1 files changed, 19 insertions(+), 17

  1   2   3   4   5   6   7   8   9   10   >