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 A46454196F0 for ; Wed, 9 Jun 2010 10:49:06 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.301 X-Spam-Level: X-Spam-Status: No, score=-2.301 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, RCVD_IN_DNSWL_MED=-2.3] 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 M0rjKPubnydG for ; Wed, 9 Jun 2010 10:48:52 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) by olra.theworths.org (Postfix) with ESMTP id 2DACC431FC1 for ; Wed, 9 Jun 2010 10:48:52 -0700 (PDT) Received: from localhost ([::1] helo=x201s.gr8dns.org) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OMPOQ-0001Ur-Oi for notmuch@notmuchmail.org; Wed, 09 Jun 2010 17:48:50 +0000 Received: by x201s.gr8dns.org (Postfix, from userid 500) id BB60B23D4BC; Wed, 9 Jun 2010 07:49:01 -0700 (PDT) From: Dirk Hohndel To: notmuch Subject: fix problem with notmuch-hello-nice-number User-Agent: Notmuch/0.3.1-58-g6607fd6 (http://notmuchmail.org) Emacs/23.2.1 (x86_64-redhat-linux-gnu) Date: Wed, 09 Jun 2010 07:49:01 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html 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: Wed, 09 Jun 2010 17:49:06 -0000 Without this little patch notmuch fails with current git if there's a saved search that has zero results diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index f5d061b..7c32f7c 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -112,6 +112,8 @@ Typically \",\" in the US and UK and \".\" in Europe." (defun notmuch-hello-nice-number (n) (let (result) + (if (= n 0) + (push 0 result)) (while (> n 0) (push (% n 1000) result) (setq n (/ n 1000))) -- Dirk Hohndel Intel Open Source Technology Center