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 741B142119B for ; Tue, 17 Jan 2012 11:35:18 -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 E7DEzgvHrFO6 for ; Tue, 17 Jan 2012 11:35:17 -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 D1C9F41ED6E for ; Tue, 17 Jan 2012 11:35:10 -0800 (PST) Received: by mail-bk0-f53.google.com with SMTP id y12so894828bkt.26 for ; Tue, 17 Jan 2012 11:35:10 -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=d4SGROtIymm4ixrkwvNYhIQ4fQinmjCZseKdt6st11wT66H9/2P12Wldcc8HX3pfld h5XnKwV6HUqyu2J+Fl4a1bC0Fd4bRZ4WrS31zplUvvGQnQvL+/aCIKiIxm90aSYZOJwd u5zj5BibEuhmKQCt+IgySE1nouOaDHyo6oPeM= Received: by 10.205.127.65 with SMTP id gz1mr7601038bkc.12.1326828910532; Tue, 17 Jan 2012 11:35:10 -0800 (PST) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id b9sm1265403bks.6.2012.01.17.11.35.09 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Jan 2012 11:35:10 -0800 (PST) From: Dmitry Kurochkin To: notmuch@notmuchmail.org Subject: [PATCH 3/3] emacs: bind "s" to `notmuch-hello-search' in notmuch-hello buffer Date: Tue, 17 Jan 2012 23:34:10 +0400 Message-Id: <1326828850-8519-3-git-send-email-dmitry.kurochkin@gmail.com> X-Mailer: git-send-email 1.7.8.3 In-Reply-To: <1326828850-8519-1-git-send-email-dmitry.kurochkin@gmail.com> References: <1326828850-8519-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: Tue, 17 Jan 2012 19:35:18 -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