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: Thu, 3 Dec 2020 16:30:26 +0000 Message-ID: References: <9684BD96-2E4E-45E1-92CC-69306A7C3205@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="31453"; 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 Thu Dec 03 17:32:06 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 1kkrWY-00084c-1J for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Dec 2020 17:32:06 +0100 Original-Received: from localhost ([::1]:37448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkrWW-00034T-Pa for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Dec 2020 11:32:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkrV6-0002E1-4I for emacs-devel@gnu.org; Thu, 03 Dec 2020 11:30:36 -0500 Original-Received: from outbound.soverin.net ([2a01:4f8:fff0:2d:8::218]:40105) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkrV3-0000a1-D6; Thu, 03 Dec 2020 11:30:35 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (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 812A160199; Thu, 3 Dec 2020 16:30:29 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id C8F34202852F98; Thu, 3 Dec 2020 16:30:26 +0000 (GMT) Mail-Followup-To: Alan Third , lg.zevlg@gmail.com, Eli Zaretskii , emacs-devel Content-Disposition: inline In-Reply-To: <9684BD96-2E4E-45E1-92CC-69306A7C3205@gmail.com> Received-SPF: pass client-ip=2a01:4f8:fff0:2d:8::218; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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:260227 Archived-At: On Thu, Dec 03, 2020 at 07:25:10PM +0300, lg.zevlg@gmail.com wrote: > > > 3 дек. 2020 г., в 19:17, Alan Third написал(а): > > > > On Thu, Dec 03, 2020 at 06:47:37PM +0300, Evgeny Zajcev wrote: > >> diff --git a/src/xdisp.c b/src/xdisp.c > >> index 76ef420a36..51735b269d 100644 > >> --- a/src/xdisp.c > >> +++ b/src/xdisp.c > >> @@ -34631,6 +34631,7 @@ syms_of_xdisp (void) > >> DEFSYM (QCeval, ":eval"); > >> DEFSYM (QCpropertize, ":propertize"); > >> DEFSYM (QCfile, ":file"); > >> + DEFSYM (QCbase_uri, ":base-uri"); > >> DEFSYM (Qfontified, "fontified"); > >> DEFSYM (Qfontification_functions, "fontification-functions"); > > > > Hi Evgeny, is there any reason this couldn't go in image.c? I think we > > only need it when librsvg is compiled in too. > > You are right, this is svg only thing, I’ll fix I'm also wondering whether this is something that would be useful when loading from a file and not just data? It might be considered a security risk, I suppose? -- Alan Third