Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / c9 / 8df346eba6ace7dbc8fa15094c9bc13f374d98
1 Return-Path: <amthrax@awakening.csail.mit.edu>\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 59228431FAF\r
6         for <notmuch@notmuchmail.org>; Thu, 15 Mar 2012 20:13:32 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\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 5VONQQgdxtMo for <notmuch@notmuchmail.org>;\r
16         Thu, 15 Mar 2012 20:13:31 -0700 (PDT)\r
17 Received: from dmz-mailsec-scanner-6.mit.edu (DMZ-MAILSEC-SCANNER-6.MIT.EDU\r
18         [18.7.68.35])\r
19         by olra.theworths.org (Postfix) with ESMTP id BDE6A431FAE\r
20         for <notmuch@notmuchmail.org>; Thu, 15 Mar 2012 20:13:31 -0700 (PDT)\r
21 X-AuditID: 12074423-b7f9c6d0000008c3-7c-4f62afdb4b15\r
22 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
23         by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id 46.19.02243.BDFA26F4; Thu, 15 Mar 2012 23:13:31 -0400 (EDT)\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
26         by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id q2G3DU9P022629; \r
27         Thu, 15 Mar 2012 23:13:30 -0400\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
29         (authenticated bits=0)\r
30         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
31         by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q2G3DTxP027209\r
32         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
33         Thu, 15 Mar 2012 23:13:30 -0400 (EDT)\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)\r
35         (envelope-from <amthrax@awakening.csail.mit.edu>)\r
36         id 1S8Nbd-0001y5-Bz; Thu, 15 Mar 2012 23:13:29 -0400\r
37 From: Austin Clements <amdragon@MIT.EDU>\r
38 To: notmuch@notmuchmail.org\r
39 Subject: [PATCH] emacs: Fix search tab completion in terminals\r
40 Date: Thu, 15 Mar 2012 23:13:12 -0400\r
41 Message-Id: <1331867592-7535-1-git-send-email-amdragon@mit.edu>\r
42 X-Mailer: git-send-email 1.7.7.2\r
43 X-Brightmail-Tracker:\r
44  H4sIAAAAAAAAA+NgFprNIsWRmVeSWpSXmKPExsUixG6nrnt7fZK/wZHV/BbXb85kdmD0eLbq\r
45         FnMAYxSXTUpqTmZZapG+XQJXxr5te1gLbnBVLL3fzdjAeIiji5GTQ0LARGLP5GnsELaYxIV7\r
46         69m6GLk4hAT2MUpsOrSKEcLZwCjxomEPVOYkk0TX13WsEM5mRolPKx4xgvSzCWhIbNu/HMwW\r
47         EZCW2Hl3NlARBwezgJrEny4VkLCwgJ3Eok2nwdaxCKhKzL3SCVbOK2Av8e76cagzFCRmTLnC\r
48         OIGRdwEjwypG2ZTcKt3cxMyc4tRk3eLkxLy81CJdM73czBK91JTSTYzgMHBR3sH456DSIUYB\r
49         DkYlHt5V/En+QqyJZcWVuYcYJTmYlER5jZYBhfiS8lMqMxKLM+KLSnNSiw8xSnAwK4nwZhgk\r
50         +gvxpiRWVqUW5cOkpDlYlMR5NbTe+QkJpCeWpGanphakFsFkZTg4lCR4164DGipYlJqeWpGW\r
51         mVOCkGbi4AQZzgM03BwYN0K8xQWJucWZ6RD5U4yKUuK89iAJAZBERmkeXC8sTl8xigO9Iszr\r
52         AlLFA4xxuO5XQIOZgAaXfIsDGVySiJCSamCMzvgSsO6qtobv1Ug1tmVc5bnuIj8+zvt6SEyo\r
53         2ejj8228YhzrlwTNFNq0vtN+yRsZ4zjzQ9M/XdU8+nTuvu9OYdZ8E4vuPz1YNeX5Bzb7B0ci\r
54         n2v2Wy0M0Et8pB8/z2a6J491rWZwBk9ybsqVQ2buk3T6eNOmm85apxl8f9rjVRte3lT+4Miv\r
55         xFKckWioxVxUnAgA+Y/DOa4CAAA=\r
56 X-BeenThere: notmuch@notmuchmail.org\r
57 X-Mailman-Version: 2.1.13\r
58 Precedence: list\r
59 List-Id: "Use and development of the notmuch mail system."\r
60         <notmuch.notmuchmail.org>\r
61 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
63 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
64 List-Post: <mailto:notmuch@notmuchmail.org>\r
65 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
66 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
67         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
68 X-List-Received-Date: Fri, 16 Mar 2012 03:13:32 -0000\r
69 \r
70 In X, Emacs distinguishes the tab key, which produces a 'tab event;\r
71 from C-i, which produces a ?\t event.  However, in a terminal, these\r
72 are indistinguishable and only produce a ?\t event.  In order to\r
73 simplify things, Emacs automatically translates from 'tab to ?\t (see\r
74 "Function key translations" in M-x describe-bindings), so functions\r
75 only need to be bound to ?\t to work in all situations.\r
76 \r
77 Previously, the search tab completion code usedq (kbd "<tab>"), which\r
78 produced the event sequence [tab], which only matched the 'tab event\r
79 and hence only worked in X.  This patch changes it to (kbd "TAB"),\r
80 which matches the general ?\t event and works in all situations.\r
81 ---\r
82  emacs/notmuch.el |    2 +-\r
83  1 files changed, 1 insertions(+), 1 deletions(-)\r
84 \r
85 diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
86 index 99e0c93..f0afa07 100644\r
87 --- a/emacs/notmuch.el\r
88 +++ b/emacs/notmuch.el\r
89 @@ -962,7 +962,7 @@ PROMPT is the string to prompt with."\r
90                                          completions)))\r
91                (t (list string)))))))\r
92        ;; this was simpler than convincing completing-read to accept spaces:\r
93 -      (define-key keymap (kbd "<tab>") 'minibuffer-complete)\r
94 +      (define-key keymap (kbd "TAB") 'minibuffer-complete)\r
95        (let ((history-delete-duplicates t))\r
96         (read-from-minibuffer prompt nil keymap nil\r
97                               'notmuch-search-history nil nil)))))\r
98 -- \r
99 1.7.7.2\r
100 \r