[PATCH 4/4] Update NEWS for user.other_name
[notmuch-archives.git] / 78 / c8b7eab0ae07fd965dc05f89b7da828d69f403
1 Return-Path: <markwalters1009@gmail.com>\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 23ADD431FDD\r
6         for <notmuch@notmuchmail.org>; Tue, 12 Nov 2013 12:18:23 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.201\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
14         RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id arbVt+AX0V8a for <notmuch@notmuchmail.org>;\r
18         Tue, 12 Nov 2013 12:18:16 -0800 (PST)\r
19 Received: from mail-we0-f170.google.com (mail-we0-f170.google.com\r
20         [74.125.82.170]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id 4D18B431FDC\r
23         for <notmuch@notmuchmail.org>; Tue, 12 Nov 2013 12:18:16 -0800 (PST)\r
24 Received: by mail-we0-f170.google.com with SMTP id p61so567211wes.1\r
25         for <notmuch@notmuchmail.org>; Tue, 12 Nov 2013 12:18:15 -0800 (PST)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
27         h=from:to:cc:subject:date:message-id:in-reply-to:references;\r
28         bh=JBnMmkN3KUeENL0ZBaLCUIDQ0DGyk2erVCWDh8Sli+8=;\r
29         b=Gy5PQzyxpzb0WlFf7aW+mCt938JXpReLK2vFL8bGV4hUXLZyM8iuw2MQ1FWvSoahXx\r
30         c69qOO1ANFkKfk1nXa/GZfDbzE5YdVMJM10TqsxU41anJTytWgWypCUVhyPalILvZJ34\r
31         IO/D21VtD25xWLDSiidBtkYVbUhZMcPKpGJ0Bt58gpr0V22sGz7PTpQ54lkRcfKdCXG4\r
32         FvE9Pb4ZugRhmt5UXSeP+lWZjknMbHiRWNzGb8N5nxr01eDWFmh8un0oFhPhxvUqJT34\r
33         Jf9RILQScBdJrKMwdYPw0ef6QqCeoYSXJ915rPzX2Y+Zzg3ij5huGHH61QHNf2birwU/\r
34         t0zg==\r
35 X-Received: by 10.180.221.38 with SMTP id qb6mr17564618wic.8.1384287073156;\r
36         Tue, 12 Nov 2013 12:11:13 -0800 (PST)\r
37 Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
38         by mx.google.com with ESMTPSA id\r
39         ey4sm48137633wic.11.2013.11.12.12.11.12 for <multiple recipients>\r
40         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
41         Tue, 12 Nov 2013 12:11:12 -0800 (PST)\r
42 From: Mark Walters <markwalters1009@gmail.com>\r
43 To: notmuch@notmuchmail.org\r
44 Subject: [PATCH v4 5/7] emacs: help: add base-keymap\r
45 Date: Tue, 12 Nov 2013 20:10:57 +0000\r
46 Message-Id: <1384287059-3525-6-git-send-email-markwalters1009@gmail.com>\r
47 X-Mailer: git-send-email 1.7.9.1\r
48 In-Reply-To: <1384287059-3525-1-git-send-email-markwalters1009@gmail.com>\r
49 References: <1384287059-3525-1-git-send-email-markwalters1009@gmail.com>\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Tue, 12 Nov 2013 20:18:23 -0000\r
63 \r
64 To support key remapping in emacs help we need to know the base keymap\r
65 when looking at the remapping. keep track of this while we recurse\r
66 down the sub-keymaps in help.\r
67 ---\r
68  emacs/notmuch-lib.el |    6 +++---\r
69  1 files changed, 3 insertions(+), 3 deletions(-)\r
70 \r
71 diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el\r
72 index 33790e2..7b1fc33 100644\r
73 --- a/emacs/notmuch-lib.el\r
74 +++ b/emacs/notmuch-lib.el\r
75 @@ -261,7 +261,7 @@ It does not prepend if ACTUAL-KEY is already listed in TAIL."\r
76             tail)))\r
77      tail)\r
78  \r
79 -(defun notmuch-describe-keymap (keymap ua-keys &optional prefix tail)\r
80 +(defun notmuch-describe-keymap (keymap ua-keys base-keymap &optional prefix tail)\r
81    "Return a list of cons cells, each describing one binding in KEYMAP.\r
82  \r
83  Each cons cell consists of a string giving a human-readable\r
84 @@ -278,7 +278,7 @@ prefix argument.  PREFIX and TAIL are used internally."\r
85            ((keymapp binding)\r
86             (setq tail\r
87                   (notmuch-describe-keymap\r
88 -                  binding ua-keys (notmuch-prefix-key-description key) tail)))\r
89 +                  binding ua-keys base-keymap (notmuch-prefix-key-description key) tail)))\r
90            (binding\r
91             (setq tail (notmuch-describe-key (vector key) binding prefix ua-keys tail)))))\r
92     keymap)\r
93 @@ -293,7 +293,7 @@ prefix argument.  PREFIX and TAIL are used internally."\r
94                (let* ((keymap-name (substring doc (match-beginning 1) (match-end 1)))\r
95                       (keymap (symbol-value (intern keymap-name)))\r
96                       (ua-keys (where-is-internal 'universal-argument keymap t))\r
97 -                     (desc-alist (notmuch-describe-keymap keymap ua-keys))\r
98 +                     (desc-alist (notmuch-describe-keymap keymap ua-keys keymap))\r
99                       (desc-list (mapcar (lambda (arg) (concat (car arg) "\t" (cdr arg))) desc-alist)))\r
100                  (mapconcat #'identity desc-list "\n")))))\r
101         (setq doc (replace-match desc 1 1 doc)))\r
102 -- \r
103 1.7.9.1\r
104 \r