From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Refactoring xml.el namespace handling Date: 08 Mar 2004 02:33:07 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87u117ew6g.fsf@weblog.localhost> <878yiimo8x.fsf@weblog.localhost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1078990714 10832 80.91.224.253 (11 Mar 2004 07:38:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Mar 2004 07:38:34 +0000 (UTC) Cc: "Mark A. Hershberger" , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Mar 11 08:38:26 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B1Klu-0006jZ-00 for ; Thu, 11 Mar 2004 08:38:26 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B1Klt-0005JZ-00 for ; Thu, 11 Mar 2004 08:38:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B1KBj-0002Gf-Mp for emacs-devel@quimby.gnus.org; Thu, 11 Mar 2004 02:01:03 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B08jf-0008OO-Bd for emacs-devel@gnu.org; Sun, 07 Mar 2004 19:35:11 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B08i8-0007ut-FW for emacs-devel@gnu.org; Sun, 07 Mar 2004 19:34:07 -0500 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B08i7-0007th-4O for emacs-devel@gnu.org; Sun, 07 Mar 2004 19:33:35 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepc.post.tele.dk (Postfix) with SMTP id 1696E262819; Mon, 8 Mar 2004 01:33:26 +0100 (CET) Original-To: Stefan Monnier In-Reply-To: Original-Lines: 22 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20296 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20296 Stefan Monnier writes: > > Now that I've gotten a good HEAD, here is a fresh diff. > > Thank you. Here is a counter patch. The main difference is that it uses > 'http://foo/bar rather than :http://foo/bar so as to avoid an unnecessary > (concat ":" foo) and also so that (symbol-name foo) immediately returns > a usable URL. > It also cleans up a few elisp things (like replace mapcar->mapc->dolist, > and (append (list x) y) -> (cons x y), ...). > Things left: > - it seems that the new code returns either a TAG (a symbol) or (NS . TAG) > where TAG is a string rather than a symbol. Do I understand this right? > Is that done on purpose? It looks like a bad idea. I don't know the code, but to me it seems that using strings rather than symbols (in all places) generally would be preferable, as it avoids pollution in the name space -- or maybe a local name space is used here? Or do symbols get garbage collected like strings do ? -- Kim F. Storm http://www.cua.dk