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 741F7431FD4 for ; Wed, 18 Jan 2012 12:24:07 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled 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 IgQs-Gzi+mMM for ; Wed, 18 Jan 2012 12:24:05 -0800 (PST) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 83E61431FCB for ; Wed, 18 Jan 2012 12:24:04 -0800 (PST) Received: by mail-bk0-f53.google.com with SMTP id y12so2078178bkt.26 for ; Wed, 18 Jan 2012 12:24:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references; bh=z0niI0g6yzC63arwaAOe7shFtwidZojIBw9dQ7sZyeM=; b=CWDk4YT1fP8mAAlr/+6O41PvHQZLVB2587f7zRZY9VDXR/m7d6X490skqs5iEEpMII wj0SdWuICybG4VaUglCBxuPrjc4PsBRqYjTbZpnzHHNLd85Cdv6dfrLqaWagLyfRFUug vnZjFp5rufBilijQLcUYfss2/Q8Sf8WXKO0MQ= Received: by 10.204.152.7 with SMTP id e7mr6866766bkw.70.1326918244219; Wed, 18 Jan 2012 12:24:04 -0800 (PST) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id t17sm6378849bke.6.2012.01.18.12.24.03 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 Jan 2012 12:24:03 -0800 (PST) From: Dmitry Kurochkin To: notmuch@notmuchmail.org Subject: [PATCH v2 3/3] emacs: bind "s" to `notmuch-hello-search' in notmuch-hello buffer Date: Thu, 19 Jan 2012 00:22:56 +0400 Message-Id: <1326918176-20352-4-git-send-email-dmitry.kurochkin@gmail.com> X-Mailer: git-send-email 1.7.8.3 In-Reply-To: <1326918176-20352-1-git-send-email-dmitry.kurochkin@gmail.com> References: <1326828850-8519-1-git-send-email-dmitry.kurochkin@gmail.com> <1326918176-20352-1-git-send-email-dmitry.kurochkin@gmail.com> 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, 18 Jan 2012 20:24:08 -0000 `notmuch-hello-search' uses `notmuch-search' function but refreshes notmuch-hello buffer when the search buffer is closed. --- emacs/notmuch-hello.el | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index cb36977..e908659 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -163,7 +163,8 @@ International Bureau of Weights and Measures." (format "%s%03d" notmuch-hello-thousands-separator elem)) (cdr result))))) -(defun notmuch-hello-search (search) +(defun notmuch-hello-search (&optional search) + (interactive) (notmuch-search search notmuch-search-oldest-first nil nil #'notmuch-hello-search-continuation)) @@ -330,7 +331,7 @@ should be. Returns a cons cell `(tags-per-line width)'." (define-key map "G" 'notmuch-hello-poll-and-update) (define-key map (kbd "") 'widget-backward) (define-key map "m" 'notmuch-mua-new-mail) - (define-key map "s" 'notmuch-search) + (define-key map "s" 'notmuch-hello-search) map) "Keymap for \"notmuch hello\" buffers.") (fset 'notmuch-hello-mode-map notmuch-hello-mode-map) -- 1.7.8.3