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 08470429E34
\r
6 for <notmuch@notmuchmail.org>; Fri, 8 Nov 2013 09:40:34 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 laTlFS4PFNjX for <notmuch@notmuchmail.org>;
\r
18 Fri, 8 Nov 2013 09:40:26 -0800 (PST)
\r
19 Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com
\r
20 [74.125.82.43]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
21 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
22 5F3F8431FC9 for <notmuch@notmuchmail.org>; Fri, 8 Nov 2013 09:40:26 -0800
\r
24 Received: by mail-wg0-f43.google.com with SMTP id b13so2281417wgh.22
\r
25 for <notmuch@notmuchmail.org>; Fri, 08 Nov 2013 09:40:25 -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=xDDQSNwLsLqTF5/Zqcw1bxW3Ho9rooKvpKamKJLI6xc=;
\r
29 b=cybXtYBOuFoE7gjH0KX9G+mXi9IM9u3duVkL/DDOjGMIixsv3RNPXSXYD24d94J7zp
\r
30 oJmniuIw3v86P6WLf8cxDn0fEP0UAiRKddudQ23yd8F/BwKTZImuszDwKn8COyNhkFhu
\r
31 xk1k5BrUpVpbAGzf9UIAUINYXk8LmeHD14Y/jhx2FNttlMgEZbkUfV+b7D72yZdWGH53
\r
32 6qYlZosvEkV1SdBHO3L4WEy/+XpMSuk4/uVmYHJPR5bsn0dNxiYPr2yC41h45d00DcV+
\r
33 PE+7NMfl6m2D82/A2lBn93u0EFgqWbmyaJiMJqCx2L0U+FgPoBCoYQtp+e6oqMJvPCMm
\r
35 X-Received: by 10.194.109.167 with SMTP id ht7mr8768631wjb.5.1383932424932;
\r
36 Fri, 08 Nov 2013 09:40:24 -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 c10sm7507475wie.11.2013.11.08.09.40.24
\r
39 for <multiple recipients>
\r
40 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
41 Fri, 08 Nov 2013 09:40:24 -0800 (PST)
\r
42 From: Mark Walters <markwalters1009@gmail.com>
\r
43 To: notmuch@notmuchmail.org
\r
44 Subject: [PATCH v3 1/7] emacs: help: check for nil key binding
\r
45 Date: Fri, 8 Nov 2013 17:40:13 +0000
\r
46 Message-Id: <1383932419-12533-2-git-send-email-markwalters1009@gmail.com>
\r
47 X-Mailer: git-send-email 1.7.9.1
\r
48 In-Reply-To: <1383932419-12533-1-git-send-email-markwalters1009@gmail.com>
\r
49 References: <1383932419-12533-1-git-send-email-markwalters1009@gmail.com>
\r
50 X-BeenThere: notmuch@notmuchmail.org
\r
51 X-Mailman-Version: 2.1.13
\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: Fri, 08 Nov 2013 17:40:34 -0000
\r
64 A standard way to unset a key binding is local-unset-key which is equivalent to
\r
65 (define-key (current-local-map) key nil)
\r
67 Currently notmuch-help gives an error and fails if a user has done this.
\r
69 To fix this we only add a help line if the binding is non-nil.
\r
71 emacs/notmuch-lib.el | 2 +-
\r
72 1 files changed, 1 insertions(+), 1 deletions(-)
\r
74 diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
\r
75 index 921ed20..ec5a2cb 100644
\r
76 --- a/emacs/notmuch-lib.el
\r
77 +++ b/emacs/notmuch-lib.el
\r
78 @@ -254,7 +254,7 @@ prefix argument. PREFIX and TAIL are used internally."
\r
80 (notmuch-describe-keymap
\r
81 binding ua-keys (notmuch-prefix-key-description key) tail)))
\r
84 (when (and ua-keys (symbolp binding)
\r
85 (get binding 'notmuch-prefix-doc))
\r
86 ;; Documentation for prefixed command
\r