Re: [PATCH] create .mailmap file (for git shortlog/blame)
[notmuch-archives.git] / 74 / a910db2e610f1c1ab05d627f5f190b563adb91
1 Return-Path: <tomi.ollila@iki.fi>\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 3A548431FC4\r
6         for <notmuch@notmuchmail.org>; Tue, 22 Jan 2013 18:15:54 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 nX94-MfnY3Kc for <notmuch@notmuchmail.org>;\r
16         Tue, 22 Jan 2013 18:15:53 -0800 (PST)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id 44FDF431FC0\r
19         for <notmuch@notmuchmail.org>; Tue, 22 Jan 2013 18:15:53 -0800 (PST)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id 889C3100086;\r
22         Wed, 23 Jan 2013 04:15:42 +0200 (EET)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: Austin Clements <amdragon@MIT.EDU>,\r
25  Damien Cassou <damien.cassou@gmail.com>,\r
26         notmuch mailing list <notmuch@notmuchmail.org>\r
27 Subject: Re: [PATCH 3/4] emacs: possibility to customize the rendering of tags\r
28 In-Reply-To: <87mww0da71.fsf@awakening.csail.mit.edu>\r
29 References: <1358525039-13569-1-git-send-email-damien.cassou@gmail.com>\r
30         <1358525039-13569-4-git-send-email-damien.cassou@gmail.com>\r
31         <87mww0da71.fsf@awakening.csail.mit.edu>\r
32 User-Agent: Notmuch/0.15+11~ge1e719d (http://notmuchmail.org) Emacs/24.2.1\r
33         (x86_64-unknown-linux-gnu)\r
34 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
35         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
36         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
37 Date: Wed, 23 Jan 2013 04:15:42 +0200\r
38 Message-ID: <m24ni8hcfl.fsf@guru.guru-group.fi>\r
39 MIME-Version: 1.0\r
40 Content-Type: text/plain\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Wed, 23 Jan 2013 02:15:54 -0000\r
54 \r
55 On Wed, Jan 23 2013, Austin Clements <amdragon@MIT.EDU> wrote:\r
56 \r
57 > On Fri, 18 Jan 2013, Damien Cassou <damien.cassou@gmail.com> wrote:\r
58 >\r
59 >> +  `(("unread"\r
60 >> +     (:propertize "unread" face\r
61 >> +                  (:Foreground "red")))\r
62 >> +    ("flagged"\r
63 >> +     (:propertize "flagged" display\r
64 >> +                  (image :type svg :file\r
65 >> +                         ,(expand-file-name\r
66 >> +                           "resources/star.svg"\r
67 >> +                           (file-name-directory\r
68 >> +                            (or\r
69 >> +                             (locate-library "notmuch-tagger")\r
70 >> +                             (buffer-file-name))))\r
71 >\r
72 > Interesting.  Is this a standard way to locate resources?  (I've never\r
73 > had need to.)\r
74 >\r
75 > Since there are other icons here as well, perhaps the resources\r
76 > directory should be bound to a global variable so it's easy to construct\r
77 > other standard notmuch icon names?  You capture this in a function in\r
78 > patch 4, but that function doesn't obviously accomplish anything a\r
79 > simple variable wouldn't.\r
80 \r
81 I was thinking this too. M-x apropos RET -path RET (apropos "-path")\r
82 outputs (at least) 2 symbols that are relevant here:\r
83 \r
84 image-load-path\r
85   Variable: List of locations in which to search for image files.\r
86   Properties: standard-value custom-type custom-requests\r
87               variable-documentation\r
88 and\r
89 \r
90 image-load-path-for-library\r
91   Function: Return a suitable search path for images used by LIBRARY.\r
92 \r
93 (if the second were used I'd suggest to use 'notmuch' instead of\r
94 'notmuch-tagger' -- just to support me who just installs notmuch.elc\r
95 which is done by concatenating all notmuch .el files together to one\r
96 notmuch.el file which is then byte-compiled :D)\r
97 \r
98 > Another possibility is that these icons could be included directly in\r
99 > the Elisp source, probably as simplified SVGs (your SVGs look like they\r
100 > could be cut down to 3 or 4 lines of XML easily) or as XPMs.  Besides\r
101 > skirting issues with resource location, this would make it trivial to\r
102 > alter their colors based on user preferences.\r
103 \r
104 I also had the same 2 things in mind, simplify SVGs and possibly include\r
105 that directly in the source...\r
106 \r
107 \r
108 Tomi\r