From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Extending svg.el Date: Wed, 03 Dec 2014 20:09:46 +0100 Message-ID: References: <87mw744kr4.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417633828 14854 80.91.229.3 (3 Dec 2014 19:10:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Dec 2014 19:10:28 +0000 (UTC) Cc: emacs-devel To: Ulf Jasper Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 03 20:10:22 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XwFJd-00070f-D5 for ged-emacs-devel@m.gmane.org; Wed, 03 Dec 2014 20:10:21 +0100 Original-Received: from localhost ([::1]:42961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwFJc-0006O7-UT for ged-emacs-devel@m.gmane.org; Wed, 03 Dec 2014 14:10:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwFJT-0006Ls-PN for emacs-devel@gnu.org; Wed, 03 Dec 2014 14:10:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwFJN-0008Ot-Hs for emacs-devel@gnu.org; Wed, 03 Dec 2014 14:10:11 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:37446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwFJN-0008KC-AM for emacs-devel@gnu.org; Wed, 03 Dec 2014 14:10:05 -0500 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XwFJ5-0002EE-2w; Wed, 03 Dec 2014 20:09:47 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUaBAlOFht/NjOtX1Lq xaclCA73WyPWAAACaUlEQVQ4jWWTQXLbMAxFoXS4FyhzH4L2viakA8Ri9qQ9uP9V+iE7bdrSI2vM B4D/gzC1/1a9yVnP1HZdm3+tqk9wLbLqSv+E39ZWRRBD7db2hvi9iadqiwJQAZru+Oi+IqC1tcaY nxl/1q5t34Xv2XO/gb3KGfnCnEv5Dm6Zo4OEd9m/l6rMK4Ahp/wl9zr4BLG2iEX9Byytal1kVHkC PVxvw+K6wEyJG39luLdkpufiMh6X8QWgXEeysq4O7i+gaKCq6HuwcjiybaLD8bFfNHM6e2P2afOM 536NeCSd2sfablN+AWi8LLVIRsbn2j4eNtFzX7ceM3OyU/ts7TMmAJQpqpnShbnTsj9a+xmND4D+ sw1mNhr5BGCj03pkVLneI6fRh8DIh70ZoTkOirIkSwFNcR/IxS4c4NmQQcEYl1XtQtSk1AJ4r4oz uvGb6hUhpBgKgQ+uNSeARD9qYiLCFElGVtSazQLAebtfDCDnyBGTpNlBT7ReJPY3AOhnxCtfHMxT 5RT6gySjFzFC2RfgwZQGZRE2zEvxe+rBZqKQQjJiFoRwqQ4oTA7maR4HQC9yqQgE6AB9pAdNLJnD 4HINHjyRr2EnAPZSvACEy7SIgxAijUMtZwdv/r/iuKEYkxnk5pzL9gI4be7kigfOZinvNE9oprCD Hp9y7e4guSCcHKEiEgRxmqexzITN19P7OA4fI+WCn3f44QMGJp+ajFEAoMWvOXklcufsd8quv0it moq8d4CIFnIPB7gXTF9WgDBI3KCFeDhG+WBDUMvIe2uGcaPfy7wpBNszpz4C/bUC8UheywK9XBzv EH4B3gq+jCjr4p0AAAAASUVORK5CYII= X-Now-Playing: Shirley & Dolly Collins's _For As Many As Will_: "The Blacksmith Courted Me" X-Hashcash: 1:23:141203:ulf.jasper@web.de::AFOYQMi3Ia+1zQLO:000000000000000000000000000000000000000000002ORA X-Hashcash: 1:23:141203:emacs-devel@gnu.org::zkOtdCHi0A1W6KYQ:000000000000000000000000000000000000000000TZWs In-Reply-To: <87mw744kr4.fsf@web.de> (Ulf Jasper's message of "Wed, 03 Dec 2014 20:05:19 +0100") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-MailScanner-ID: 1XwFJ5-0002EE-2w MailScanner-NULL-Check: 1418238587.17243@gQsId7yqkfERLQYTjOnCmw X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:178753 Archived-At: Ulf Jasper writes: > However, in the end I only used very few > functions from 'svg.el', but wrote a handful of new functions and even > "re-invented" some functions (e.g. 'svg-line'). The reason is that many > of the functions in 'svg.el' produce side-effects (via 'svg-append' and > 'svg-possibly-update-image'). Besides that adding attributes to svg > primitives appears to have an effect on the containing xml tree (via > 'svg-arguments'). Yes, svg.el is not an immutable functional-type library, but an object-oriented one that works on an XML tree. If you want a function variant of the same, you can just copy the DOM before you pass it in. Perhaps add a `dom-copy' function to dom.el? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no