--- /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 6457B431FC4\r
+ for <notmuch@notmuchmail.org>; Fri, 21 Feb 2014 15:20:52 -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 QICbreNdWKuZ for <notmuch@notmuchmail.org>;\r
+ Fri, 21 Feb 2014 15:20:50 -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 94568431FBF\r
+ for <notmuch@notmuchmail.org>; Fri, 21 Feb 2014 15:20:48 -0800 (PST)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+ id 176F110019C; Sat, 22 Feb 2014 01:20:40 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 3/3] emacs: defun notmuch-hello-versions and bind 'v' in hello\r
+ mode to it\r
+Date: Sat, 22 Feb 2014 01:20:37 +0200\r
+Message-Id: <1393024837-30394-3-git-send-email-tomi.ollila@iki.fi>\r
+X-Mailer: git-send-email 1.8.0\r
+In-Reply-To: <1393024837-30394-1-git-send-email-tomi.ollila@iki.fi>\r
+References: <1393024837-30394-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: Fri, 21 Feb 2014 23:20:52 -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 | 15 +++++++++++++--\r
+ 1 file changed, 13 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
+index 7b3d76b..f5e7268 100644\r
+--- a/emacs/notmuch-hello.el\r
++++ b/emacs/notmuch-hello.el\r
+@@ -513,6 +513,18 @@ 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
++;; the following variable is defined as being defconst in notmuch.el\r
++(defvar notmuch-emacs-version)\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 +535,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.0\r
+\r