--- /dev/null
+Return-Path: <too@guru-group.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id B1DCD431FC0\r
+ for <notmuch@notmuchmail.org>; Sun, 19 Jan 2014 04:52:03 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+ autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id c-q6E-hTQnGe for <notmuch@notmuchmail.org>;\r
+ Sun, 19 Jan 2014 04:51:57 -0800 (PST)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by olra.theworths.org (Postfix) with ESMTP id 6269B431FC2\r
+ for <notmuch@notmuchmail.org>; Sun, 19 Jan 2014 04:51:57 -0800 (PST)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+ id AABD71000C1; Sun, 19 Jan 2014 14:51:49 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/2] emacs: defun notmuch-hello-versions and bind 'v' in hello\r
+ mode to it\r
+Date: Sun, 19 Jan 2014 14:51:43 +0200\r
+Message-Id: <1390135903-28167-2-git-send-email-tomi.ollila@iki.fi>\r
+X-Mailer: git-send-email 1.8.0\r
+In-Reply-To: <1390135903-28167-1-git-send-email-tomi.ollila@iki.fi>\r
+References: <1390135903-28167-1-git-send-email-tomi.ollila@iki.fi>\r
+Cc: tomi.ollila@iki.fi\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 19 Jan 2014 12:52:03 -0000\r
+\r
+If notmuch cli & notmuch emacs MUA versions differ, print also the\r
+emacs MUA version string (along with the cli version) to the\r
+minibuffer.\r
+---\r
+ emacs/notmuch-hello.el | 12 ++++++++++--\r
+ 1 file changed, 10 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
+index 55c416a..299e35f 100644\r
+--- a/emacs/notmuch-hello.el\r
++++ b/emacs/notmuch-hello.el\r
+@@ -513,6 +513,15 @@ Such a list can be computed with `notmuch-hello-query-counts'."\r
+ (remove-hook 'window-configuration-change-hook\r
+ #'notmuch-hello-window-configuration-change))))\r
+ \r
++(defun notmuch-hello-versions ()\r
++ "Display the notmuch version(s)"\r
++ (interactive)\r
++ (let ((notmuch-cli-version (notmuch-version)))\r
++ (message "notmuch version %s"\r
++ (if (string= notmuch-emacs-version notmuch-cli-version)\r
++ notmuch-cli-version\r
++ (concat notmuch-cli-version\r
++ " (Emacs MUA version " notmuch-emacs-version ")")))))\r
+ \r
+ (defvar notmuch-hello-mode-map\r
+ (let ((map (if (fboundp 'make-composed-keymap)\r
+@@ -523,8 +532,7 @@ Such a list can be computed with `notmuch-hello-query-counts'."\r
+ ;; it's unlikely to change.\r
+ (copy-keymap widget-keymap))))\r
+ (set-keymap-parent map notmuch-common-keymap)\r
+- (define-key map "v" (lambda () "Display the notmuch version" (interactive)\r
+- (message "notmuch version %s" (notmuch-version))))\r
++ (define-key map "v" 'notmuch-hello-versions)\r
+ (define-key map (kbd "<C-tab>") 'widget-backward)\r
+ map)\r
+ "Keymap for \"notmuch hello\" buffers.")\r
+-- \r
+1.8.4.2\r
+\r