Re: notmuch-emacs: svg icon cannot be rendered by emacs-mac

Subject: Re: notmuch-emacs: svg icon cannot be rendered by emacs-mac

Date: Thu, 13 Jan 2022 19:43:38 +0200

To: LdBeth, Notmuch Mailing List


From: Tomi Ollila

On Wed, Jan 12 2022, LdBeth wrote:

> The svg icons included in notmuch-emacs cannot be correctly rendered
> by emacs-mac (,
> The empty SVG created by `svg-image' function from svg.el has XML
> attribute `xmlns' like:
> "<svg width=\"50\" height=\"50\" version=\"1.1\" xmlns=\"\" xmlns:xlink=\"\">
> </svg>"
> which is missing from SVG icons defined in `notmuch-tag.el'

First, IMO mac svg renderer is lame not to be lenient enough 
(and dont follow Postel's Law...) to just render those... anyway

... probably just adding xmlns=\"\"
to the svg strings in notmuch-tag.el could work. 
This just needs someone to test it. Adding the code is pretty easy :D,
but either someone w/ mac should do and test the change -- and send
patch email -- or definite information what works so someone else(tm)
(or her friend!) can do the change w/o testing :D

This is very easy to test, in started emacs first load notmuch, then
load notmuch-tag.el into new buffer, edit suitable svg functions, then
M-x eval-buffer (all these before executing any notmuch functions as
the first evaluation of those functions may be the only time those 
are called...


PS: the new notmuch-logo.svg has the above xmlns in its implementation so
that should work :D

> Thanks.
> --
notmuch mailing list --
To unsubscribe send an email to