Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / 6a / a8b3c9b48d7584d411beb1ae8c8b105e082e8b
1 Return-Path: <sojkam1@fel.cvut.cz>\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 32024431FBD\r
6         for <notmuch@notmuchmail.org>; Tue, 14 Feb 2012 02:24:35 -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: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] 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 AOlpawa2db-K for <notmuch@notmuchmail.org>;\r
16         Tue, 14 Feb 2012 02:24:34 -0800 (PST)\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
18         by olra.theworths.org (Postfix) with ESMTP id 60A88431FBC\r
19         for <notmuch@notmuchmail.org>; Tue, 14 Feb 2012 02:24:34 -0800 (PST)\r
20 Received: from localhost (unknown [192.168.200.4])\r
21         by max.feld.cvut.cz (Postfix) with ESMTP id 9BDA619F3396;\r
22         Tue, 14 Feb 2012 11:24:33 +0100 (CET)\r
23 X-Virus-Scanned: IMAP AMAVIS\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])\r
25         by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
26         port 10044)\r
27         with ESMTP id HnVfJXc53yqW; Tue, 14 Feb 2012 11:24:29 +0100 (CET)\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
29         by max.feld.cvut.cz (Postfix) with ESMTP id 6E5DD3CFE77;\r
30         Tue, 14 Feb 2012 11:24:29 +0100 (CET)\r
31 Received: from steelpick.2x.cz (unknown [141.76.49.23])\r
32         (Authenticated sender: sojkam1)\r
33         by imap.feld.cvut.cz (Postfix) with ESMTPSA id 64BB3660968;\r
34         Tue, 14 Feb 2012 11:24:29 +0100 (CET)\r
35 Received: from wsh by steelpick.2x.cz with local (Exim 4.77)\r
36         (envelope-from <sojkam1@fel.cvut.cz>)\r
37         id 1RxFYj-0006i3-4A; Tue, 14 Feb 2012 11:24:29 +0100\r
38 From: Michal Sojka <sojka@os.inf.tu-dresden.de>\r
39 To: notmuch@notmuchmail.org\r
40 Subject: [PATCH] emacs: Fix display of highlighted line in notmuch-show\r
41 Date: Tue, 14 Feb 2012 11:24:16 +0100\r
42 Message-Id: <1329215056-25753-1-git-send-email-sojka@os.inf.tu-dresden.de>\r
43 X-Mailer: git-send-email 1.7.7.3\r
44 Cc: Michal Sojka <sojka@os.inf.tu-dresden.de>\r
45 X-BeenThere: notmuch@notmuchmail.org\r
46 X-Mailman-Version: 2.1.13\r
47 Precedence: list\r
48 List-Id: "Use and development of the notmuch mail system."\r
49         <notmuch.notmuchmail.org>\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
53 List-Post: <mailto:notmuch@notmuchmail.org>\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
57 X-List-Received-Date: Tue, 14 Feb 2012 10:24:35 -0000\r
58 \r
59 When notmuch-search-line-faces is used to set background color in search\r
60 results, the highlight of the current line is not always displayed\r
61 correctly. This patch fixes that by increasing the priority property of\r
62 the highlight overlay.\r
63 ---\r
64  emacs/notmuch.el |   15 +++++++++++----\r
65  1 files changed, 11 insertions(+), 4 deletions(-)\r
66 \r
67 diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
68 index 5b4f1c5..f851c6f 100644\r
69 --- a/emacs/notmuch.el\r
70 +++ b/emacs/notmuch.el\r
71 @@ -249,10 +249,17 @@ For a mouse binding, return nil."\r
72        (set-buffer-modified-p nil)\r
73        (view-buffer (current-buffer) 'kill-buffer-if-not-modified))))\r
74  \r
75 -(defcustom notmuch-search-hook '(hl-line-mode)\r
76 +(require 'hl-line)\r
77 +\r
78 +(defun notmuch-hl-line-mode ()\r
79 +  (prog1 (hl-line-mode)\r
80 +    (when hl-line-overlay\r
81 +      (overlay-put hl-line-overlay 'priority 1))))\r
82 +\r
83 +(defcustom notmuch-search-hook '(notmuch-hl-line-mode)\r
84    "List of functions to call when notmuch displays the search results."\r
85    :type 'hook\r
86 -  :options '(hl-line-mode)\r
87 +  :options '(notmuch-hl-line-mode)\r
88    :group 'notmuch-search\r
89    :group 'notmuch-hooks)\r
90  \r
91 @@ -567,7 +574,7 @@ a list of strings of the form \"+TAG\" or \"-TAG\".\r
92  the messages that are about to be tagged"\r
93  \r
94    :type 'hook\r
95 -  :options '(hl-line-mode)\r
96 +  :options '(notmuch-hl-line-mode)\r
97    :group 'notmuch-hooks)\r
98  \r
99  (defcustom notmuch-after-tag-hook nil\r
100 @@ -578,7 +585,7 @@ a list of strings of the form \"+TAG\" or \"-TAG\".\r
101  'query' will be a string containing the search query that determines\r
102  the messages that were tagged"\r
103    :type 'hook\r
104 -  :options '(hl-line-mode)\r
105 +  :options '(notmuch-hl-line-mode)\r
106    :group 'notmuch-hooks)\r
107  \r
108  (defun notmuch-search-set-tags (tags)\r
109 -- \r
110 1.7.7.3\r
111 \r