[PATCH 1/7] emacs: Centralize notmuch command error handling
[notmuch-archives.git] / ab / f26d24441b8844a6a57fdc8d648806bd41396e
1 Return-Path: <aneesh.kumar@linux.vnet.ibm.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 1A766431FBC\r
6         for <notmuch@notmuchmail.org>; Mon, 30 Nov 2009 08:41:13 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id u3ZupM1ixBCU for <notmuch@notmuchmail.org>;\r
11         Mon, 30 Nov 2009 08:41:12 -0800 (PST)\r
12 Received: from e23smtp08.au.ibm.com (e23smtp08.au.ibm.com [202.81.31.141])\r
13         by olra.theworths.org (Postfix) with ESMTP id 07A23431FAE\r
14         for <notmuch@notmuchmail.org>; Mon, 30 Nov 2009 08:41:11 -0800 (PST)\r
15 Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [202.81.31.246])\r
16         by e23smtp08.au.ibm.com (8.14.3/8.13.1) with ESMTP id nB13f386012927\r
17         for <notmuch@notmuchmail.org>; Tue, 1 Dec 2009 14:41:03 +1100\r
18 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96])\r
19         by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id\r
20         nAUGbTT71388602\r
21         for <notmuch@notmuchmail.org>; Tue, 1 Dec 2009 03:37:29 +1100\r
22 Received: from d23av01.au.ibm.com (loopback [127.0.0.1])\r
23         by d23av01.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id\r
24         nAUGf2WY023452\r
25         for <notmuch@notmuchmail.org>; Tue, 1 Dec 2009 03:41:03 +1100\r
26 Received: from skywalker.linux.vnet.ibm.com ([9.124.213.53])\r
27         by d23av01.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id\r
28         nAUGexw5023431; Tue, 1 Dec 2009 03:41:01 +1100\r
29 From: "Aneesh Kumar K. V" <aneesh.kumar@linux.vnet.ibm.com>\r
30 To: Kan-Ru Chen <kanru@kanru.info>, notmuch@notmuchmail.org\r
31 In-Reply-To: <1259592639-15593-1-git-send-email-kanru@kanru.info>\r
32 References: <1259592639-15593-1-git-send-email-kanru@kanru.info>\r
33 Date: Mon, 30 Nov 2009 22:10:59 +0530\r
34 Message-ID: <877ht8rmn8.fsf@linux.vnet.ibm.com>\r
35 MIME-Version: 1.0\r
36 Content-Type: text/plain; charset=us-ascii\r
37 Subject: Re: [notmuch] [PATCH] notmuch.el: Add face support to message\r
38  summary        and subject lines.\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.12\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43         <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Mon, 30 Nov 2009 16:41:13 -0000\r
52 \r
53 On Mon, 30 Nov 2009 22:50:39 +0800, Kan-Ru Chen <kanru@kanru.info> wrote:\r
54 > Remove the underline of both message summary and subject lines.\r
55 > Message summary still defaults to reverse-video, use customize to\r
56 > change it to whatever you like.\r
57\r
58 > Signed-off-by: Kan-Ru Chen <kanru@kanru.info>\r
59 > ---\r
60 >  notmuch.el |   20 ++++++++++++++++----\r
61 >  1 files changed, 16 insertions(+), 4 deletions(-)\r
62\r
63 > diff --git a/notmuch.el b/notmuch.el\r
64 > index 65473ba..730538c 100644\r
65 > --- a/notmuch.el\r
66 > +++ b/notmuch.el\r
67 > @@ -714,9 +714,8 @@ which this thread was originally shown."\r
68 >    (let ((beg (point-marker))\r
69 >          (btn nil))\r
70 >      (end-of-line)\r
71 > -    ; Inverse video for subject\r
72 > -    (overlay-put (make-overlay beg (point)) 'face '(:inverse-video t))\r
73 > -    (setq btn (make-button beg (point) :type 'notmuch-button-body-toggle-type))\r
74 > +    (setq btn (make-button beg (point) :type 'notmuch-button-body-toggle-type\r
75 > +                           'face 'notmuch-show-message-summary-face))\r
76 >      (forward-line 1)\r
77 >      (end-of-line)\r
78 >      (let ((beg-hidden (point-marker)))\r
79 > @@ -739,7 +738,8 @@ which this thread was originally shown."\r
80 >            (forward-line)\r
81 >            (make-button (line-beginning-position) (line-end-position)\r
82 >                          'invisibility-spec (cons invis-spec t)\r
83 > -                        :type 'notmuch-button-headers-toggle-type))\r
84 > +                        :type 'notmuch-button-headers-toggle-type\r
85 > +                        'face 'notmuch-show-message-headers-face))\r
86 >          (goto-char end)\r
87 >          (insert "\n")\r
88 >       (set-marker beg nil)\r
89 > @@ -959,6 +959,18 @@ thread from that buffer can be show when done with this one)."\r
90 >    "Notmuch search mode face used to highligh tags."\r
91 >    :group 'notmuch)\r
92\r
93 > +(defface notmuch-show-message-summary-face\r
94 > +  '((default\r
95 > +    (:bold t :inverse-video t)))\r
96 > +  "Notmuch show mode face used to highlight summary line."\r
97 > +  :group 'notmuch)\r
98 > +\r
99 > +(defface notmuch-show-message-headers-face\r
100 > +  '((default\r
101 > +     (:bold t)))\r
102 > +  "Notmuch show mode face used to highlight header lines."\r
103 > +  :group 'notmuch)\r
104 > +\r
105 >  (defvar notmuch-tag-face-alist nil\r
106 >    "List containing the tag list that need to be highlighed")\r
107\r
108 \r
109 The subject line is already have a font face value attached.\r
110 message-header-name to show the name of the header and\r
111 message-header-subject to show the subject details.\r
112 \r
113 -aneesh      \r