Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / 21 / 4c31d21b9ccbe181d5b1c95d3fbb270bd834f4
1 Return-Path: <dme@dme.org>\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 51FE5431FAF\r
6         for <notmuch@notmuchmail.org>; Mon, 16 Jan 2012 06:13:28 -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.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 zti1aEM0++W0 for <notmuch@notmuchmail.org>;\r
16         Mon, 16 Jan 2012 06:13:27 -0800 (PST)\r
17 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com\r
18         [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 9B576431FAE\r
21         for <notmuch@notmuchmail.org>; Mon, 16 Jan 2012 06:13:27 -0800 (PST)\r
22 Received: by wibhr12 with SMTP id hr12so2473473wib.26\r
23         for <notmuch@notmuchmail.org>; Mon, 16 Jan 2012 06:13:26 -0800 (PST)\r
24 Received: by 10.180.101.35 with SMTP id fd3mr20033108wib.22.1326723206352;\r
25         Mon, 16 Jan 2012 06:13:26 -0800 (PST)\r
26 Received: from hotblack-desiato.hh.sledj.net\r
27         (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25])\r
28         by mx.google.com with ESMTPS id h13sm22392053wbn.17.2012.01.16.06.13.24\r
29         (version=TLSv1/SSLv3 cipher=OTHER);\r
30         Mon, 16 Jan 2012 06:13:25 -0800 (PST)\r
31 Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)\r
32         id 82DF7A0397; Mon, 16 Jan 2012 14:13:23 +0000 (GMT)\r
33 From: David Edmondson <dme@dme.org>\r
34 To: notmuch@notmuchmail.org\r
35 Subject: [PATCH] emacs: Truncate lines and do not enable visual-line-mode in\r
36         notmuch-show buffers.\r
37 Date: Mon, 16 Jan 2012 14:13:22 +0000\r
38 Message-Id: <1326723202-4328-1-git-send-email-dme@dme.org>\r
39 X-Mailer: git-send-email 1.7.7.3\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Mon, 16 Jan 2012 14:13:28 -0000\r
53 \r
54 Enable the truncation of lines in `notmuch-show-mode' to avoid visual\r
55 noise caused by the wrapping of the header lines.\r
56 \r
57 Don't enable `visual-line-mode' because it disables line truncation.\r
58 \r
59 The benefits of `visual-line-mode' were that it wrapped long lines\r
60 in received messages. With `notmuch-wash-wrap-long-lines' now default\r
61 behaviour, this is no longer required.\r
62 ---\r
63  emacs/notmuch-show.el |    6 ++----\r
64  1 files changed, 2 insertions(+), 4 deletions(-)\r
65 \r
66 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
67 index 1a250a3..797f94b 100644\r
68 --- a/emacs/notmuch-show.el\r
69 +++ b/emacs/notmuch-show.el\r
70 @@ -873,9 +873,6 @@ buffer."\r
71  \r
72        (jit-lock-register #'notmuch-show-buttonise-links)\r
73  \r
74 -      ;; Act on visual lines rather than logical lines.\r
75 -      (visual-line-mode t)\r
76 -\r
77        (run-hooks 'notmuch-show-hook))\r
78  \r
79      ;; Move straight to the first open message\r
80 @@ -987,7 +984,8 @@ All currently available key bindings:\r
81    (use-local-map notmuch-show-mode-map)\r
82    (setq major-mode 'notmuch-show-mode\r
83         mode-name "notmuch-show")\r
84 -  (setq buffer-read-only t))\r
85 +  (setq buffer-read-only t\r
86 +       truncate-lines t))\r
87  \r
88  (defun notmuch-show-move-to-message-top ()\r
89    (goto-char (notmuch-show-message-top)))\r
90 -- \r
91 1.7.7.3\r
92 \r