From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Davis Herring" Newsgroups: gmane.emacs.devel Subject: Re: Converting a string to valid XHTML id? Date: Wed, 1 Dec 2010 16:12:24 -0800 (PST) Message-ID: <45992.130.55.118.19.1291248744.squirrel@webmail.lanl.gov> References: <40291.130.55.118.19.1291217640.squirrel@webmail.lanl.gov> <20101201155858.GB12842@seid-online.de> <54241.130.55.118.19.1291242750.squirrel@webmail.lanl.gov> <40669.130.55.118.19.1291245408.squirrel@webmail.lanl.gov> Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1291248763 9381 80.91.229.12 (2 Dec 2010 00:12:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Dec 2010 00:12:43 +0000 (UTC) Cc: rm@tuxteam.de, Ralf Mattes , emacs-devel@gnu.org To: "Lennart Borgman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 02 01:12:38 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PNwms-0001OP-Hn for ged-emacs-devel@m.gmane.org; Thu, 02 Dec 2010 01:12:38 +0100 Original-Received: from localhost ([127.0.0.1]:45818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNwmr-0003i9-RD for ged-emacs-devel@m.gmane.org; Wed, 01 Dec 2010 19:12:37 -0500 Original-Received: from [140.186.70.92] (port=39356 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNwml-0003c9-BQ for emacs-devel@gnu.org; Wed, 01 Dec 2010 19:12:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNwmj-000895-GM for emacs-devel@gnu.org; Wed, 01 Dec 2010 19:12:31 -0500 Original-Received: from proofpoint2.lanl.gov ([204.121.3.26]:33214) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNwmj-00088G-3n for emacs-devel@gnu.org; Wed, 01 Dec 2010 19:12:29 -0500 Original-Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by proofpoint2.lanl.gov (8.14.3/8.14.3) with ESMTP id oB21HNVN000679; Wed, 1 Dec 2010 18:17:23 -0700 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay2.lanl.gov (Postfix) with ESMTP id 84A9D1A8C31F; Wed, 1 Dec 2010 17:12:24 -0700 (MST) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay2.lanl.gov Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay2.lanl.gov (Postfix) with ESMTP id 70F311A8C2F6; Wed, 1 Dec 2010 17:12:24 -0700 (MST) Original-Received: by webmail1.lanl.gov (Postfix, from userid 48) id 6F0881CA8265; Wed, 1 Dec 2010 17:12:24 -0700 (MST) Original-Received: from 130.55.118.19 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Wed, 1 Dec 2010 16:12:24 -0800 (PST) In-Reply-To: User-Agent: SquirrelMail/1.4.8-5.el5_4.10.lanl3 X-Priority: 3 (Normal) Importance: Normal X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15, 1.0.148, 0.0.0000 definitions=2010-12-01_12:2010-12-02, 2010-12-01, 1970-01-01 signatures=0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133291 Archived-At: >> And my function is injective. > > Do you mean that it always maps the same original input string to the > same unique output string? Yes -- injective gives you the "unique". The "same" is because it's pure. > However I thought it would be easier reading the result with my > simpler mapping. Sure, unless this runs too many times. >>> (when old >>> (setq new-id (concat new-id "X")))) I don't know what's really easier; I just think that having it be stateless is a good thing. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.