On Thu, 10 Jun 2010 08:05:13 +0100, David Edmondson <d...@dme.org> wrote: > On Wed, 09 Jun 2010 07:49:01 -0700, Dirk Hohndel <hohn...@infradead.org> > wrote: > > Without this little patch notmuch fails with current git if there's a > > saved search that has zero results > > How about: > > diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el > index a6e8a47..48bb6e3 100644 > --- a/emacs/notmuch-hello.el > +++ b/emacs/notmuch-hello.el > @@ -115,6 +115,7 @@ Typically \",\" in the US and UK and \".\" in Europe." > (while (> n 0) > (push (% n 1000) result) > (setq n (/ n 1000))) > + (setq result (or result '(0))) > (apply #'concat > (number-to-string (car result)) > (mapcar (lambda (elem) >
Much better. Mine made sense when you looked at it - this one has a much more emacs-y feel to it in that I need to stare at it for 30 seconds before I can grasp what it does :-) /D -- Dirk Hohndel Intel Open Source Technology Center _______________________________________________ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch