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 EA3B5429E54 for ; Mon, 23 Jan 2012 15:50:16 -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 KCuTkYWMBF-Z for ; Mon, 23 Jan 2012 15:50:16 -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 579E8429E21 for ; Mon, 23 Jan 2012 15:50:16 -0800 (PST) Received: by mail-bk0-f53.google.com with SMTP id zt19so1828294bkb.26 for ; Mon, 23 Jan 2012 15:50:16 -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=bzE8KnJ0zCnqqi1Vc3VwTRhuojl8aUG90HRs8mf2Vis=; b=clgurCZRVITeqihCyYcXgK2WjlSQbAuIHh738YZOFKKdt7ztyObIHp4MEEZ9t/mTBV YJXC6yO88K5SABMbJdKblVLbxUFqQ0r8C72tgYdBxNppAAqGWFBsh4JVGtURXoatDugQ MlkFbUnt6ZRkrpQaPGsvqMCknXL7CQ0yDFYrQ= Received: by 10.205.131.142 with SMTP id hq14mr4056527bkc.89.1327362616026; Mon, 23 Jan 2012 15:50:16 -0800 (PST) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id cg2sm31853083bkb.12.2012.01.23.15.50.14 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 Jan 2012 15:50:15 -0800 (PST) From: Dmitry Kurochkin To: notmuch@notmuchmail.org Subject: [PATCH v3 3/3] emacs: bind "s" to `notmuch-hello-search' in notmuch-hello buffer Date: Tue, 24 Jan 2012 03:48:57 +0400 Message-Id: <1327362537-9607-4-git-send-email-dmitry.kurochkin@gmail.com> X-Mailer: git-send-email 1.7.8.3 In-Reply-To: <1327362537-9607-1-git-send-email-dmitry.kurochkin@gmail.com> References: <1326918176-20352-1-git-send-email-dmitry.kurochkin@gmail.com> <1327362537-9607-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: Mon, 23 Jan 2012 23:50:17 -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 004287a..64011d4 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -166,7 +166,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)) @@ -333,7 +334,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