From: Tomi Ollila <tomi.ollila@iki.fi>
To: Austin Clements <amdragon@MIT.EDU>,
Damien Cassou <damien.cassou@gmail.com>,
notmuch mailing list <notmuch@notmuchmail.org>
Subject: Re: [PATCH 3/4] emacs: possibility to customize the rendering of tags
Date: Wed, 23 Jan 2013 04:15:42 +0200 [thread overview]
Message-ID: <m24ni8hcfl.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <87mww0da71.fsf@awakening.csail.mit.edu>
On Wed, Jan 23 2013, Austin Clements <amdragon@MIT.EDU> wrote:
> On Fri, 18 Jan 2013, Damien Cassou <damien.cassou@gmail.com> wrote:
>
>> + `(("unread"
>> + (:propertize "unread" face
>> + (:Foreground "red")))
>> + ("flagged"
>> + (:propertize "flagged" display
>> + (image :type svg :file
>> + ,(expand-file-name
>> + "resources/star.svg"
>> + (file-name-directory
>> + (or
>> + (locate-library "notmuch-tagger")
>> + (buffer-file-name))))
>
> Interesting. Is this a standard way to locate resources? (I've never
> had need to.)
>
> Since there are other icons here as well, perhaps the resources
> directory should be bound to a global variable so it's easy to construct
> other standard notmuch icon names? You capture this in a function in
> patch 4, but that function doesn't obviously accomplish anything a
> simple variable wouldn't.
I was thinking this too. M-x apropos RET -path RET (apropos "-path")
outputs (at least) 2 symbols that are relevant here:
image-load-path
Variable: List of locations in which to search for image files.
Properties: standard-value custom-type custom-requests
variable-documentation
and
image-load-path-for-library
Function: Return a suitable search path for images used by LIBRARY.
(if the second were used I'd suggest to use 'notmuch' instead of
'notmuch-tagger' -- just to support me who just installs notmuch.elc
which is done by concatenating all notmuch .el files together to one
notmuch.el file which is then byte-compiled :D)
> Another possibility is that these icons could be included directly in
> the Elisp source, probably as simplified SVGs (your SVGs look like they
> could be cut down to 3 or 4 lines of XML easily) or as XPMs. Besides
> skirting issues with resource location, this would make it trivial to
> alter their colors based on user preferences.
I also had the same 2 things in mind, simplify SVGs and possibly include
that directly in the source...
Tomi
next prev parent reply other threads:[~2013-01-23 2:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-18 16:03 emacs: Customize how each tag is displayed Damien Cassou
2013-01-18 16:03 ` [PATCH 1/4] emacs: Add notmuch-intersperse to notmuch-lib/ Damien Cassou
2013-01-18 16:03 ` [PATCH 2/4] emacs: pictures that might be used as icons for tags Damien Cassou
2013-01-18 16:03 ` [PATCH 3/4] emacs: possibility to customize the rendering of tags Damien Cassou
2013-01-23 0:17 ` Austin Clements
2013-01-23 2:15 ` Tomi Ollila [this message]
2013-01-18 16:03 ` [PATCH 4/4] emacs: provide convenience functions for notmuch-tagger configuration Damien Cassou
2013-01-23 0:24 ` emacs: Customize how each tag is displayed Austin Clements
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m24ni8hcfl.fsf@guru.guru-group.fi \
--to=tomi.ollila@iki.fi \
--cc=amdragon@MIT.EDU \
--cc=damien.cassou@gmail.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).