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 EF005414B8A for ; Tue, 24 Jan 2012 17:12:22 -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 7tBcKf5hCSpj for ; Tue, 24 Jan 2012 17:12:21 -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 D060041735F for ; Tue, 24 Jan 2012 17:12:18 -0800 (PST) Received: by mail-bk0-f53.google.com with SMTP id zt19so2972694bkb.26 for ; Tue, 24 Jan 2012 17:12:18 -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=Wre4Q+jGmcZt3dtKEilO7W1iZtogxKymILcBbT130cw=; b=xHrkpdgq1GKQzljcnLWynrDOkc/pCbZaVj3OLo1eF+TlYDtP8Gby+da2qFliP+BN4Y fj8QUHFdmibrt9s4fI89DQTeOBobRXBcN2Z3gzRPqGdiXWj0mM6KOHLkzIBqzz6iOG4b 1NN/8m+WM+78gk9jSX8y6Ck+7I7x+jmDxvdBA= Received: by 10.204.156.204 with SMTP id y12mr4559579bkw.113.1327453938512; Tue, 24 Jan 2012 17:12:18 -0800 (PST) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id fb7sm28034238bkc.9.2012.01.24.17.12.17 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Jan 2012 17:12:18 -0800 (PST) From: Dmitry Kurochkin To: notmuch@notmuchmail.org Subject: [PATCH v4 3/3] emacs: bind "s" to `notmuch-hello-search' in notmuch-hello buffer Date: Wed, 25 Jan 2012 05:10:54 +0400 Message-Id: <1327453854-29908-4-git-send-email-dmitry.kurochkin@gmail.com> X-Mailer: git-send-email 1.7.8.3 In-Reply-To: <1327453854-29908-1-git-send-email-dmitry.kurochkin@gmail.com> References: <1327362537-9607-1-git-send-email-dmitry.kurochkin@gmail.com> <1327453854-29908-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, 25 Jan 2012 01:12:23 -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 6970bc3..ab65e36 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -172,7 +172,8 @@ International Bureau of Weights and Measures." (match-string 1 search) search)) -(defun notmuch-hello-search (search) +(defun notmuch-hello-search (&optional search) + (interactive) (unless (null search) (setq search (notmuch-hello-trim search)) (let ((history-delete-duplicates t)) @@ -343,7 +344,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