Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 1B64E4196F0 for ; Thu, 10 Jun 2010 00:04:55 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.89 X-Spam-Level: X-Spam-Status: No, score=-1.89 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_MIME_NO_TEXT=0.01] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QCkdefZMha5r for ; Thu, 10 Jun 2010 00:04:44 -0700 (PDT) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by olra.theworths.org (Postfix) with ESMTP id EA9E4431FC1 for ; Thu, 10 Jun 2010 00:04:43 -0700 (PDT) Received: by wwb39 with SMTP id 39so4526150wwb.26 for ; Thu, 10 Jun 2010 00:04:38 -0700 (PDT) Received: by 10.227.145.77 with SMTP id c13mr3763192wbv.140.1276153478053; Thu, 10 Jun 2010 00:04:38 -0700 (PDT) Received: from ut.hh.sledj.net (gmp-ea-fw-1b.sun.com [192.18.8.1]) by mx.google.com with ESMTPS id u19sm18093128wbc.14.2010.06.10.00.04.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 10 Jun 2010 00:04:36 -0700 (PDT) Received: by ut.hh.sledj.net (Postfix, from userid 1000) id D9D6F594015; Thu, 10 Jun 2010 08:05:19 +0100 (BST) To: Dirk Hohndel , notmuch Subject: Re: fix problem with notmuch-hello-nice-number In-Reply-To: References: User-Agent: Notmuch/0.3.1-50-gc535d0a (http://notmuchmail.org) Emacs/23.1.1 (x86_64-pc-linux-gnu) From: David Edmondson Date: Thu, 10 Jun 2010 08:05:13 +0100 Message-ID: <87mxv3s6za.fsf@ut.hh.sledj.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2010 07:04:55 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Wed, 09 Jun 2010 07:49:01 -0700, Dirk Hohndel wr= ote: > 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 =2D-- 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) dme. =2D-=20 David Edmondson, http://dme.org --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkwQjqkACgkQaezQq/BJZRYoowCePZT1cBqFFJsUp1Gxsp5Gq2rG M24AmQHcbrwZJKBAIyMtOxvLvRh6gczg =yqd/ -----END PGP SIGNATURE----- --=-=-=--