Re: [PATCH] emacs: Reuse rather than reinvent message header filtering

Subject: Re: [PATCH] emacs: Reuse rather than reinvent message header filtering

Date: Thu, 29 Apr 2010 10:00:34 +0100

To: Sebastian Spaeth, Notmuch developer list

Cc:

From: David Edmondson


On Thu, 29 Apr 2010 10:47:55 +0200, Sebastian Spaeth <Sebastian@SSpaeth.de> wrote:
> In notmuch-mua-reply we were filtering out the Subject and To headers
> manually in a loop, but message mode offers a nice function for
> exactly that. Simplify the code by using that. Also, as
> notmuch-mua-mail already sorts and hides headers that we want sorted
> and hidden, we can safely remove those 2 functions from here as well.
> 
> Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>

This looks fine to me (I even tested!).

We can also remove "(require 'cl)" now that the use of `loop' is gone.

dme.
-- 
David Edmondson, http://dme.org
part-000.sig (application/pgp-signature)

Thread: