From: Tomi Ollila Date: Fri, 23 Aug 2013 16:36:23 +0000 (+0300) Subject: [DRAFT PATCH] emacs: describe-prefix-bindings... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dcf1a6c0d0d3900dbd3f893d7bd1b287d092d05a;p=notmuch-archives.git [DRAFT PATCH] emacs: describe-prefix-bindings... --- diff --git a/73/05866f5b914d8f6e0641a1c70ff413d111a24b b/73/05866f5b914d8f6e0641a1c70ff413d111a24b new file mode 100644 index 000000000..9afea469d --- /dev/null +++ b/73/05866f5b914d8f6e0641a1c70ff413d111a24b @@ -0,0 +1,87 @@ +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 49C49431FCB + for ; Fri, 23 Aug 2013 09:36:37 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + 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 4Wjck3v32LKf for ; + Fri, 23 Aug 2013 09:36:32 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by olra.theworths.org (Postfix) with ESMTP id 6EDF7431FAE + for ; Fri, 23 Aug 2013 09:36:32 -0700 (PDT) +Received: by guru.guru-group.fi (Postfix, from userid 501) + id 14F3910009D; Fri, 23 Aug 2013 19:36:25 +0300 (EEST) +From: Tomi Ollila +To: notmuch@notmuchmail.org +Subject: [DRAFT PATCH] emacs: describe-prefix-bindings... +Date: Fri, 23 Aug 2013 19:36:23 +0300 +Message-Id: <1377275783-16948-1-git-send-email-tomi.ollila@iki.fi> +X-Mailer: git-send-email 1.8.0 +Cc: tomi.ollila@iki.fi +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: Fri, 23 Aug 2013 16:36:37 -0000 + +--- + +I plan to do `notmuch--describe-prefix-bindings' if there is support +for this functionality (or no better solution exists -- I recall +there is specific C functionality doing C-h handling...) + + + emacs/notmuch-show.el | 2 ++ + emacs/notmuch.el | 1 + + 2 files changed, 3 insertions(+) + +diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el +index 82b70ba..6fd1f73 100644 +--- a/emacs/notmuch-show.el ++++ b/emacs/notmuch-show.el +@@ -1248,6 +1248,7 @@ reset based on the original query." + (define-key map "t" 'notmuch-show-stash-to) + (define-key map "l" 'notmuch-show-stash-mlarchive-link) + (define-key map "L" 'notmuch-show-stash-mlarchive-link-and-go) ++ (define-key map "?" (lambda () (interactive) (describe-prefix-bindings))) + map) + "Submap for stash commands") + (fset 'notmuch-show-stash-map notmuch-show-stash-map) +@@ -1258,6 +1259,7 @@ reset based on the original query." + (define-key map "v" 'notmuch-show-view-part) + (define-key map "o" 'notmuch-show-interactively-view-part) + (define-key map "|" 'notmuch-show-pipe-part) ++ (define-key map "?" (lambda () (interactive) (describe-prefix-bindings))) + map) + "Submap for part commands") + (fset 'notmuch-show-part-map notmuch-show-part-map) +diff --git a/emacs/notmuch.el b/emacs/notmuch.el +index f3ce840..ac6a712 100644 +--- a/emacs/notmuch.el ++++ b/emacs/notmuch.el +@@ -245,6 +245,7 @@ For a mouse binding, return nil." + (defvar notmuch-search-stash-map + (let ((map (make-sparse-keymap))) + (define-key map "i" 'notmuch-search-stash-thread-id) ++ (define-key map "?" (lambda () (interactive) (describe-prefix-bindings))) + map) + "Submap for stash commands") + (fset 'notmuch-search-stash-map notmuch-search-stash-map) +-- +1.8.0