From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Loading svg from memory using custom filename for base_uri Date: Sat, 12 Dec 2020 10:45:51 +0000 Message-ID: References: <953508BA-5721-4BFF-AF28-54DF93DC7AD2@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24541"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel To: lg.zevlg@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 12 11:48:00 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ko2RT-0006Ho-Lv for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Dec 2020 11:47:59 +0100 Original-Received: from localhost ([::1]:55138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ko2RS-0000VZ-Nr for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Dec 2020 05:47:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ko2PX-0008PY-IW for emacs-devel@gnu.org; Sat, 12 Dec 2020 05:45:59 -0500 Original-Received: from outbound.soverin.net ([116.202.65.218]:34295) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ko2PV-00075Q-AG; Sat, 12 Dec 2020 05:45:59 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.3.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 9D02F6013A; Sat, 12 Dec 2020 10:45:55 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.142]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1607769954; bh=Z3V1tJ3qs0C5j79imCWBHPdhcTjsMEqd+R0iRFF3k24=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SQE3Cu4HGBOd27SShyipth+lW9njHzzz+qlF5kUNNhKKiHLgRp3Ee7Dw2eNHx3qmE X4ghkmhSxAwyaNNuNqUlkB9/wVbZQXLbdVm1LXPDqU9R0jnIwwh2P7Jvc+n8IEBijL yDzJXalYl/jk1seWpfN+jhVRNO3rZ5t61gItzv2dLNN6tTH60mymYmLS5qNtDs1xiE y+bWYoBJ8ao971finPCMcAV8Vc8drnSN1HcM9teMbrNs9hIk/adEEvxCx8biL5gD0B FHCmWj+HEekztQ5sRCJMecqifqnAOeg5vUrYKQk/7Yz24APkOXSoCQ9L7Xf39xgBMW T75UkSHE4RqVw== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 40BB32028756F5; Sat, 12 Dec 2020 10:45:52 +0000 (GMT) Mail-Followup-To: Alan Third , lg.zevlg@gmail.com, emacs-devel , Eli Zaretskii Content-Disposition: inline In-Reply-To: <953508BA-5721-4BFF-AF28-54DF93DC7AD2@gmail.com> Received-SPF: pass client-ip=116.202.65.218; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:260713 Archived-At: On Sat, Dec 12, 2020 at 08:46:10AM +0300, lg.zevlg@gmail.com wrote: > > > 4 дек. 2020 г., в 02:02, Evgeny Zajcev написал(а): > > > >  > > > > > > пт, 4 дек. 2020 г. в 01:11, Evgeny Zajcev : > >> > >> > >> чт, 3 дек. 2020 г. в 22:57, Alan Third : > >>>> On Thu, Dec 03, 2020 at 08:50:15PM +0300, Evgeny Zajcev wrote: > >>>> > > >>>> > Here is updated patch, with support for `:base-uri` for :file image spec as > >>>> > well > >>>> > >>>> It looks good to me. There are two things I think we need. One is to > >>>> add an entry for :base-uri to the svg_format array in image.c, > >>> done! > >>> > >>> and > >>> some documentation, if you fancy writing it? > >>> > >> Documentation better to write when `svg-embed` will support this feature. > > > > I wrote a new function `svg-embed-base-uri-image' to do the job, and wrote documentation for it. > > > > JFYI: I’ve been using Emacs with this patch applied for one week, > utilizing svg file embeding heavily, works as expected without any > issues Thanks. I've pushed it to the master branch. -- Alan Third