--- /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 49C49431FCB\r
+ for <notmuch@notmuchmail.org>; Fri, 23 Aug 2013 09:36:37 -0700 (PDT)\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 4Wjck3v32LKf for <notmuch@notmuchmail.org>;\r
+ Fri, 23 Aug 2013 09:36:32 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by olra.theworths.org (Postfix) with ESMTP id 6EDF7431FAE\r
+ for <notmuch@notmuchmail.org>; Fri, 23 Aug 2013 09:36:32 -0700 (PDT)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+ id 14F3910009D; Fri, 23 Aug 2013 19:36:25 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Subject: [DRAFT PATCH] emacs: describe-prefix-bindings...\r
+Date: Fri, 23 Aug 2013 19:36:23 +0300\r
+Message-Id: <1377275783-16948-1-git-send-email-tomi.ollila@iki.fi>\r
+X-Mailer: git-send-email 1.8.0\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, 23 Aug 2013 16:36:37 -0000\r
+\r
+---\r
+\r
+I plan to do `notmuch--describe-prefix-bindings' if there is support\r
+for this functionality (or no better solution exists -- I recall\r
+there is specific C functionality doing C-h handling...)\r
+\r
+\r
+ emacs/notmuch-show.el | 2 ++\r
+ emacs/notmuch.el | 1 +\r
+ 2 files changed, 3 insertions(+)\r
+\r
+diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+index 82b70ba..6fd1f73 100644\r
+--- a/emacs/notmuch-show.el\r
++++ b/emacs/notmuch-show.el\r
+@@ -1248,6 +1248,7 @@ reset based on the original query."\r
+ (define-key map "t" 'notmuch-show-stash-to)\r
+ (define-key map "l" 'notmuch-show-stash-mlarchive-link)\r
+ (define-key map "L" 'notmuch-show-stash-mlarchive-link-and-go)\r
++ (define-key map "?" (lambda () (interactive) (describe-prefix-bindings)))\r
+ map)\r
+ "Submap for stash commands")\r
+ (fset 'notmuch-show-stash-map notmuch-show-stash-map)\r
+@@ -1258,6 +1259,7 @@ reset based on the original query."\r
+ (define-key map "v" 'notmuch-show-view-part)\r
+ (define-key map "o" 'notmuch-show-interactively-view-part)\r
+ (define-key map "|" 'notmuch-show-pipe-part)\r
++ (define-key map "?" (lambda () (interactive) (describe-prefix-bindings)))\r
+ map)\r
+ "Submap for part commands")\r
+ (fset 'notmuch-show-part-map notmuch-show-part-map)\r
+diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
+index f3ce840..ac6a712 100644\r
+--- a/emacs/notmuch.el\r
++++ b/emacs/notmuch.el\r
+@@ -245,6 +245,7 @@ For a mouse binding, return nil."\r
+ (defvar notmuch-search-stash-map\r
+ (let ((map (make-sparse-keymap)))\r
+ (define-key map "i" 'notmuch-search-stash-thread-id)\r
++ (define-key map "?" (lambda () (interactive) (describe-prefix-bindings)))\r
+ map)\r
+ "Submap for stash commands")\r
+ (fset 'notmuch-search-stash-map notmuch-search-stash-map)\r
+-- \r
+1.8.0\r