From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UDHPJ9Vk4GGTIQEAgWs5BA (envelope-from ) for ; Thu, 13 Jan 2022 18:43:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IOZ0INVk4GE5bAAAG6o9tA (envelope-from ) for ; Thu, 13 Jan 2022 18:43:49 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4DB261DB24 for ; Thu, 13 Jan 2022 18:43:49 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 559285F720; Thu, 13 Jan 2022 17:43:44 +0000 (UTC) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 4A3B55F70A for ; Thu, 13 Jan 2022 17:43:41 +0000 (UTC) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 10DB81B0004B; Thu, 13 Jan 2022 19:43:40 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1642095820; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rhNUhnEngPHW39l7QnNf5NgRrMeQNN3AP1pT8WrpNFQ=; b=tcTBPBhYI8PHOe4pufZ53Pu6A0b0NcwCbyvN2CrRIfXO+53ma3YkHeeo9xU8udzzYUisba Pw5y4RReD6zFQGWedhnwNErq0KF+vk94oSmmeUYyHlGHlPdtjFDOUjPuSNwsQIzH6PkDCt MrvYUOEnH7h1N0STeb3vb1MPQD6X3w9oiutpviHtba98AnmN115ZOvsjSzN8c/C1dtTmRK SklHGFsxFVO+GnVhs88Xo56YqK1U2TQApK2xgKmDKMISVm8le+ng94EVsXYxBMVowTREYb egv53nWb5aeee1pIav2nl0Jg+cPMr+Ka8yI/qS4euTyGMIlTIKjgkA9oXrHLjQ== From: Tomi Ollila To: LdBeth , Notmuch Mailing List Subject: Re: notmuch-emacs: svg icon cannot be rendered by emacs-mac In-Reply-To: References: User-Agent: Notmuch/0.33+54~gcaf4513 (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1642095820; a=rsa-sha256; cv=none; b=j9CC5GzxdXs3aAqoiyT0O3gzPP1nI7YI94bj/egfC8XP3JB1J7rJ486dpqYta5Uo21GnU8 8wNt97P+O4ScFfHN8NiWD0RMAcR51pzp86X3hFumE87k+yr6RqMKmEz+q7P5k6EGkG8cI9 UQVv+9I2dnyaygiqq6Bui1ekC37iWBXULu64oSFe/TFVQ55fKm694RR/QpW9e8uKOxMzDf QFWX5ymcnLI0w0cdoa6At6E1bKMe8sngDDbQXSRYEAzYmQdNiNA7JMX34Dc6sqA/e9loRN mhSSmQ/JmNwLOKLBV5BF8F6K/TC45tszaA5ZbOooF0oUHdAPvIUpJl9N+MwcCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1642095820; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rhNUhnEngPHW39l7QnNf5NgRrMeQNN3AP1pT8WrpNFQ=; b=nA6Mxq8N5OKlgHZCTIOnOdl+6rch7bpLVLxBr1vHd1+UpC2p6WLJ7a1WoA5FJmpNzvUSja vUXmaHNKNiHz3DZo/xW591apy0JdzywI0FkST9+us+GeTNizvNUza+bPhEmroCg3FfvFHO vxeZ6Wt3+cgnbkQUVn5jCJGu47feiZOqY3lG2Y8ffBdI9oArmL/oNggJFdGvals8GGSot4 yI6crn/654X9+nEFBU2W2/DJ5LxoQIkB5JXunbEv7SE340pQb0kAWaB9FNh8AcIVBnW18K kIR1lR/tMmiz/nEpoPGv+QcfPQ5GlLl+eojZuxDkfd28PCah13wcmrfx4SFtjg== Message-ID-Hash: NFI37UBX3IBMXVJGDABMYGJFK7RRXT4G X-Message-ID-Hash: NFI37UBX3IBMXVJGDABMYGJFK7RRXT4G X-MailFrom: tomi.ollila@iki.fi X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642095829; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Cb1ZbcsFDwZEhvbCkPNXvuN32N2sgf2nGX/BcB4NHQ0=; b=n49/7nQJm3vNveMZ/bh4DtLMnusNfyGID9Zv20UYO8+ssJJzA5rqJjVl+E/S4Dq3cxLsR+ ZjeorpIovOJXPqQ3+WTuZVvrV6UE+PMTUYworn7/MFpZRlfzzq3LQEM4czg80Drb/NkEFm I7hdWC878MOkPVYiPOdcJB2W1eVNc7D4op05c8oLyvN3JW2BiycnTMkAMENLKVttsFLQKp 3aElg6qqUdwzQNjlIZLWUPp1AsBevG2LSfARl2gP4JL56QgScdLQ0WE374zNgon+8thzEA yfGzpDP0stTlJfLa8T95E5e5mKFCH5viy4A4WDeSbubwJ9k7zl0jHefxUkmvYg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1642095829; a=rsa-sha256; cv=fail; b=bwtder91DUgrHONYkxsGWaua5R+xPzNCkKSUDeZMBTvXVYmQ8aDR7IIp9b5ojQXRaHYKen hezDXDm+YU3I6G1WuK7yaI79vDnRercMhRf7EWYws2BcAaNP9EKmvtMV5bKTG19+p4VEll rn0A5WdA4UESvlFj16orhKPEpLwJ843CwFkGcGJXNhC3aPhZcje9iG7QHtMKV9EHvBpYVK QXXjAKzvxMY9x7+/GK7E1u0mCfthCaUZvEV1WbSWh24EaPsDTmIVR/N+xcFr9f0jZ2kaPT g2wV+QYGcl7VD80jzGDxKup7uQRJ+v57S7vg1nft1MrY3X+rzL92BQ9/kH5JvA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=tcTBPBhY; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.84 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=tcTBPBhY; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 4DB261DB24 X-Spam-Score: -0.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: x6wZgKPx0oI8 On Wed, Jan 12 2022, LdBeth wrote: > The svg icons included in notmuch-emacs cannot be correctly rendered > by emacs-mac (https://bitbucket.org/mituharu/emacs-mac/src/master/), > > The empty SVG created by `svg-image' function from svg.el has XML > attribute `xmlns' like: > > " > " > > 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=\"http://www.w3.org/2000/svg\" 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... Tomi PS: the new notmuch-logo.svg has the above xmlns in its implementation so that should work :D > > Thanks. > > -- > LDB