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: DOM manipulation functions Date: Sun, 23 Nov 2014 16:18:24 +0100 Organization: Programmerer Ingebrigtsen Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1416755936 1426 80.91.229.3 (23 Nov 2014 15:18:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Nov 2014 15:18:56 +0000 (UTC) Cc: Stefan Monnier To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 23 16:18:50 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 1XsYw4-0004Zt-LG for ged-emacs-devel@m.gmane.org; Sun, 23 Nov 2014 16:18:48 +0100 Original-Received: from localhost ([::1]:48946 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsYw4-0008Np-55 for ged-emacs-devel@m.gmane.org; Sun, 23 Nov 2014 10:18:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsYvw-0008NS-3h for emacs-devel@gnu.org; Sun, 23 Nov 2014 10:18:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XsYvq-0000ec-JJ for emacs-devel@gnu.org; Sun, 23 Nov 2014 10:18:40 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:37670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsYvq-0000dy-C1 for emacs-devel@gnu.org; Sun, 23 Nov 2014 10:18:34 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XsYvp-0004PG-9D for emacs-devel@gnu.org; Sun, 23 Nov 2014 16:18:33 +0100 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Nov 2014 16:18:33 +0100 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Nov 2014 16:18:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 33 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEWjmaYHCBZYUmLo4/Ie Hy8CAwsBAAbsp09bAAACfElEQVQ4jVWUwXLcIAyGCd7pufLAnr2E9OyEPIBh5ZxLx/hcZ2Le/xH6 CzuZlMsufPv/EpJYlSlGk5xz6lyO41y3qyJiAtCu0405xzyvW22A2A2uc244QJzXXFU2AtKgNIRy 3sA1Q4HFPOgbPg7AkeZ4AGOcuuXk76N23keyy6ZyI5T83Ht7D0pDwfG6qXJ6ee9iHgIkcCKa1Z4J zDDrWBYVmgReWe2llNzysqVX3Xh4sVUVgDLxpDz1ckMBRABVNGQmpXw6QSRDAKWBpLVzYcRNfIsO YCUKOxSyCyGMzQlgL9kieuouPIW2EKyBdcMHzsZbF851IVug2NlwMwlf61YAMvecZKcfv8AzFIX8 5Jv7y/AfkC65u+zGb4AEUO8bCB65DkpiPTQFsTncb7ib8Y7xDQoU8Om3GCkXeykf9SHIPXC5AU6v 0lATjYsRu9huTgFtGCOaUCzaG3+KFWpVlqC7MFopTcmQ3INrYF8k0VcpJZYZ4iNKguAVMV5c93CC xcUuPBQpyZpNYkdfAN16FlBlFAgjdlqxd/r2CWjN5EturZQRu1kBOzpfl5zYnsC5WEoFyHYv/dMf FgPI7ONLLLW2YdjLpHtrzviTXq4C9mLigpH2FEH2WodBVwBJQC+jno2cl7Vyry61We0JBUVxPSGv dTesPhW5TFJHRZIYZ6/UW1NUjJtMyGjwnuIkz+oEORW0cLxMHYbNaQRfD2A3eRmYaQA86UH7I/gx 70mzwti1eX/7DlCMNHQtuw9OaVWrnLc7Yyz6QX79DtUvUWwGLGcrPSHs/6pR/ZBafcy7vBAWmTi/ 48/jrYE3FDI7N59gw/ivYrW24HzW6lz/AGka7QOkjht/AAAAAElFTkSuQmCC Mail-Copies-To: never X-Now-Playing: Missy "Misdemeanor" Elliott's _Da Real World_: "Smooth Chick" User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:OY5xF6SYcQj/3lyROx/msyoqzHA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:178075 Archived-At: As part of the TLS management thing, it was suggested that Emacs display visually certificate fingerprints: http://sebsauvage.net/wiki/doku.php?id=php:vizhash_gd I've started looking into this, and it seems like this would be really easy to implement as SVG images -- SVG provides all the primitives vizhash needs. SVG is basically an XML DOM, and while constructing these it would be a lot easier if Emacs had a DOM manipulation library. So here's my two questions: 1) Would it be OK if I added a DOM manipulation/searching library to Emacs? 2) Due to stupidity on my part I disregarded Chong's advice on how to do the DOM manipulation things in shr.el, so we now basically have two DOMs in Emacs -- the xml.el one and the one that shr uses. I think it would be a good idea if I rewrote shr.el to just use the xml.el DOM, like Chong said back then. This will break any third-party code that relies on shr internals, though. So: New dom.el, and rewrite shr/eww to depend on dom.el. Stefan, does this sound OK to you? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no