1 Return-Path: <too@guru-group.fi>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 49C49431FCB
\r
6 for <notmuch@notmuchmail.org>; Fri, 23 Aug 2013 09:36:37 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id 4Wjck3v32LKf for <notmuch@notmuchmail.org>;
\r
16 Fri, 23 Aug 2013 09:36:32 -0700 (PDT)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 6EDF7431FAE
\r
19 for <notmuch@notmuchmail.org>; Fri, 23 Aug 2013 09:36:32 -0700 (PDT)
\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)
\r
21 id 14F3910009D; Fri, 23 Aug 2013 19:36:25 +0300 (EEST)
\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
23 To: notmuch@notmuchmail.org
\r
24 Subject: [DRAFT PATCH] emacs: describe-prefix-bindings...
\r
25 Date: Fri, 23 Aug 2013 19:36:23 +0300
\r
26 Message-Id: <1377275783-16948-1-git-send-email-tomi.ollila@iki.fi>
\r
27 X-Mailer: git-send-email 1.8.0
\r
28 Cc: tomi.ollila@iki.fi
\r
29 X-BeenThere: notmuch@notmuchmail.org
\r
30 X-Mailman-Version: 2.1.13
\r
32 List-Id: "Use and development of the notmuch mail system."
\r
33 <notmuch.notmuchmail.org>
\r
34 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
35 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
36 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
37 List-Post: <mailto:notmuch@notmuchmail.org>
\r
38 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
39 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
40 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
41 X-List-Received-Date: Fri, 23 Aug 2013 16:36:37 -0000
\r
45 I plan to do `notmuch--describe-prefix-bindings' if there is support
\r
46 for this functionality (or no better solution exists -- I recall
\r
47 there is specific C functionality doing C-h handling...)
\r
50 emacs/notmuch-show.el | 2 ++
\r
51 emacs/notmuch.el | 1 +
\r
52 2 files changed, 3 insertions(+)
\r
54 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
55 index 82b70ba..6fd1f73 100644
\r
56 --- a/emacs/notmuch-show.el
\r
57 +++ b/emacs/notmuch-show.el
\r
58 @@ -1248,6 +1248,7 @@ reset based on the original query."
\r
59 (define-key map "t" 'notmuch-show-stash-to)
\r
60 (define-key map "l" 'notmuch-show-stash-mlarchive-link)
\r
61 (define-key map "L" 'notmuch-show-stash-mlarchive-link-and-go)
\r
62 + (define-key map "?" (lambda () (interactive) (describe-prefix-bindings)))
\r
64 "Submap for stash commands")
\r
65 (fset 'notmuch-show-stash-map notmuch-show-stash-map)
\r
66 @@ -1258,6 +1259,7 @@ reset based on the original query."
\r
67 (define-key map "v" 'notmuch-show-view-part)
\r
68 (define-key map "o" 'notmuch-show-interactively-view-part)
\r
69 (define-key map "|" 'notmuch-show-pipe-part)
\r
70 + (define-key map "?" (lambda () (interactive) (describe-prefix-bindings)))
\r
72 "Submap for part commands")
\r
73 (fset 'notmuch-show-part-map notmuch-show-part-map)
\r
74 diff --git a/emacs/notmuch.el b/emacs/notmuch.el
\r
75 index f3ce840..ac6a712 100644
\r
76 --- a/emacs/notmuch.el
\r
77 +++ b/emacs/notmuch.el
\r
78 @@ -245,6 +245,7 @@ For a mouse binding, return nil."
\r
79 (defvar notmuch-search-stash-map
\r
80 (let ((map (make-sparse-keymap)))
\r
81 (define-key map "i" 'notmuch-search-stash-thread-id)
\r
82 + (define-key map "?" (lambda () (interactive) (describe-prefix-bindings)))
\r
84 "Submap for stash commands")
\r
85 (fset 'notmuch-search-stash-map notmuch-search-stash-map)
\r